From patchwork Fri Aug 11 13:03:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Hunter X-Patchwork-Id: 134500 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1098915vqi; Fri, 11 Aug 2023 06:35:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHiho8clLlnVmMlqhUJbMkZoIm+01S4OVvEDGWOjPns3bEca3YxRaC75IbNahVupNwaqibo X-Received: by 2002:a92:c910:0:b0:349:3ca:bd1d with SMTP id t16-20020a92c910000000b0034903cabd1dmr2115781ilp.25.1691760904592; Fri, 11 Aug 2023 06:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691760904; cv=none; d=google.com; s=arc-20160816; b=H1qNsaD1b0fGOp5rJ2VTRQuaNA6SgM3+ZApBrxAVL6bJmjolaTZ7OtvuS0lCwr1UKn fCYZLqhiv2B9n27CAfTbv/vDwhWn4ea8/FcFQ9kAll7YWGNy7QKdspvg6aARYNT45rV+ ILr5dJURIZhWA20OsUckptKh0/gl3e9OWoxXap+wqn6o0IL37m2RYKvzOuw4XKG6ZgSx bZblJyuo6anM4OtBjbk7yYXjioYMMLUwB9I6R3386Mo/N/NNCVmTEn5IaRSPqnHJCwnv jQOUe3j82VlUxKsOw9nmPX4absbX/2oCARV2KWj6U1gnVdDfdJw2i7Mq03NOYlRMm4yd 3L6Q== 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=iin3wiPA+PavznQdp7yAoTrlUA6bkzxNrDPw2GSwwQI=; fh=1illQt2rvZm/duIamif60BE+Ziytl52XIUdvA193/Ac=; b=su1khl9XquHEneA+rtgHlcwpn2DAMcCxPcF50vHNHAp+RQtgR2rPTfXg5OezKhlh1L v34H0eBGfDvQ5admoERp0A6/dQLPm2my3lKtfk4Wv7F0vSguxVvSFt+UUBGfCEA7a+vU 53OfpGrfUlazD4gSEHT4wWfdNlBIwSmO431MN4+bQa/CwLUzsrX5hC6v0b0jTxWPv78s jubWs+3Pysk0C6IV7d9yzD5/b45N9L1GI+NWuLDvPUQG6nSLYaT8bN/5+nTi++C7efht xVCaOHWSLeo2tk6fIHafx4DrVz/EsytBpXoG3M6qvwnw67gd170rPTpZqz7ofYdvidaS KsYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fVlK+jOW; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e1-20020a656781000000b00564b8e5521csi3275141pgr.214.2023.08.11.06.34.51; Fri, 11 Aug 2023 06:35:04 -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=fVlK+jOW; 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 S236265AbjHKNEx (ORCPT + 99 others); Fri, 11 Aug 2023 09:04:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236380AbjHKNEb (ORCPT ); Fri, 11 Aug 2023 09:04:31 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FF7030D6; Fri, 11 Aug 2023 06:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691759071; x=1723295071; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DIC96ebnUuCHNyIRxeKIBfaOMFZiMuJ8mbYu9+QOiuk=; b=fVlK+jOWzuCP/uX0XfDvqsEhrrZ3/5MRyEH8HRTgR/PHxHz1DrkKm1yV m3cOrNTPfqYBaeovOL/2k7n40XoAnDW37cyb2Y90gWt6dh0xr50Dy1gW6 yEssmbfIL+LJRekq7bAVUB7OOdx60CyN0X1288KFgUN5d4+ug7gtu9Q1+ CgJJZOGkUyV1m/7kYa6zitrBYtauLLd+46GCu8722L1VeAOwSATyfA3Bp tOJzlfXUghLqOS38rAZ7dRlI17mF48NV4HvFuU/wghPbgCR1MumFRiJtB Ww4+NBkVi2A7qNQ8tB2BqHNxbKo0V+gnN8tYptATqTQE5gLmZbHsQasaN A==; X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="361811713" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="361811713" 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:04:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="709535197" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="709535197" 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:04:20 -0700 From: Adrian Hunter To: Ulf Hansson , Andy Shevchenko , =?utf-8?q?Uwe_Kleine-K?= =?utf-8?q?=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 02/16] mmc: sdhci-bcm-kona: Use sdhci_pltfm_remove() Date: Fri, 11 Aug 2023 16:03:37 +0300 Message-Id: <20230811130351.7038-3-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-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773939882074190233 X-GMAIL-MSGID: 1773939882074190233 Use sdhci_pltfm_remove() instead of sdhci_pltfm_unregister() because sdhci_pltfm_unregister() is going to be removed. Signed-off-by: Adrian Hunter --- drivers/mmc/host/sdhci-bcm-kona.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-bcm-kona.c b/drivers/mmc/host/sdhci-bcm-kona.c index 02bb871e838f..cb9152c6a65d 100644 --- a/drivers/mmc/host/sdhci-bcm-kona.c +++ b/drivers/mmc/host/sdhci-bcm-kona.c @@ -310,6 +310,16 @@ static int sdhci_bcm_kona_probe(struct platform_device *pdev) return ret; } +static void sdhci_bcm_kona_remove(struct platform_device *pdev) +{ + struct sdhci_host *host = platform_get_drvdata(pdev); + struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); + struct clk *clk = pltfm_host->clk; + + sdhci_pltfm_remove(pdev); + clk_disable_unprepare(clk); +} + static struct platform_driver sdhci_bcm_kona_driver = { .driver = { .name = "sdhci-kona", @@ -318,7 +328,7 @@ static struct platform_driver sdhci_bcm_kona_driver = { .of_match_table = sdhci_bcm_kona_of_match, }, .probe = sdhci_bcm_kona_probe, - .remove_new = sdhci_pltfm_unregister, + .remove_new = sdhci_bcm_kona_remove, }; module_platform_driver(sdhci_bcm_kona_driver);