Message ID | 20230713080807.69999-34-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 c18csp1680421vqm; Thu, 13 Jul 2023 01:44:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlGmrDbqBrtCGfUL2maN8dtYZaVzTUG0K2t8/a1xN+KYMxydjK8LxAqbjaFwzNnws4e1so4J X-Received: by 2002:a17:906:51d3:b0:96f:e45f:92e9 with SMTP id v19-20020a17090651d300b0096fe45f92e9mr1081300ejk.16.1689237896367; Thu, 13 Jul 2023 01:44:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689237896; cv=pass; d=google.com; s=arc-20160816; b=0ex5awMwdZ9ckybnV5d6u5BQAsovozplnZM06pjho8JChx1mrEpL0uF16WeB5UTUfv Vmo+pcBIInzwYX5j2TMH6kNSoz/sJ3nj/wU1y2V9v2CEuBlIH6cPOWmK/SbbUHhFf5/i jg/8FYIMOcimMC0wfpv/jqQIHssVTReeNY/3uIhdgZAVeqJJUPaKg4sIVQ/UYesy8zav g/peGAd5vHVJDvW7Va/CqswKMFqN3FxRqKE3Hy5oAipQObcLQ4/277fLsNYggeNHUz2N IPk5uF1k/OjxeM+gSnX9zwMeWNqj9ykaFJGDu4KuFfmUGz1v3gGZqHaXt/K7wjs+z0Vr oEiQ== 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=yYB4ULj85t6RodZH91W/2KX26vucD5LOfkqU3wXonck=; fh=Jptc+LQTdIbOXFIkBDUB9YnZRWZjO2vsWVpX7sYkr2M=; b=GaByf4t5G1GkE1MWTa5qfKZ322YCS/DAAk1FRQJz4RjQFJKB7T6zNH9JpJFcjI4TBo 74rTeAP646QAOSqh7gqvMBMLEmRaJMBBrXYzafXm8Oy24O/edUGdOt6NMm6DFhj3bvPq 3rZdVmKAqvzGM3gLtWDh8vEWG4ufveUPtLcrhC2+0Yt9FBhSGKXePNzZxBYASxOyPeNK gKjBR/yIR31kTmJUqkmSz7gsdlGKbehJgAGr3u1tS7Fff7GIFmsOUnKZj4RCD8vccUIg Y81fcMT1wOS0u6TyEOjit+cZMPltYVz61nPI5GLn+2JqkT8ZG44t06Mp19o5Vq//3woC 5AZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=S0VvKPOh; 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 v5-20020a1709063bc500b009920f18a5e9si6480276ejf.728.2023.07.13.01.44.32; Thu, 13 Jul 2023 01:44:56 -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=S0VvKPOh; 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 S234406AbjGMIM4 (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Thu, 13 Jul 2023 04:12:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234028AbjGMIL3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Jul 2023 04:11:29 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2112.outbound.protection.outlook.com [40.107.255.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B4EF2D7F; Thu, 13 Jul 2023 01:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EPoO94keXcqB5YleD7O2ZNydg3+jOqqLNaQGQPNu5G6CgAOtLubObl7uy+9CWdjRpeuHG1RzRlvyzc7NSCfA+iWhuBQUstiQmJkJzpvHvBgpLFIiR5cWf7wBDwroDLi5OpIVLaJw7OrlQafvAQ81aMrEg0OwJPWMQUP3tAtqJRcsfyyZV2pUPXLd4ovJhOcndQufdJ+FFtQD9yewk0FaMNQok0htaz/6+3CsiRnFIcm3KTgqxA/1mdIw9xEjsfyABIHZ7wuYMAsAHJH3s7hTqgWuFi2Ic14LKvg0AJ3gsSQJPgn8i6Rvi0I/TPtkt2r9w0Tjsb1juQWxtSH/2FCJ2w== 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=yYB4ULj85t6RodZH91W/2KX26vucD5LOfkqU3wXonck=; b=hyPdntu5m3BFR+kJqpB1d0UpcsJcjxff6Gwsj24snXf6W80aSyA8ZrMfWYZuryYvXekv+2joXPAuLBhrKdCQBwHvdH0P+H8ZOFNrO8Z03x2+LUQYEpiCDTcdwEtAn2VY8P98BQbjkHR7QbDWDzPJWoF0Q9bIOuiJ9kol47DiJBVBYMRkvUEj1rwsa7qsePwe7sVmwBzcu36mMOLcbA2hixAdxVn5oV7+gRsk5k8WPA/4Ko9ou88A3DWwxU0PMrtgb7Hv+6M90qZYm7d9aYSs/KGr78o1RrjVmTtBvzO6q2aW284n/zITpewfqEURghDZMNJaTMH4qustxexcTFPekw== 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=yYB4ULj85t6RodZH91W/2KX26vucD5LOfkqU3wXonck=; b=S0VvKPOh2ecIOoqq5spv49Hurl47rz83PYTFSjzVqmJaJiak9rwawDQebmHjddCHt+SGoF7hmkarDCYkdXRyVR/8EljWlQQ94Jb/iwrVh8WHPPOHgwC1ztLMzl5TgLhxkV/G2tSr6hHGWnX4BoD3l5m4YCNVRhsdUULJosd9ziDgHLhnehULuoeK4i/P6abKPhaaCq0lWsqT0g2ZWov3hlanfQyBzmqM9TeINd5x2hm1/MEd64IzwcpouTS0xyNofGv6hACNR9u1KOCBldClpt9fsPiuV7OpbFSXc4y8+oSdTtSpfaWaZuoCICGzJFEeD/k7Eqfnjkv1omWcrINH+w== 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 SI2PR06MB4409.apcprd06.prod.outlook.com (2603:1096:4:15c::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.24; Thu, 13 Jul 2023 08:09:19 +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:09:19 +0000 From: Yangtao Li <frank.li@vivo.com> To: Andrew Jeffery <andrew@aj.id.au>, Adrian Hunter <adrian.hunter@intel.com>, Ulf Hansson <ulf.hansson@linaro.org>, Joel Stanley <joel@jms.id.au> 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-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 34/58] mmc: sdhci-of-aspeed: Convert to platform remove callback returning void Date: Thu, 13 Jul 2023 16:07:43 +0800 Message-Id: <20230713080807.69999-34-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_|SI2PR06MB4409:EE_ X-MS-Office365-Filtering-Correlation-Id: 26d5e4aa-9aff-4f92-df32-08db83787563 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XFQ/vMCkNJCFwT68oYAQMTppvLLGuGcjcr1csqHj6+dHBeOtHSbcq0vmD8ZMahwobq0S8K5d+zpbJurDLZK2Gs2A1+Rf8G3PFUCXv2p4Gyn86gq7z/LJKQniEkeifC0YNlunH8tU62klWO7tsvrcKFTYn5h3Tu08TFwVp6zawZJjYd0fV3TRC1PPmJPbVI2nBzw1JG50J98HQJyqIbTX3gPtkV91GPRwA6pW9w4KQIhCpk6KPhJeMHpALp7n3GOpGb6A5fbPENyQ1daPgi+/oFoE7708svlWUuS+TEAL7jdjTFCc8xlwoGBRNGZQC0wJyFI0WRSelxmf17TW6RDuy6n3vNDKUhXkhrfDwvDbmD8gbY0NBZy+FJN8/0RmPXeVWXgmRiQOMNI9ufFgwOpKciLXqhgtv8GMzP6qtnRAkbT6Sp8Nn9GZ154rPjzTiUUiWzk2/hT/g7nDDt+1yCkZIBACfmOYxiyAebpArv+HQLFVlNGoNSWG2Wrhy0+cLqTF9wsACKMV+JIJUd5mHkxE2/Pdz+eRCrsu2kY7LI30x+bKtLwxItmKSqIMa/y1MCCC15wOgxie+9kRZ+qbXB46YaMuDMJeytqU1VPo7PsRd1563MrvvajPdYFL6ZJyf/Kq 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)(376002)(346002)(396003)(39860400002)(366004)(136003)(451199021)(478600001)(52116002)(6486002)(6666004)(110136005)(54906003)(83380400001)(2616005)(36756003)(86362001)(2906002)(186003)(26005)(6506007)(1076003)(6512007)(38350700002)(38100700002)(4326008)(66946007)(66476007)(41300700001)(316002)(8676002)(5660300002)(7416002)(66556008)(8936002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?3RZ9dmLyjsvB/4CV0gOwh8eXIFc4?= =?utf-8?q?12ujWT1PZ+O2ARBa1NKYGLXju7UwdWaxmsRS1IVtW5at9UjeWXKP9X1HhMCmXy5ga?= =?utf-8?q?RSDR9v3+TPoM0ovk7oMiCW7KK2+FxBHj0fuo0Egi8xqcdHPUdZXAEryRT/0kbWWJV?= =?utf-8?q?RC2cOl8Vq++bYQqkNuBm7gpjTR5JfG/W+qEHQzwpH/OMOIDGBz2OZnQTb8lMhaIG/?= =?utf-8?q?MQgGJOdDZ5S0QlMY/3LqxM1xJPjBYFyxJzFPfzvwL4yUkz+jLCS7pZPNyCTFF0MRD?= =?utf-8?q?Ke4PlMjhuf4KhIQCqv785RY/uI6/eQ7QtgI7t6KTWPDWlW0da8Crv7fZw6nH+ndfH?= =?utf-8?q?q2yc3/TlrkvopK1PFVXKmezK7hLduvkvjl3W+t4OQvNFytu8Ql0TCp8tKshtAcOPY?= =?utf-8?q?EzOSDPWea42ZLqo+TJBvrxUIoEKjOBBoTfueXbW9hwvKbmlHKE/jCL5lwTtNG30ae?= =?utf-8?q?2mvNR8QEKMVf4O+Z971UO7QwLcQuwboipge8sbT2nrjlD/D7S6t8BWXtVfdYwC9ya?= =?utf-8?q?K7VlhM+rQ+lEMRXASP/fWnggMAYoOxRrAPJfBFNpiq+qG856v1qMleDoLEs3lDO65?= =?utf-8?q?eBqD/IrEhg2YmMwQQ/qzX2JOzJFGzzOmIDPRF2fODFOZR5pXJ34fIRkP9Oeiynduu?= =?utf-8?q?+ASTaKQ7IoUjxBUyNYcvUyPf3GdqLF3+lV/zHHrLeBqvj+70ETlmH2tfhyCEPawhi?= =?utf-8?q?zFKSuysFxhXcznPFvo8DGx1Ob12f12IBjbwHiitrzOUl5SJKGuGdMjRWfPQAs5smx?= =?utf-8?q?11kkGil20uOWxyS9NlFzVW8YYJ8vjt5aE1S2lhps+lXJuTTDg7h0TK9O9Yh3fEohB?= =?utf-8?q?022cD5AW34jYt+cLMKOOhGuVE7uSLnF9z5Es+Y+pYwCPxf4AzSEmKWQvsldZnnT6m?= =?utf-8?q?5WfoYksD6MO8m2INOflF1+nSL/orFQmbw7ZbmPCjCx7uSy0ZGfUb/Uyr3G+eAl0s0?= =?utf-8?q?noL6XbMJEB12AVBwXdUz2G7m9GerTA/9ctleKvWPU7gN6A3pN2cBWgR1vstzk9Z3f?= =?utf-8?q?TBZjU8ACllT5/WCd2AcyO6Hs44QWPvrVDX3fQMKoTyrbeJqdg0dlkdmKforJ3bbo/?= =?utf-8?q?21TrlDw3Wh2VEg0KCUqK42cA6ye25kw3xi5VA3LBISvid7GOmnKuQQ8xaYER71AkU?= =?utf-8?q?NSlaQw//8o3JRvhSqW4k6I/F/CzLvhX6vfD1nidcShsue2RI0ws2VXB81NWkx/zvR?= =?utf-8?q?6WIA9UUApG7d7R3O0E6amhV2NEPt60vCkHdCnOzX+6nT0LBk2V8ePMUhdQCIrGoiD?= =?utf-8?q?If3xBRU6VsbjfXU5fW/7/mkGLEE1zNBrun60iE5qfJqaW1JcPGoIQN3NM1RRGI/EP?= =?utf-8?q?6CBf2wYprn8Srk+4vDRK99kk9Ruac/BKMIpwsEItXgp185n9EuxwhQ3+DSF6xsz1t?= =?utf-8?q?oRMNc/ZJ2b6nvU/igCoctp2XVAaXkJNLZQwKFzP5L/SLcnikcqtEMiuitcAtqiuVs?= =?utf-8?q?Hsl5zil6gBgG/OJ5xZWE3hhXcC5AnoUBVH73Vl9beFqKeXu9PsNzScu6EyIlyY/GP?= =?utf-8?q?udXN4gDC+3UV?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26d5e4aa-9aff-4f92-df32-08db83787563 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:19.3157 (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: yhlGAtM3uC4hssoZQ4Be3bL9ZEteG7xOu4rd4bxk7NReJSHhi6OlpISTRQgQsyp4MLIP/6XUYs1U7U4OiAaimg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4409 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: 1771294316296988971 X-GMAIL-MSGID: 1771294316296988971 |
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-of-aspeed.c | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
Comments
On Thu, Jul 13, 2023 at 04:07:43PM +0800, Yangtao Li 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-of-aspeed.c | 15 +++++---------- > 1 file changed, 5 insertions(+), 10 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-of-aspeed.c b/drivers/mmc/host/sdhci-of-aspeed.c > index 25b4073f698b..42d54532cabe 100644 > --- a/drivers/mmc/host/sdhci-of-aspeed.c > +++ b/drivers/mmc/host/sdhci-of-aspeed.c > @@ -450,22 +450,19 @@ static int aspeed_sdhci_probe(struct platform_device *pdev) > return ret; > } > > -static int aspeed_sdhci_remove(struct platform_device *pdev) > +static void aspeed_sdhci_remove(struct platform_device *pdev) > { > struct sdhci_pltfm_host *pltfm_host; > struct sdhci_host *host; > - int dead = 0; > > host = platform_get_drvdata(pdev); > pltfm_host = sdhci_priv(host); > > - sdhci_remove_host(host, dead); > + sdhci_remove_host(host, 0); Please mention additional cleanups in the commit log (or split them into separate patches). Best regards Uwe
diff --git a/drivers/mmc/host/sdhci-of-aspeed.c b/drivers/mmc/host/sdhci-of-aspeed.c index 25b4073f698b..42d54532cabe 100644 --- a/drivers/mmc/host/sdhci-of-aspeed.c +++ b/drivers/mmc/host/sdhci-of-aspeed.c @@ -450,22 +450,19 @@ static int aspeed_sdhci_probe(struct platform_device *pdev) return ret; } -static int aspeed_sdhci_remove(struct platform_device *pdev) +static void aspeed_sdhci_remove(struct platform_device *pdev) { struct sdhci_pltfm_host *pltfm_host; struct sdhci_host *host; - int dead = 0; host = platform_get_drvdata(pdev); pltfm_host = sdhci_priv(host); - sdhci_remove_host(host, dead); + sdhci_remove_host(host, 0); clk_disable_unprepare(pltfm_host->clk); sdhci_pltfm_free(pdev); - - return 0; } static const struct aspeed_sdhci_pdata ast2400_sdhci_pdata = { @@ -521,7 +518,7 @@ static struct platform_driver aspeed_sdhci_driver = { .of_match_table = aspeed_sdhci_of_match, }, .probe = aspeed_sdhci_probe, - .remove = aspeed_sdhci_remove, + .remove_new = aspeed_sdhci_remove, }; static int aspeed_sdc_probe(struct platform_device *pdev) @@ -574,13 +571,11 @@ static int aspeed_sdc_probe(struct platform_device *pdev) return ret; } -static int aspeed_sdc_remove(struct platform_device *pdev) +static void aspeed_sdc_remove(struct platform_device *pdev) { struct aspeed_sdc *sdc = dev_get_drvdata(&pdev->dev); clk_disable_unprepare(sdc->clk); - - return 0; } static const struct of_device_id aspeed_sdc_of_match[] = { @@ -600,7 +595,7 @@ static struct platform_driver aspeed_sdc_driver = { .of_match_table = aspeed_sdc_of_match, }, .probe = aspeed_sdc_probe, - .remove = aspeed_sdc_remove, + .remove_new = aspeed_sdc_remove, }; #if defined(CONFIG_MMC_SDHCI_OF_ASPEED_TEST)