Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1092050rdg; Fri, 11 Aug 2023 09:24:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFgWGfWRKqnK+tgV2e6bm15IbUAqvdR0zlxpXWX/dCEUjs5mhn1V0CxDABcB3mzhDcKbDqi X-Received: by 2002:a05:6a20:4282:b0:13d:384f:b6ec with SMTP id o2-20020a056a20428200b0013d384fb6ecmr2840328pzj.58.1691771094644; Fri, 11 Aug 2023 09:24:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691771094; cv=none; d=google.com; s=arc-20160816; b=PWkt99z+UpZ+C9WxLWVsTdoecDpu1wcJV8WeltgTuMTbDRlMrfHJOvJ4TKqhUPRfeH deHXGXvMSQ8Grh8gcMxbPdyLJ65UjNNEFNw2qkM5Lbe8Ihm5i+bhZHeLfxgICx5g1Fd7 f493O6VqvUu9elor4rTMDOWCrNevZ92pJcz/ZhvrcaOAAPElTYKIJXCLQwX5ZvouNb7x bFlRg0899o3hpR1ss2MMnwQfzDoc3HdwV/YykC+Pk0s4qLffgz/mqZhmEwqI86nCPc5g rL6qBrAly/n3YnxGJNOWNvuvXn/v8UxytzbmBMN61cDWMuhLu66xLRRCqhpb/fXFJAyU lBYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NYVdRPZtncwsPLs1izYL0NbWocONLU1pVhzoY7RYNqI=; fh=1illQt2rvZm/duIamif60BE+Ziytl52XIUdvA193/Ac=; b=Nmcyu4uJ00DPRJNRngoUeJ+GHNdVFQncupE5DtuOiYAL8SPQaUQN/kzYbB9QX9XQr9 uTEe+00Sc6AgB6MFiRzfN/QAKljI+c5r6ta9Dqcypuii5DKd++9M9HNIF52cpimVAcoB WSQvfpDVGlqN2rkmVMWDeasBESSe4c7DN9sf2CyMph+gmpNksHJfCv3ePRLwuaXg7SVZ sOK8/uvr6B8CCcj3wSoC5yLQTrFayQj4sl2IjYeQQc37H1cw0Tov3XzWEnUbM0bM8Er1 pcLsqkch13nyTqcfLf2T5mmFnq+njQ8XD97O7ecbRFA5Wtm8SE0b7i7U+gRVBz6FxAez J30Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AjpdotpH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t19-20020a056a0021d300b00686e01db946si3772655pfj.64.2023.08.11.09.24.42; Fri, 11 Aug 2023 09:24:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AjpdotpH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234436AbjHKNIG (ORCPT + 99 others); Fri, 11 Aug 2023 09:08:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231745AbjHKNHq (ORCPT ); Fri, 11 Aug 2023 09:07:46 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A60830CA; Fri, 11 Aug 2023 06:07:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691759241; x=1723295241; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4ckVZspebDlBIvx+fK25/shZbYaEVR+Q2R9lm4tMDkc=; b=AjpdotpHT6tkoYirXmgIJyAVy9pUsKAtuOYCpIDtv+Oy7pJoKAGHChq1 CcqGlmhskIolE6NaWow60Fq5Q//oYVcp44FO7tihu3TTLFKb+aVB7JKXB zibX9BuCePDZa/hxcy+p6pPq+8bC7e2d3vTYPoWg61RAbF5eEA91dhdhJ gc4qjH67CHpF4zZ8AvLjEKfMyUVgXuwOLZs1F0frQd3AAME/uRbzOALI9 Q8oRo0dIctNYm3qWesOEyxHyIJdU0Azq+K45FY6wVaCfWi480GWf//CuH Idqhtw+PKg2/GAvZhE1XNk0BwowHY8mh6/ZuV/kQguEqdaveD1BjrHilX g==; X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="361812843" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="361812843" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 06:06:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="709535514" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="709535514" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO ahunter-VirtualBox.home\044ger.corp.intel.com) ([10.252.51.13]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 06:06:19 -0700 From: Adrian Hunter To: Ulf Hansson , Andy Shevchenko , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Yangtao Li Cc: Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Kamal Dasu , Al Cooper , Michal Simek , Eugen Hristev , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Lars Povlsen , Steen Hegelund , Daniel Machon , UNGLinuxDriver@microchip.com, Patrice Chotard , Brian Norris , Ye Xingchen , Brad Larson , Christophe JAILLET , Sai Krishna Potthuri , Swati Agarwal , Andy Tang , Georgii Kruglov , Jiapeng Chong , Doug Brown , Li Zetao , Kunihiko Hayashi , Jassi Brar , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 15/16] mmc: sdhci-pltfm: Remove sdhci_pltfm_unregister() Date: Fri, 11 Aug 2023 16:03:50 +0300 Message-Id: <20230811130351.7038-16-adrian.hunter@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230811130351.7038-1-adrian.hunter@intel.com> References: <20230811130351.7038-1-adrian.hunter@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that sdhci_pltfm_unregister() is unused, remove it. Signed-off-by: Adrian Hunter --- drivers/mmc/host/sdhci-pltfm.c | 12 ------------ drivers/mmc/host/sdhci-pltfm.h | 1 - 2 files changed, 13 deletions(-) diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index 5a63c8818987..894f3bbe2b0f 100644 --- a/drivers/mmc/host/sdhci-pltfm.c +++ b/drivers/mmc/host/sdhci-pltfm.c @@ -187,18 +187,6 @@ int sdhci_pltfm_register(struct platform_device *pdev, } EXPORT_SYMBOL_GPL(sdhci_pltfm_register); -void sdhci_pltfm_unregister(struct platform_device *pdev) -{ - struct sdhci_host *host = platform_get_drvdata(pdev); - struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); - int dead = (readl(host->ioaddr + SDHCI_INT_STATUS) == 0xffffffff); - - sdhci_remove_host(host, dead); - clk_disable_unprepare(pltfm_host->clk); - sdhci_pltfm_free(pdev); -} -EXPORT_SYMBOL_GPL(sdhci_pltfm_unregister); - void sdhci_pltfm_remove(struct platform_device *pdev) { struct sdhci_host *host = platform_get_drvdata(pdev); diff --git a/drivers/mmc/host/sdhci-pltfm.h b/drivers/mmc/host/sdhci-pltfm.h index 402f4edc6ca5..bebc450d5098 100644 --- a/drivers/mmc/host/sdhci-pltfm.h +++ b/drivers/mmc/host/sdhci-pltfm.h @@ -102,7 +102,6 @@ extern void sdhci_pltfm_free(struct platform_device *pdev); extern int sdhci_pltfm_register(struct platform_device *pdev, const struct sdhci_pltfm_data *pdata, size_t priv_size); -extern void sdhci_pltfm_unregister(struct platform_device *pdev); extern void sdhci_pltfm_remove(struct platform_device *pdev); extern unsigned int sdhci_pltfm_clk_get_max_clock(struct sdhci_host *host); -- 2.34.1