[v2,49/61] mmc: sdhci-esdhc-mcf: Convert to platform remove callback returning void
Message ID | 20230726040041.26267-49-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp181836vqo; Tue, 25 Jul 2023 22:08:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlGnLrvSjKppuGvpx/93JM9ulWENF2ZCugXr4aaPRFa2GH7t7XGiRPZ3ee47IldMi3eAdmhG X-Received: by 2002:a17:90b:33d2:b0:267:ee02:4563 with SMTP id lk18-20020a17090b33d200b00267ee024563mr1143019pjb.26.1690348098945; Tue, 25 Jul 2023 22:08:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690348098; cv=pass; d=google.com; s=arc-20160816; b=kzYweTlNamm0sLtrHSKdNBp3uAue37pJoWjJqfOpdqLzTqfjZ8+NV27pZPnqhA8qqs zb9I3f+2RxxTXmj5RyadfWEZunUJn1xZI/Ph7wEohf9Gp/qjAuwx/3paX1eYChi2hMDT V2lD5Io+5qyL9tsgnZafuY3ShSWMPNw7lIoIb9Wkfv8IrDAYoftBEiRltRZ4o0d7h1o0 NmtWNi6u6NMv73/3jzuk1eTwKi7tXKFhslBEE2Azc6eoi4CN0/lS4Wzpy8P8HPjkIM7f MLHfHOOnn/DJkyjYYGUBAKTqNmIzgOE1EVN5EZUJEcC0fJ+YdXxJsuDcqqTb9MBOnP7y PfeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VT7qOQ62I2XJCm8fWlnztBkYfBsGaUpc/87KVtpwDDE=; fh=M8OwPB4xxHq8UKL6c3Cis5twdEf52Lh9rLE4k56F3W0=; b=YLxZrEx76nvRrQiGma3OtaD9+YBDl4SfgDpFKM4fpXPAIrRJSKppktBsD6Ae0tMvJA dmLoWxMSCWuEFrwOAr7FM4xsV+fB4IhxJDVtEL4E0uVbRNeBkv0osMwhYMl9DAPMTcbR vQYuC1SYbvg1iR/Lb8/k5jfpAOkax0lUC3v+SpphdyleFpTLpbvCmzFMzzXTJjQZ9wBg nEm4WqopNYxXQO8stEtxRlvuqlg+QGZ9XFP+7Md3n+SweufM3DUADBFMKkSqnlBPECny 3nncdGAWZl9Xi56DoHY0aNsEXsLRD0OIezy28QORsAIHML12pQ+KEb0iHbBTOrsfmlZn Ohhw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=AjLoFDB9; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f23-20020a17090ace1700b00262fe4585f3si538438pju.150.2023.07.25.22.08.06; Tue, 25 Jul 2023 22:08:18 -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=@vivo.com header.s=selector2 header.b=AjLoFDB9; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231697AbjGZEJz (ORCPT <rfc822;kautuk.consul.80@gmail.com> + 99 others); Wed, 26 Jul 2023 00:09:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231700AbjGZEJL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Jul 2023 00:09:11 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on20718.outbound.protection.outlook.com [IPv6:2a01:111:f400:feab::718]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E49055253; Tue, 25 Jul 2023 21:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L0743ghStL1fhL0oYcZkD2DecqPTFbAyV+j7JKpoto09YzIAtB9qHRBwAf8YDbH8AHhVR6BlvssG3YSK+O33tWO7FHAvrjkuxhzg/3TC077OmFK2L72mqov7TzUMwzzvU96+uycwGuS1967rHF9RKNgZ/fH1qB77bPEKiMRBUqbBxREWJ3ZUiUU3aAAVeGqnVts829mOELNA2k7S8WY13tZnNkKPmkZJDcMHnS3XLAgNWmId1DMKJ4SN8cRw4W9yCg+aIbRC/bbapRcIA/hfqEIx0JMuS0xbZeZ/q5Fdqmko88mHqS+MuprLd7utQKjm4xqzOMMglEJtwKmplVpmrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VT7qOQ62I2XJCm8fWlnztBkYfBsGaUpc/87KVtpwDDE=; b=Eib3BMpdi7j3AHhVkZ+1Oxl2qQGS11DeqOanpTtotzbg9dx5s45p9r5vExddV7MrmtjJffHhZYoAKn+D60BGFxGIa50p08t1hDoE9aNnN7XAVBvQNvxUB93omRX5GN51AoBcOEyuYChlFKa8KkJD3N6xChpeuv6HIPmBKTUH2DKITl0S4Xvd3/Oi30Z5M0A9yHTim+U6eLX4UxLiifpbpIdXr/nLhTB99ObM/hNL0J0ZHAmM5MzpQ8ZKlyRop0oRvAUfiX4Brvqw56cT7i6P4n42Kf3lsBJ5phxFSSZiKu+h8IKjiuieQnBaAtXm0QvW+//VUUNzDGKfeiUycc2IrQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VT7qOQ62I2XJCm8fWlnztBkYfBsGaUpc/87KVtpwDDE=; b=AjLoFDB9aFbTu9vqm3L7g0XZRXzKGaAdDoiwYQTl0QzohKaR074OhoGWQJOFSQg4N5xJf9WrsIOwJGl8slZEzsIAR18n5cW5mVfeGqoFns6PEtz6Mo02EQG/vwkQXwdeL53SSVZ1xh0z7WWa9r34ydsJhMKhSEbJ5DibmGANkf6JG+ji6bbnynIgUPYG4M3m+BcQTi0MiaW+B0sj8tsCNkGYltmMoF1Y6pVnHxMllQgUK+yclkpujpU2Yb4yJifuDN2cMWc8RReJxzUIOQwduhVHtN7dCL7/q20DGzm0Fc9Qvy7bX1jJ4pihJSyKfgwZxKNVw3DTgGyYkEpKyFH2PA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SI2PR06MB5139.apcprd06.prod.outlook.com (2603:1096:4:1ae::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29; Wed, 26 Jul 2023 04:02:32 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::732f:ea1d:45a1:1e0b]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::732f:ea1d:45a1:1e0b%3]) with mapi id 15.20.6631.026; Wed, 26 Jul 2023 04:02:32 +0000 From: Yangtao Li <frank.li@vivo.com> To: Adrian Hunter <adrian.hunter@intel.com>, Angelo Dureghello <angelo.dureghello@timesys.com>, Ulf Hansson <ulf.hansson@linaro.org> Cc: Yangtao Li <frank.li@vivo.com>, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 49/61] mmc: sdhci-esdhc-mcf: Convert to platform remove callback returning void Date: Wed, 26 Jul 2023 12:00:29 +0800 Message-Id: <20230726040041.26267-49-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230726040041.26267-1-frank.li@vivo.com> References: <20230726040041.26267-1-frank.li@vivo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SG2PR02CA0093.apcprd02.prod.outlook.com (2603:1096:4:90::33) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB5139:EE_ X-MS-Office365-Filtering-Correlation-Id: c9890010-9db0-4489-4369-08db8d8d1e93 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: r1IW+v+vJdTiPZfDeONYNb2raq80F0cq3HQsmjP3DpCfSAfgp5Pqv9PRwECZ6C4LdQTxbcfWXcDGEp3gt85SdnoXMq5tFqLiamxHsw4zz2afVYfDuG7lKHhKKmMu/Ly2VXLqsdNOsnYyHXBEXrS73EQy6h+VcXwn+7d1XvOmKZ6zr7Or8x7wlk79NGoUt+VfP8OahTaFaKOI6WmJhOGrKN9b33l5Nto6SuDX/kqLxF5nJrjfw9eB7R6Er3lvfublZTU/doWpnT5WqTthuzoG+46Mc/pg1IHMQT0CPYIsBjQXsYyZA07IooJRwKNYU6rf1o8zCwxIQf7A7lrCANA4dup9RMmOyYY7+BkQcMcHqbwP19Con+X9T8LJY2mgETRnZrrPdCgM996B8jazI3ELO9jx6Ld9zILsXTV943k/9rIgMfNeew8uFvC/4Z7GMSPo5jwyzyXuEXeYKm4Xc7+AFsWGb5F2q9pYNWuHKoK3FEJtOMUvq0VQpYg2V4hDkydXlfi6hiVPs5WF9WQNnKXc/09JL+0A7H3oDMCLrv8sSHLQ8dezg8qscAPqODWL4QdYqv/jUdByoL71t/kr4Y265oXSz+ErtWzBN0XuIB38dndn0jy9lABLIllXYyBeUQo4 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(39860400002)(346002)(366004)(376002)(136003)(451199021)(110136005)(54906003)(38350700002)(6512007)(38100700002)(52116002)(6486002)(6666004)(478600001)(41300700001)(5660300002)(2616005)(8936002)(8676002)(66556008)(4326008)(66476007)(66946007)(316002)(186003)(83380400001)(6506007)(26005)(1076003)(86362001)(2906002)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?NioL4kPb+WmvegL9HDhfvvXMS8/H?= =?utf-8?q?Jz1ADk0SgURVC35fWsfC7pLNMgB3qRfXBGCtOusy8scqlx4sFWsl7NFTIQZRt+7A5?= =?utf-8?q?tgDykyQAbWGS7+decsMfhakKNsEvKhi+falE1RBpAXmJ71wuTgbe9c4lgP3/TUOiZ?= =?utf-8?q?sF1fDQnB3m+/MNa68QNNBD4i8OH3f7z+dnbGQaesA6+Vimooh6h+jajYOh65arXEA?= =?utf-8?q?2ZLocK6c7/nDiavBfW2WQiyqS9n0+Aui3S5BybHQhj6w+Ot4pNyWNrAKKTidunkDA?= =?utf-8?q?laqHFJLFA2/KBhLKkX0ZNDDsi6kHXQBd4vbwPaRbWQT6eB3Y5GRBkv4F4supxpaWj?= =?utf-8?q?IX4Ae00lypvW3FpA6s45FegeqgaBlEzdN3a023O4HweVsSK9ZCuu9hLYiPFQRGyyU?= =?utf-8?q?QShRxbKABy86z6FxfebC1qYRIWOBLGoY+Uhbp2BIRW24dABvSa7rCpG+B5y7mI+p7?= =?utf-8?q?WURYpmREgtUbK5+ZWkDaNbSOtmehrNjMEP0jOY1TfNYIyIUS8wHwz1i/v4GY834gq?= =?utf-8?q?YBVAtGMyI0nutpijVP5hm8LduX+bct3M337+d0ckU5dgp13/JfqzGcnFdSXtAmQWK?= =?utf-8?q?ls32xQ4blO2+CUnzDab4rsmyl5CytvWZZ+ErUrPY22G+HtQdFBwxO2CmlELMUHu/H?= =?utf-8?q?v59hIgqSJyEsjMikyUM6lMLx8ruTu+Vj/wMstcu3hyiNE0F1v1I2ovw3/hDshFcEA?= =?utf-8?q?f8EEs57fNybnxOKJlf7/jefw1nwg8ShQqwuv6OxoopqzpWqcICitA5c/8Gmjf9MrL?= =?utf-8?q?8d58KoYsY+96afbkB8qWyg2LXAJLEDkijrJfL8jCSszdIjO4URNj0rWA4zELq1P+m?= =?utf-8?q?X3tdBju99KQDqIynwaL6DCc/R0hMXG+0VUPiOi1rbh6e4YWeznjfAtn4WUpDEZvl5?= =?utf-8?q?nrGCe+5OaKHwdNPbWNWlVBmj7/dqwvAnAbaHBrc1W50ENAvCk92gIy/3akg1rZuWd?= =?utf-8?q?cM5VMh+j04jMfQYQMtEIfyRjyR7Tp92+Sjw502UuQoJDM+j2+F+xkHSFOBhVQs1bz?= =?utf-8?q?yZEUDRhbOdM1jtgqR1H5KaHQm1E2LKRkJXtSOHvSyH662SfUbzA1CZyfoGRTcNnKr?= =?utf-8?q?a9Q+L8wSpX3ilGBu82azv/5+h6Go3LItb1KAkdl0vCvICsGzFbMXx1UrxlILz0Wuf?= =?utf-8?q?tKse+LfZqCbPPflxKC+zFeIcBDVf1T6Aa0X54VNNpIwJZJCi6+H/ea1r8kKvucKSA?= =?utf-8?q?hjkeNBjkkpaN6yr8Uc2EMAqwSQAAvcWzrH++vuBMLX1Z3mrQ3/YRcmMTnO8GKmKsI?= =?utf-8?q?v86M/+kssC+Wmd6jJwV/HfrqUAErx6h1v5IuA8c20tLB3BuqzIuEStWHcgPTJr1Cx?= =?utf-8?q?P6IkptRT26ShRjZjiPRPHTQ3XBeGSoWZCVFvF028jV5sSA1MBCsrbi78A4OWWA1D4?= =?utf-8?q?g+FsRcbvStiosI1rrbSqBlknbJ1tEC2KapCrKnxgrMjPKUuSnP+EIZP6vK3Ei/8zT?= =?utf-8?q?E34OoStCRr+/G1dSPSoW7eGEQAhOgrM/d34iK4iWZfbjK2QJAqUYReAvyCI+mqod3?= =?utf-8?q?YzkaezaOWYmi?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9890010-9db0-4489-4369-08db8d8d1e93 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2023 04:02:24.6947 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2e6/KT1yLzCuutA7LTshaDm6CJd7CQMXvjbkehI05pG/DvMqSoAvaGyZ9yeZ/uI3msAxpWwltp2FhVhQFFMRPw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB5139 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772458447997390568 X-GMAIL-MSGID: 1772458447997390568 |
Series |
[v2,01/61] mmc: sunxi: Convert to platform remove callback returning void
|
|
Commit Message
李扬韬
July 26, 2023, 4 a.m. UTC
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to make the remove callback return void. In the first step of this quest all drivers are converted to .remove_new() which already returns void. Trivially convert this driver from always returning zero in the remove callback to the void returning variant. Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Yangtao Li <frank.li@vivo.com> Acked-by: Angelo Dureghello <angelo.dureghello@timesys.com> --- drivers/mmc/host/sdhci-esdhc-mcf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
Comments
Hi Yangtao, Acked-by: Angelo Dureghello <angelo.dureghello@timesys.com> On Wed, Jul 26, 2023 at 6:02 AM Yangtao Li <frank.li@vivo.com> wrote: > > The .remove() callback for a platform driver returns an int which makes > many driver authors wrongly assume it's possible to do error handling by > returning an error code. However the value returned is (mostly) ignored > and this typically results in resource leaks. To improve here there is a > quest to make the remove callback return void. In the first step of this > quest all drivers are converted to .remove_new() which already returns > void. > > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. > > Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> > Signed-off-by: Yangtao Li <frank.li@vivo.com> > Acked-by: Angelo Dureghello <angelo.dureghello@timesys.com> > --- > drivers/mmc/host/sdhci-esdhc-mcf.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-esdhc-mcf.c b/drivers/mmc/host/sdhci-esdhc-mcf.c > index 05926bf5ecf9..a07f8333cd6b 100644 > --- a/drivers/mmc/host/sdhci-esdhc-mcf.c > +++ b/drivers/mmc/host/sdhci-esdhc-mcf.c > @@ -489,7 +489,7 @@ static int sdhci_esdhc_mcf_probe(struct platform_device *pdev) > return err; > } > > -static int sdhci_esdhc_mcf_remove(struct platform_device *pdev) > +static void sdhci_esdhc_mcf_remove(struct platform_device *pdev) > { > struct sdhci_host *host = platform_get_drvdata(pdev); > struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); > @@ -502,8 +502,6 @@ static int sdhci_esdhc_mcf_remove(struct platform_device *pdev) > clk_disable_unprepare(mcf_data->clk_per); > > sdhci_pltfm_free(pdev); > - > - return 0; > } > > static struct platform_driver sdhci_esdhc_mcf_driver = { > @@ -512,7 +510,7 @@ static struct platform_driver sdhci_esdhc_mcf_driver = { > .probe_type = PROBE_PREFER_ASYNCHRONOUS, > }, > .probe = sdhci_esdhc_mcf_probe, > - .remove = sdhci_esdhc_mcf_remove, > + .remove_new = sdhci_esdhc_mcf_remove, > }; > > module_platform_driver(sdhci_esdhc_mcf_driver); > -- > 2.39.0 >
diff --git a/drivers/mmc/host/sdhci-esdhc-mcf.c b/drivers/mmc/host/sdhci-esdhc-mcf.c index 05926bf5ecf9..a07f8333cd6b 100644 --- a/drivers/mmc/host/sdhci-esdhc-mcf.c +++ b/drivers/mmc/host/sdhci-esdhc-mcf.c @@ -489,7 +489,7 @@ static int sdhci_esdhc_mcf_probe(struct platform_device *pdev) return err; } -static int sdhci_esdhc_mcf_remove(struct platform_device *pdev) +static void sdhci_esdhc_mcf_remove(struct platform_device *pdev) { struct sdhci_host *host = platform_get_drvdata(pdev); struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); @@ -502,8 +502,6 @@ static int sdhci_esdhc_mcf_remove(struct platform_device *pdev) clk_disable_unprepare(mcf_data->clk_per); sdhci_pltfm_free(pdev); - - return 0; } static struct platform_driver sdhci_esdhc_mcf_driver = { @@ -512,7 +510,7 @@ static struct platform_driver sdhci_esdhc_mcf_driver = { .probe_type = PROBE_PREFER_ASYNCHRONOUS, }, .probe = sdhci_esdhc_mcf_probe, - .remove = sdhci_esdhc_mcf_remove, + .remove_new = sdhci_esdhc_mcf_remove, }; module_platform_driver(sdhci_esdhc_mcf_driver);