Message ID | 20230811130351.7038-9-adrian.hunter@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8FD72C0015E for <linux-arm-kernel@archiver.kernel.org>; Fri, 11 Aug 2023 13:06:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DOKm45q7sfyxGZxINznayYCHv0Q9I6X85Cky0ydiRgE=; b=GRR0ys/VsRIF3A buiTpk9n3XqoS/ESr0OvhlGg1x8chkOlvn/ebBByl+beGMjrD4nLNYgD43OffpsTQuG2My7IBQCIG lfibKZISqmq/ekj4d8kpAVSqv7NcBrrXSKe3rxeoelUcGPZGxoClNxk7A86BfzjDslZ0ikLGn8uZT lxTbYWBdVbu+tyep0Y4s1IOGWJ/+/TvYDXOyEQ3W35cdVAEes4A9V/bSPM//SbujO9H1/XI2NhEMP EbeJ5ngHwKzhq66Mswpebk9BLoJrDVLXgKB8kJ+Htlfnke+vr8CNvWC5cwsioqulGJtXM0xQe4vok yhPfTdMx7VQlb9oc8tIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qURpo-00Afl5-33; Fri, 11 Aug 2023 13:05:44 +0000 Received: from mgamail.intel.com ([134.134.136.20]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qURpm-00Afju-2K for linux-arm-kernel@lists.infradead.org; Fri, 11 Aug 2023 13:05:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691759142; x=1723295142; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4Wpr+H06t2fMqc96D3gA9qTHa+iJJfudU7PaCZYhRrM=; b=dcMu97ifCG1957ewnUobrt7qS1gOF2bOMxtD95grcmUa+2iWHSAOuON2 eZ/xsPM1UHPE5CWOlbBwov2hSzqBE3f/kN6J9orIzGLrUst38cUrW9qqt 6ISHesQUV88Xxn31wPeZxpRYJ3yQcAA8tbEa6uvCZNuTUNr/deJejzsgB Dg8Q8pSKE1LIJ4Gryc4rxZpOrEpdxV30twlfKANeU98d69/jSylhe/6cx 8PaQ2wKX5aouLsO19kguGnJbdkembhy97dKdw+xoNAPNDiM8/iIFuxphA NisN3kgEV4k5wl6nR5FstHHTsHITTznH4I7hRFv6kQmhAcBRk0Owsn/lV g==; X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="361812152" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="361812152" 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:05:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="709535255" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="709535255" 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:05:12 -0700 From: Adrian Hunter <adrian.hunter@intel.com> To: Ulf Hansson <ulf.hansson@linaro.org>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=C3=B6nig?= <u.kleine-koenig@pengutronix.de>, Yangtao Li <frank.li@vivo.com> Subject: [PATCH 08/16] mmc: sdhci-of-arasan: Use sdhci_pltfm_remove() Date: Fri, 11 Aug 2023 16:03:43 +0300 Message-Id: <20230811130351.7038-9-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230811_060542_819013_A1AC0A5B X-CRM114-Status: GOOD ( 13.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>, Kunihiko Hayashi <hayashi.kunihiko@socionext.com>, Al Cooper <alcooperx@gmail.com>, Li Zetao <lizetao1@huawei.com>, Brad Larson <blarson@amd.com>, Swati Agarwal <swati.agarwal@amd.com>, linux-kernel@vger.kernel.org, Sai Krishna Potthuri <sai.krishna.potthuri@amd.com>, Jiapeng Chong <jiapeng.chong@linux.alibaba.com>, Florian Fainelli <florian.fainelli@broadcom.com>, Steen Hegelund <Steen.Hegelund@microchip.com>, Brian Norris <briannorris@chromium.org>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, linux-arm-kernel@lists.infradead.org, Ye Xingchen <ye.xingchen@zte.com.cn>, Patrice Chotard <patrice.chotard@foss.st.com>, Kamal Dasu <kamal.dasu@broadcom.com>, Doug Brown <doug@schmorgal.com>, Daniel Machon <daniel.machon@microchip.com>, Ray Jui <rjui@broadcom.com>, Eugen Hristev <eugen.hristev@collabora.com>, Jassi Brar <jaswinder.singh@linaro.org>, Christophe JAILLET <christophe.jaillet@wanadoo.fr>, Georgii Kruglov <georgy.kruglov@yandex.ru>, Michal Simek <michal.simek@amd.com>, Lars Povlsen <lars.povlsen@microchip.com>, Andy Tang <andy.tang@nxp.com>, Scott Branden <sbranden@broadcom.com>, linux-mmc@vger.kernel.org, UNGLinuxDriver@microchip.com, Claudiu Beznea <claudiu.beznea@microchip.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
mmc: sdhci-pltfm: Minor clean up
|
expand
|
diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index 15025af326a2..5edd024347bd 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -2022,6 +2022,7 @@ static void sdhci_arasan_remove(struct platform_device *pdev) struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); struct sdhci_arasan_data *sdhci_arasan = sdhci_pltfm_priv(pltfm_host); struct clk *clk_ahb = sdhci_arasan->clk_ahb; + struct clk *clk_xin = pltfm_host->clk; if (!IS_ERR(sdhci_arasan->phy)) { if (sdhci_arasan->is_phy_on) @@ -2031,8 +2032,9 @@ static void sdhci_arasan_remove(struct platform_device *pdev) sdhci_arasan_unregister_sdclk(&pdev->dev); - sdhci_pltfm_unregister(pdev); + sdhci_pltfm_remove(pdev); + clk_disable_unprepare(clk_xin); clk_disable_unprepare(clk_ahb); }
Use sdhci_pltfm_remove() instead of sdhci_pltfm_unregister() because sdhci_pltfm_unregister() is going to be removed. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> --- drivers/mmc/host/sdhci-of-arasan.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)