Message ID | 20230713080807.69999-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:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1686907vqm; Thu, 13 Jul 2023 02:01:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlGYj0RcVTEuo2ueBgQfGKNbl9VKgcroLeN1A9mJSUvCeDiZHiJeFYyehYX8FxJwQg7rFD6h X-Received: by 2002:a05:6402:1b0e:b0:51e:57e7:3f0c with SMTP id by14-20020a0564021b0e00b0051e57e73f0cmr1468331edb.13.1689238884865; Thu, 13 Jul 2023 02:01:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689238884; cv=pass; d=google.com; s=arc-20160816; b=l0UHeBKxIXPIdVmknEdCrOP7sYlwZq40oSRTMZbccA6hw6UeMj1UnnQm8X2iX0n7CA 6jMNbMMOGnzCbroYYWpUQCmzhBvwfHID8MUfQj7XRE3ocwTWa0fd3eglYQqGSfTMstpt QsRadFU2XGYPsurYZsriZ7yjtXJCw4FkWFimOdRytrw4L+VFjeDm90sb98+ksMcQTi2E cpBmxp76V/FiOAlrplEdq6vvX77Mba5jGHpD8U7yplxSUFmR+0GqbVuNETnE/44Ie84p GdOZlmlYsuhx8ivjfW0NbYm9alfzTVwzD5blFuLIGWk+U5g4xeH693gMLJA2VTfPNgh4 OFRw== 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=P9Dfs5F2gSSKlNfyHZt5vKY/Z4kFZTv/2MR5XySfA8w=; fh=M8OwPB4xxHq8UKL6c3Cis5twdEf52Lh9rLE4k56F3W0=; b=VwBuWKxKhWMcQ19/fogF2ibzj8H/l6biRY1DZTo3bGXnkvPqEIlo2gJpiMf+xeRpW2 hJEjH/BsRrTo167AJxw/oDEwHgFqFhjS0QNWDC5M2jYb2gXG7V+js7UrWbgGmY7Og5aU 6QLyIclityorPRzPiiIJ4AjcegNsnsne+aQoMAxfrKHkIZY8atzIi4yBS5zsig3nQq69 3qdLFI//dwdBvXIee+f720GPwzWjCXVKVDjJlemrqs0+BmF+ZKD8dyNBHw1AE9ec8umr FgjD14Lw3quOTFogRDXc/wKyw9Av7+H9wkk8anjmZ+H3da/QczDAN+Pmo0Y8XWWfB1h9 EMNw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=UISrpoqi; 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 t25-20020aa7d4d9000000b0051dd511f0c1si6872910edr.177.2023.07.13.02.01.00; Thu, 13 Jul 2023 02:01:24 -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=UISrpoqi; 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 S233305AbjGMIPB (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Thu, 13 Jul 2023 04:15:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234172AbjGMINd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Jul 2023 04:13:33 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2123.outbound.protection.outlook.com [40.107.255.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25EC3272A; Thu, 13 Jul 2023 01:10:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XJBThyzzJiCwNittwYp4PUGRov9nGj3vUJekVmNFPDeROohoYdGNV8R98qpnH1k64nJbVFab1aNqYdGlVBLzHUI52i0SlNsp1G/t4XcBWLic4wpBO9T1JGrKrRahZxwQRuvaR42cloteFwIAXzCykXXuZa/DzWTWUitZWoqxEF80iULWuslpsXePilbiZB6S1OHPZNh+E+eeWBIiJ1bN6cdA+WVQPenrXvwgTRUNIymAmUpW0hUmfRLrJceYpnAHrmRLl6UleHMWeOgxncaX0juoAnn3st1iUjEZmYme9jEIdy0udPksJnz4WfsbIKlk95Cmnqgg7Dco9nSEX5BeQg== 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=P9Dfs5F2gSSKlNfyHZt5vKY/Z4kFZTv/2MR5XySfA8w=; b=W4FUOyCQjezyC/7l7rQlm+9CAt7sCBggsHhelDjEH+e5CmeF62xeTPXSFiFQnXARflZeuYXEse47uW+OZbN132lUie7Xe2nk+RbCIs8gi8AuUFJ5tM/Bij3Jmm5Jj1STvW+/iwZumm9L4yICc9X5B/kLiHcvpgsMASGt0/AudUpHDnSbUiv0b/AUfJkWiEZGT1KjjovdnqiyIZyP1r12UL1h/pPBZrwMSROPXPVg9hvK61K2jEgZXeIcSZaV+3qxuQBfKXP7PFxgRPK43I73R8rwSRBIZ0MHu2S7YRukS7cOoZPzjs0r+yJFlaPzpDJ12jH4DRfJKoGg4t0WhZimng== 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=P9Dfs5F2gSSKlNfyHZt5vKY/Z4kFZTv/2MR5XySfA8w=; b=UISrpoqiEOwUWaLBvo2A4JbmxnDnTrdsWmUrMOIkeJfCiW/vLMqfaHxyf8uKcoFFpGicFk+2uvI+VW9aEBYTR46f+SYahsbaAHoUE2aNcR0zmq3bT6Pp6YweSK7OG447gGi8gyX/itXgb9PszLH5s/j2+UUnxd1LLSOjdNloxC/WKY4v/TnGx3sQAKKzjOH4hk8l46R3bypoKo2PeU4rlkwdbc/W5ptiILb/uZ/KbzRzj8PZfZFndMIF3vVpZP984ThehkhaEoksHI7fPeRX8NG/rni7I5egoAMWZ92uKYjL4HwHJZWXzBv4X5l9BcegNjHIo2fU2nqkOcRZ2R9QnQ== 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 PUZPR06MB5984.apcprd06.prod.outlook.com (2603:1096:301:118::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.22; Thu, 13 Jul 2023 08:10:02 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.028; Thu, 13 Jul 2023 08:10:02 +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 49/58] mmc: sdhci-esdhc-mcf: Convert to platform remove callback returning void Date: Thu, 13 Jul 2023 16:07:58 +0800 Message-Id: <20230713080807.69999-49-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230713080807.69999-1-frank.li@vivo.com> References: <20230713080807.69999-1-frank.li@vivo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SG2PR02CA0091.apcprd02.prod.outlook.com (2603:1096:4:90::31) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|PUZPR06MB5984:EE_ X-MS-Office365-Filtering-Correlation-Id: 196059cc-3ff2-48d3-8561-08db83788632 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iwyLlIvjgaPBNtEIeSotWGjnE/0ui97yaC0vd6tVd3xrW2w/Wnj7bVm/u7Ia9LTrdz91ZJqLx+0QRdT/G50qlOVHxRyF4cVBO+l2pK0kGXBEXa2E0Ppc3TK1yLBzDGRm7bRCXnc6BGj4IQuoJlwLPrwGhFCd9Z64mGczr3gFBxh3wl64I4kUABoqbxywkuM9CoWTsSgF8Rol8aVIdAtuoyy7cKSosrcUnV9yuhCJmOKMZMXcowZDaf10igT+zwqPWkeZZOHXbPLtlbMZJ+aUiAOozr798WxO4m/cAZraNzspPyNdnMp/6/MnqugKPEMcshX5NizsgRNZIdjdInnwHC6euh0JMIW7O/l4guDfh4KEAovG07qcXqzTboOGUbcWPM630znMbVCf4BPdEYcQZT/SdVfIzdgE020efQ4DaOkFyLTZgL+BTecG3dwoLX4SPGHZbreUvV5dIUX+EtUvq7RKd4F2SG8vyN3JondG+LKUfT99zqCsp64UlOuuTYN9i0YykK9muFbDF2QcNOpWgju3WJPWP+G1ITLdznw7zmgobxk5SktnxYOMg5b2N3HX2cZkWptfwjgn3NVx1uKBXsa60XZtpQivvwUTQVg/Rg93Syz7sgrV4yucIn771U3d 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)(136003)(346002)(376002)(396003)(39860400002)(366004)(451199021)(478600001)(6666004)(110136005)(54906003)(52116002)(66476007)(66946007)(66556008)(6486002)(4326008)(316002)(41300700001)(2616005)(186003)(2906002)(8936002)(8676002)(38100700002)(6506007)(1076003)(36756003)(26005)(5660300002)(6512007)(86362001)(38350700002)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?sBkfQdWXcQvRRhxfg90v9dilQmcm?= =?utf-8?q?6uEGuY1lK0xXA05GaWw7jJqSmfP/J3oLr/27chWCz0gzQVhi2SUYNE45IvzMqCNFt?= =?utf-8?q?K5AYSrKUSns1K2K7ImWJzG9J3O1M6rLNz0EB0UADUFZvqOMNBjW5dSiTjt8p7ot3b?= =?utf-8?q?OaMbVu0oW+eE/6sbdKsri5Ia12A27YpaYgEjKUyGoobHVIv/EGZnKE2Quj7D2EouQ?= =?utf-8?q?wUiWDhq3Pnv0cL++EfiwNbL/NkeIxSwW0q47yDwrDsTEKBRYNw/EsFCLz1G9mwxJH?= =?utf-8?q?RP289coKYZj5YHcTThKfHJMMjk1UOsLgc/c/un3cGDuYJ1nyayp0olMiJltZ8YIMy?= =?utf-8?q?C9KjawwFch2UDcGVBTKKrs92ivLgm6rFp/zUxW15jdTatoCvwQn/FxEH9U5I2+oIx?= =?utf-8?q?mJaA92s3va+jdn8v59cTSnkPgmu/U9aJC8bEtekcX9HcP6UdmCZFbsSzvTa7M57xk?= =?utf-8?q?9fwFvYlUsZB1wfYwiL5tyVxLYnUHysLRwKpN+s+QvrZa/qvhnR6/J+/Dz9jVhDQRc?= =?utf-8?q?WvGFQaSactA/eQ288Y/J74jq/JpvxfxQU2FecZrbOXnfaTW8FRSyDuznS1cZE04oj?= =?utf-8?q?EIeGPyu+uc/VY7idYPo+uHmvM2JF+WZvQJuxnQwTbdjh0SjeI6JRPHeTwdABCRBeY?= =?utf-8?q?kPzr22IzwDiVzraWyGqRCELHZmxgBAQLM0Ah6DF+dZt4Hbtta8G9qHhWKNQxLgW9N?= =?utf-8?q?AUintZBFEDZdCPCkLHryWBEtkxDWRsQZM9v6pNgDViHk0X/CUgBm9Q8qZBNj4xKxE?= =?utf-8?q?8vVor+C0h7gOn/HC1rHiIkNK+G1dmN/QMa3HGMatWezy9Kco4N495u6aRlEahwUfV?= =?utf-8?q?xMmhehuKcn8nt7IksRQKxSDqVfwZdEEDGbk+7ClRofqv7ew6v/YM6hlBOUOZlno2i?= =?utf-8?q?Z4Su+Gwd1zKD2qBC6pWg+ojGCuyHQ+yHMzaIC+mg3voMZwqfgcwiX66mm2FFxXdXX?= =?utf-8?q?asaLNtwL+LDPrOem6RCqbLZ07ip2T7lbusFIvbI/G49eFv4qiGUsg6C1t62NlxqZQ?= =?utf-8?q?CughJ+REtJX3dnVw2JZ45D3aaOKY/wlTvEls8dnWnxaWq/UWyXaNKS3va+tv/tTzz?= =?utf-8?q?L8nhYWnFS69BdX+U6C6SeYsQflEn2XobpVFyQ+ix1aGE8pTx/0c24bSZNo56aHmFm?= =?utf-8?q?FqD1w3lcKRDizo8jQzZFQrt5NLVi7V5cbYTJtsVijUbFSVTazfS7sGjYEa106TxAh?= =?utf-8?q?qgh0AneQmPNta9KOgjqA5qLGQQUe6WrmXWzUVa6XKuo9+VXBVrA+VjjfTCtarBA+v?= =?utf-8?q?ZvCry4dmkRuGXACdPAEvZFmm2jsA9mz+zG8ij6k39fybHIXI77+NoEQlddQ+QVUna?= =?utf-8?q?7Kpdev1ygn7urgiGlRd1w4IRUyHTA6aYTM7ZF8VZ1k4ahxgxWidDJjYNlH9dJGFXK?= =?utf-8?q?K53U0BTZ5OetZt9AWWaP1N/x69VcoibsDdqiGqtIkIQu/zFKgdzsf3oH9tJRD3kvC?= =?utf-8?q?cj0D1yDu3kppLX1xun3GyIBeMBDK9bk/8jQNSD3lEa80Xz3UFj0Y9B005Uy01zcvI?= =?utf-8?q?UPBcENf9AT1/?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 196059cc-3ff2-48d3-8561-08db83788632 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2023 08:09:47.5281 (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: 10+ozMp3kmmHKcNV0CEG+Wirb++c9NAod9kZ2OUNgMNyRDQgQ+jC/STvMipbgw9Z7fYYiuJJHH+oK7ZoNQpRRg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR06MB5984 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: 1771295352580390887 X-GMAIL-MSGID: 1771295352580390887 |
Series |
[01/58] mmc: sunxi: Convert to platform remove callback returning void
|
|
Commit Message
李扬韬
July 13, 2023, 8:07 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>
---
drivers/mmc/host/sdhci-esdhc-mcf.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
Comments
Hi Yangtao, thanks, Acked-by: Angelo Dureghello <angelo.dureghello@timesys.com> On Thu, Jul 13, 2023 at 10:10 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> > --- > 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);