From patchwork Tue Jul 4 13:19:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 115780 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1225089vqx; Tue, 4 Jul 2023 06:32:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7lkltp8tkoU1nTv4a2m9F/7BeFkqz4GQXloGgEha6gFvT5n/0DNYU5tNpovsNzIEkgvUuN X-Received: by 2002:a05:6a20:144e:b0:126:dd24:ca40 with SMTP id a14-20020a056a20144e00b00126dd24ca40mr19046724pzi.9.1688477543306; Tue, 04 Jul 2023 06:32:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688477543; cv=pass; d=google.com; s=arc-20160816; b=sTOrss5QAFY12GTUDXKs8QlE34lOB6cvvmofvyDTQB3luf+EI4IUGFiknWpH3AQXBY YQkguYHgRdpUwI5OZUKzFahqLisdJY/e14O7nbeyTFCQRxGTYWGtAWAvNhKVczEkP1Aa N7cZobBH1y6ytRx3055w6djV9eMuG+og/p2+txzgiuTcyiKRIHFTYqNOHp9AOagYYRse fFjgORQ0BHuzXhZXfPa+zffHWFZNqM4M7i/a8ENKYtCiY/zuxpRROpLfamwSYlaOisVm mILccJs8Je2lL8ahaxE6ClZs7A7YuCmUflnQDIgy0cxXXYfAeV9Z248xJBy6cp7NfZnd uKoQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=bUJYWgy5/3vkJfn151l3IAIPQvU5LqBW4ITzlcsIqr4=; fh=EB9pWq9P2/hLG8WhaXXc7M8ifP1T2m/60OVe3FcoU7Y=; b=tnyePK3/6cffHbs4/70diI5vEksUAXHNIBlPsXIUolZRZUi2QkNoYUyn81V27kcziH OTEnhSgDey+YvWq2jF4II1oZcOXr4ISVpezAMM/aC/dT7OR7CEepzQFAwhEXhHXZnWKD /AUO6T1K0lj2CmIrtdyFyA9H8sHmZFLjmd4Rjaa+8Vs5rXlCowhTRHwYs30fuszyjJzM jppjFoHakxCv4liGVzfF3zun1zKjBT+ZKKswgLHA7LI6uEI0IduG4vUXQkf1BWsmEGom XXbKDVbh9XnvnmdK4gVnjq0tXw7tHT8pUVSYA5EZpj0oJmWWypzYxmdTJAHaot9AO0rE w7vQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=EUL8VFLG; 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 79-20020a630252000000b0055baeced15esi4365995pgc.549.2023.07.04.06.32.09; Tue, 04 Jul 2023 06:32:23 -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=EUL8VFLG; 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 S231328AbjGDNUT (ORCPT + 99 others); Tue, 4 Jul 2023 09:20:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231461AbjGDNUK (ORCPT ); Tue, 4 Jul 2023 09:20:10 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2114.outbound.protection.outlook.com [40.107.255.114]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7025173B; Tue, 4 Jul 2023 06:19:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ee+gx+Cn3AtGL3eOiEHByv7durINCfiZ8MJNdUzxE6WZzokzzpSrbzCyKJzDzKYZhiq6ti4i4oiRzgobOVMLUqKcUBbPMHywIVVr1uhPyF1NCZ1CAmnenRG3cYV6G6hLKpl+Q9bHGuvJ18J7gFN4kcarXZpbgDPSFpxLQwkns4+vua0NuBnyTfVxt/3p+tUYiyFhmrTevNMoE6oPzhelzSRmxJb39/e6Hee1W5us3kPToLvAg5982Krlho2wLlcNW/oM/EJ6/tSPCe34QxeGkGLMhjeiEBv3sXjhJDfup8lHLToC9ZrgAZaTTNba2znG2D6xCsenQwlnUiS0VIUriQ== 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=bUJYWgy5/3vkJfn151l3IAIPQvU5LqBW4ITzlcsIqr4=; b=OaJhhZ9vzg0Qvv6hI32/y/xZqSXU4QFY5oZRlA/fI4uXI0uBZmWNB5Jas7ZpcXWRLYcxbMVzAT/t8pk0VFDF3z9UEXa7O89XHsB+yPhBcLiDpOmDg9ffHpUCaVeGYrKJPMlS8jrU0eIDr0KQHZKfTciGvG5mJeU1sOerxzmPin9Shq/WdW4WLbzM0+MczIQ3dxHlEHnCoQhVvAM8a68wPKPADaeUa+IVkc9MwQH+6xcx08FE7LNoltKEt667Lby1d1USjR4mA8YqxJrBU35AVF9gVwVBtXKK9nv4lRRDU+ruihiiDrYiB/6vtI0nN72LrGgta/xUIN85FCX9st5hvA== 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=bUJYWgy5/3vkJfn151l3IAIPQvU5LqBW4ITzlcsIqr4=; b=EUL8VFLGxP1NH58ixvBaErrfQZqg8VaRo2qYLEH++L7ODxEdrLONMhZglcn5pBZh30flwuVyKfz9Yk3njAmAgzlgN+IcvObK3Wg+GOZo8GmpKExJM8uSNHfqK/Y8otK/YuMdbPnFYPYUAYZMoN6zizpruIqvnGQQ6S/fhKp0KlIdfaVb5v6/LmK3QFlweapI+l/iKRRFkzzSiFlnkvb/1ve7CT74tJeTDvcGMNU53bFjXOnRgfFQQ2eFEkBBXZrkV6wv7nYojlacMfA2N5lwxx8QLCy+XglapVhj7LJqV1KbhMq25WYbzZ5ZkF5MA9aROCIGzLDEQP9fkvYrZWHYsA== 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 TYZPR06MB5027.apcprd06.prod.outlook.com (2603:1096:400:1c9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 13:19:48 +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.6544.024; Tue, 4 Jul 2023 13:19:48 +0000 From: Yangtao Li To: Ulf Hansson Cc: Yangtao Li , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] mmc: mxcmmc: Use devm_platform_get_and_ioremap_resource() Date: Tue, 4 Jul 2023 21:19:36 +0800 Message-Id: <20230704131939.22562-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SI1PR02CA0035.apcprd02.prod.outlook.com (2603:1096:4:1f6::8) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYZPR06MB5027:EE_ X-MS-Office365-Filtering-Correlation-Id: ac2f6f6a-f9d9-483c-0df6-08db7c9156d5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QZsHlVv7PWrlwbVoIXeXIOGhni/3QUPuDxNlrVV0BYngTkvrtmJ0PsaAL4O2B/NedZRUhcPZO6S8RPpdH5ryy1eji6bhnJ8HXDFVmTzImBWz+ekBHn4kfbWx/vd1PN64N/R/CRl7Q7WGlFntwMjbqN+RSBRgHUi+N6gNe4m5SAjjnNBDAo1nQNsACYjiSmWVp4P4X8RplsYCm80LAPS4YtFP5OUO3kQlnfFrmdkUnZ6IvVeO4AFVsQtRART4qB8Z+Wkqk8hVdESAOmzWS3LCxbtRBZMuVR9gn4IkaF703IFyutxy2YL7g2UB1IqREHiRWBdtAkPFvTGKBczpjfcnkRulWv5YJhqsqKoeqNqNeqC4U87ZkBb5VmqchCXDaN+AdRqed/o+bmQrXRi+0CFFnxaRSWa6RC07PkKFuqcrgp9HOSlw6AS/ne3my0D4fKir9aNqapylk5KGX/mjcrUAbeKd0joB582mgjEA1ud5dD/ViLkAXW0IU0qT+yXze6t+7LL8CmJT6UNZ3YAX4utGCewN7uH3RGtFFm3eKt18oSF16oaNQBV88D0Lt6IU7nY4FID8tNrw0qrtJCrG4PqZXR/6K7pCb7UVG3pMQ2cg/Yo= 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)(366004)(396003)(346002)(136003)(39850400004)(451199021)(2906002)(4744005)(478600001)(26005)(41300700001)(6666004)(6486002)(86362001)(36756003)(52116002)(8936002)(8676002)(5660300002)(84970400001)(316002)(6512007)(66556008)(66476007)(66946007)(4326008)(38100700002)(6916009)(38350700002)(6506007)(1076003)(2616005)(186003)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: g33LNJnAAMzs0HSvokUZFXWk0lxifUG3E+IGE0mq3yjoFboFkMBJzbqE6dNBkobritgi8XtLuXkycZSfLoAqDjgvU+8B5KcNIjjvVNkTDvxSvY/h13Y1RKEx2FOvMRubp1Pzyxt8c45iuuHOJKlvr7efrxnvivQl71E2QQs8TIJW+Bo9YNY4OWtuPjUHGNGWYrTvz03tGvLdsXUf6p7F7xjboT4kSz/GXgNiq1ReffL1aiEQa168XdIPpB7T1vTTf7EaSiUkxuagirzcfLdFoufZALheUsJsEsQGGpVZJHq+Tn/TsIiRz4GgPTvYfdI+VfaNjU0zk48r7wUn02IPxoq3e9AZHY4EBgj0H4Q0yUhh6j5o+xtyCILVdqxXmh5uMzxTuRcAvxSx2HrFL+JgeeDXkfO7LNpzWOhCBmH3LTYs7xwUhakHJqOC6//TjEOLV/o/JRyNObf+b3MQO6ptPQog7qhbDMxwGhuQd7t30za8sYSQJ/J7mq3CmD59Yl0ri0nrwniQTajKcdJb8Lu0W4uBRiBrTrM6T5LMBkDw2oVBSNPLwJ8f3eT20q0tmwRRn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network-Message-Id: ac2f6f6a-f9d9-483c-0df6-08db7c9156d5 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 13:19:47.4705 (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: K2ixEu/N/C4kVewhFb8fMkOzSSziyJhIHTwVp8YzanvYZqZW9iSf1bkD+y3VUvl31Hr9rum5YvUVL2PRD+TfsA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB5027 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770497028390997532?= X-GMAIL-MSGID: =?utf-8?q?1770497028390997532?= Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li --- drivers/mmc/host/mxcmmc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/host/mxcmmc.c b/drivers/mmc/host/mxcmmc.c index 668f865f3efb..f3a72569dd1a 100644 --- a/drivers/mmc/host/mxcmmc.c +++ b/drivers/mmc/host/mxcmmc.c @@ -989,7 +989,6 @@ static int mxcmci_probe(struct platform_device *pdev) pr_info("i.MX/MPC512x SDHC driver\n"); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); irq = platform_get_irq(pdev, 0); if (irq < 0) return irq; @@ -1000,7 +999,7 @@ static int mxcmci_probe(struct platform_device *pdev) host = mmc_priv(mmc); - host->base = devm_ioremap_resource(&pdev->dev, res); + host->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(host->base)) { ret = PTR_ERR(host->base); goto out_free;