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/J7mq3CmD59Yl0ri0nrwniQTajKcdJb8Lu0W4uBRiBrTrM6T5LMBkDw2oVBSNPLwJ8f3eT20q0tmwRRnBy1tRFifsPCOHxlLSxE0lAUX8Ci9lDXPg/s/8xnb5bhq9vnwE0KRUzZBZcn9JH1ClH0gGkTDoCsrHN0NXxk6bGO4S7lo2OtPe1vkPXLcsVtmAyKoTEZKy9k5uS2N1x/tDVZ0RSWIcnwkPkP5cz3K6Xj5nDvBBqN+HHF5syk1BnMPIdG5IzmSf9tTa1WnXM3bKTOswLuoO8UmPZqDIwCaTSFmyhqHSfQa/T5pR1QHmJRyydE3CiRO01ZZIwPLTnNkKAFY7cRO/OfmL5Um6mH6qWBbl7/3p0ST4GhGxJHgIh4GBuAEtdn/RZ/HlmFudc8MUAinoTvIPl7ZnwqS/k+ZzzjyfK8ZJisnQc7ir4rlndcqZ4HeNeWz+wzLDOCIGB7d5o4zuPLjemTHef7OAzaEiYz7zbkMEI9LNd/TMtda40htLAKDO0GufQ6DUNd+k8hc/p7iSrpF+PysbBIBNiHzMsPY6fVHA81pbiW2FC6AjzIfteflwWB9lR84croOYSBMRfY5yoLf1eCfYYCxOxhjx+r5Rbekt91EE335wx7Vn1WL++k9ggRzM/k2/YMgSPv6HsN6JEnnf78MjHicjisjHJFfhlVxEeiS0KNHomCZKG3fy2HPPBONnlyjkV1BCBEovzSs3rJQWjModXzW8Jmt+CazjTcLafoMCP1ErnbWAP9OTZ5w87Gvrf3OjD1aRAoZfoMl65VeOk1VaT1xFZd9mvVq/H/Uuk4B07wDVTXZbvL3wDKqqKdMIX4rrZtYnUAjIiZ+G8B9r1CrpaJuGSYnQw3aFHkRvW8oKfGj5qjQ+dHh9zVxj/48ebhr8BpNKU3rhOP95hQxWmEd8qBKc1bSYLIgcUXXIpFcExj749teiYDD3aJiC0Wf2u6eIOW1rMs6Lmd5GhNghqjE/8ljcE4Zr2JkDGdS91IbnOrHKbMUJ1l6qNQaMwyWAGw6+1iczGlhyHbXio/P+MT4pucoOyuNrADbVL1ZBK17kGAsjm6774uD/jmn6/RagVsxO8/nVAt X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-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; From patchwork Tue Jul 4 13:19:37 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: 115786 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1229335vqx; Tue, 4 Jul 2023 06:39:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlFHeN247hKdyrNsoczBoh+xv3qSYoGI2p2lC7WQRcTvRKvnzXB0aedgKH7gXwmcXNf+2oEb X-Received: by 2002:a05:6a00:23d4:b0:668:7494:384a with SMTP id g20-20020a056a0023d400b006687494384amr18707325pfc.12.1688477947947; Tue, 04 Jul 2023 06:39:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688477947; cv=pass; d=google.com; s=arc-20160816; b=flyXkAZYgwZUeTfpURY33G6O0oxNrytjGajBPH/L8YP6oCknvpTYTND1vUc3nclvqd WJITagqoAYx3wZoN+zmH+Tb2p1jo4HcHxiXcL1su/ptUF6eeWRU7QGYQrZKB/GLKgTOw HNxhh9fTHVtO71/RS8ch0ojFWm94bA6edBjK65f3OvXTMsgva52G++szP4v3ECdq6bTf 9SXT/5ccFaM3JJ/yh4pqN+copLq60n1fzWIuiffhzPR1fxC0sFXNylzZF8V1f8WfMMx3 IfDoYN8ng8p7odspAWWRTtTqXNGI50JogCB7mMMBCFqxysnOIRd3yDgfaGDItjTutF95 oigQ== 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=6BLyFlcu+9o8COCZQ1tv5oRD+VsOX+UdYmPcWTunpMo=; fh=76qAH0Vfz7eME4nZA+TW8iUmULHJ97R4o7wesGShICQ=; b=xlLHQ4aH1pk10lA2vGhdV8kJSJXeGNPW4UcQuW9YAZx7U9AdnqbB8vvsb8vs2HxW+3 ZRrDE1QTznsoQRcZCPat0fXF8vzAi6GLHL6m94KBEOnicXVUI66dRZFzpL+2zkpuQRmd S2E2yzpXnj1gh01HiRkoCjoMohcVfeBHuy1zHkkvr3NhYIjcdqTZvUmr0n6vJP3FzQG6 cyjI+vvLQXBlYnLgIChni+XOWWUAjIKV8H3sH2kc2DLxHVB772EL7CXRPhC5p0Z0NtBy FCYDBGVW+SwAhbEV4G4k92T1UK+sPRnmN1oH0XAiaupOlO2NOvtyPRVxbvF0axdO00ib Arkg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=F8R6qyX8; 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 r7-20020aa79887000000b0068259969675si9686691pfl.297.2023.07.04.06.38.53; Tue, 04 Jul 2023 06:39:07 -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=F8R6qyX8; 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 S231408AbjGDNUx (ORCPT + 99 others); Tue, 4 Jul 2023 09:20:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231443AbjGDNUV (ORCPT ); Tue, 4 Jul 2023 09:20:21 -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 5B34310F5; Tue, 4 Jul 2023 06:20:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A4686rG0kmNEiUv6oM/kcbqnacLPgJ49jUnWhxtMX3xQ40TtVHrysSHQzaaffbWaKZhmUR9qjAkDGFHKosPMb2J8IlL+XWfaYzwjLIm18mZGcxd/EftpzKRGgNKp2SULbCyl74K/ABpkckFrEYiAgnSUe3dbWu8dNA77I432EcYsOQXZZXFAFH3BgF/eR8+BTkT6NzWcqVFvzXFP6zX3ZjI9oadKExFtHUOH8mej5satMGkBQapPevVZKLE6pXA3VDeaBrHu7y2TKDUdRRqEK7jTvpHS3UXkWPBFSb3O88NbqRjDq3paZUj3w9O74NNegT6mbc/ublIhzpxaZlZ34g== 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=6BLyFlcu+9o8COCZQ1tv5oRD+VsOX+UdYmPcWTunpMo=; b=Tn2SQsAOAkLZF6y/AklYhs7vYSLa2PVyvbiqpDsfeYMuviqD6uUA2FF8zAUCajFF8pY4sJx8sjBVXT7G9v8sR7SOMo8VzyvhPTimfSoss+izDnRs93wKovEVbWARny0GY+ckSwUycPNCbl3xewgQdaryFJyaElCtWuR91euFHVk3HSW5ABuU/ciHW1g16NRBc7I3LtV1RgnJwA/bmj9DMKL894qfmo+oKBoHLBQwOoB4UUixMDv6N30AactmsNQZLywh9KmsOFdnwHx5vVAk14GoQ5UL8+kbypAfvdaqqtFbl6TWYC2ssQKnr+yfI72CATRGYKN+PLNa6LnWsB3vjw== 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=6BLyFlcu+9o8COCZQ1tv5oRD+VsOX+UdYmPcWTunpMo=; b=F8R6qyX8F/n2DuesV+1Slamqpadu9/vhw4iM2SM7qSCwDiTUzSK8d1dF2idPvZrDpnq055ETJg+1x+T/wW2lG2xCwt0Lx9SThfZ0pyKC9ZKi6D4nYERnEvZ3+W9GIkLbRJCxI8WWfJKouCeUYMvnoQhE8ik3DS9ULzkG3ZJ/KVav+iifqE7S+MyzqTgIz6QT6+Bf9FXOngDdhp0C6TB7NhKQFKGZxehwx7GM1xtZ1PH5ynO71Hh5PEAXoVtL7o0r4JTmdw2cti/uuBb4LBVt/3JX5keXqPJwBM9B8GPsp/HV4CccgMxQ4++MuZ88HzDJ8PC/Ihwv3PGXEibWEzzbsg== 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:49 +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:49 +0000 From: Yangtao Li To: Ulf Hansson Cc: Yangtao Li , linux-mmc@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] mmc: omap_hsmmc: Use devm_platform_get_and_ioremap_resource() Date: Tue, 4 Jul 2023 21:19:37 +0800 Message-Id: <20230704131939.22562-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704131939.22562-1-frank.li@vivo.com> References: <20230704131939.22562-1-frank.li@vivo.com> 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: e1152ddc-3963-4f38-6ab9-08db7c9157e2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: J0IfAwsRRaV1txh4en0Ac3V/lW5XXPPBzrnPPAfMjn+cVME3m+tqgyP9lr2nUVa/ygDTNeyttLV0fh2Z2KSJ8osenMeOvfgCXg9nxCAp+7W5+jz6OeANHJbaUzMDH4jnlTC8aigaRlFwPz7qoTz6255GSuGkRuLZpoqyZ/ZFY+P1j+ZjO9fxya/u6eheHOXtPzxQCTZvZERTor7luAKt/mK/ZZv3h2eUEpry45kTwUN3fI2OFrWKEQaCHr7VeUGTe4r8qKIGoiEX++1ngUSg682cKOw/anT1BCVzA+e3HRAPD1tRThk+EmBcy/b2nsBvsHtUio44wXaT0YLSIts6pm0IEnntonpBwNiUw3FL9DiATZRiaAUG9HNJQQrSaol6NDq0/7PsFixBsDlwV9Z5vP2ApmHY9lKTKuDva4kg8t7RVLxSkiz762i7sG99287M1uiODFLq9kVjRuEbu7hKNknb1f38nm4bkiE/3XSPG9U2zc1VRoMHSvItpIaGj4LjypReCwWQvgvEymWIDPaEsYxm0wRAmOX2cQwuwPHDBdGh4SIUnYpYnM7ZsSwbMGVxQgRx0hnTahdDPPT7ZnfN3BwT7aDaWSSBqO6KWPT59JCcY+vOOt1UUbGWThnsGXLA 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)(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: Npw/c2F2Nkonpu0GdrXH0+wwAa9rIrbPBPrINVrcw9mrFV7y8+8ONkbMsh2uLS7bk66d4m3B144YMOgBWY9bLEkPV4Ds718PmvAET/CanVkSeA5SNlEF/d/1K4FPP3MZPQK5aRAfIW/hVK/NWTktB0jksrfDZBfaSloga5p0qbiwNgm0CA7ug3baVxIaPWbFozG9Z8m6OxWtNZwz+7YML2ohD0w7ihQhKiv5o4D2NJAtsgw4/hPWjE+Eou/nZchGIAIa453NT/IzAcOWA6zOI5y3vFWWx7VwQXpyEj+TG9Fx7j04sYeF6vjXgTfpz4ggIzatW+b9KW8zMmaJfAaVMijbzaD1VvLObRw7ZZimNY+EyZYNsqHQZPTy1EuIvo/fVBDLgdwcGBZitwFSxzBIkD6sbkvJ6kkxVdXl0hfMlB27c2Un62xpwsVfWXQvjMSytEikKlE+7+FQUXO6fr0unf6NMYDDwbeviALomqxEoElIlSlec4WcWPwsdY3sdvfDg2oVF1Y6ATLcTs5skpZ/1/CL8wNDjKYz5uGxdJu1oMd7YcteKLIhyE2+PBmGEz86djMEoldXjuGApe/eVx4od19ciAPdS6me/nzMrVWQ1979akGDF7vMu7/SjRqAvS49KvpqtLUzcW9d0ego3rfqJq35uQlqpZQ6OGUA95JccPoIzoFs8mInVZqBW3fmJWgVW/7mqdyJixVfoWzqe9jaGmzUoEEr+0PU1jwRcJdsyil7d5UFoW714DrX9A/n12r7FYsHWib7jqliDOdLZLGnXdS3KcB/xh9CvfyzJ4bcS3TXWIDWLjaOlOdeqXg7dIzEzk2HB8OUyE9kfzmO38qpAr5E3M2M3ieDwOw2aglBk7FB7hdhCnff2oTjFx+HdsDszysdG0u7x0jUJc41gSEtJeZY7lFL9tNnQyr3VlA1XiqcuqrfnVs1QI27B+gcx4Miwsk0OL7TD5+wzVrEq6meQ+Syx0870MbaQ29MHEN/m+Evk/iCAobVzdGKvRDPBBIPG7bAqKxpFUHnV0ujITOxiJwzua9oBY+g/ThhtDOQLX+EFP7NyrkRf+F0roXmxBKRo2rl337Q33XMzSiKbRHwVoBkCMSmhYyHLHckoHCW55vOMg+HaeTeZt1hg0yDMWWC8bw/ZToWYQD2admhLuG792FEaPKgImk7IGrQiJJGf8ED4R9FXidM09jKiklYzizsDhmmC0vNuWxQA7Qd/I0kvINSYQTX+sAwHK2DfBpzPLfZHXL9+cY+wRBfyZ9ppxpmaw98UPFBjrpc1aq+MR59hHmS+8DsODmM3oN54+Y0mRhIYfqEgYfDSuRLMBzbBdZ9xB2A+x5ttkqZRmZ7uzeRyKLllWyX4SUQnuWTvKW2ALbO1vGy53zBZXG0FvSXRMKkB3kMy5LdnkykrfxFN0QFoECgqpdKluxczFlLsY7JnJf0n/RkFsRAkFcDnU3RbWm+EBGwD43tTX3EwdSc3xSP8kbUb9ti5JtU8XC8u74yHfBJkmy9EnLrkLARyrPsbKZVVhVlnKEwhoDV91Vz5tnZkX4XXsulFnbuwvczSEwViI7ZUkK0I4sQD4BvzJEvB5ep X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: e1152ddc-3963-4f38-6ab9-08db7c9157e2 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:49.1886 (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: ZzRYVE8zSLBnGxO8pxyZcb+wYUUOh9CFBdQcjwLZP+BmF0O6OwAEu7egfCypcn6ckjMspEYT91c+8AJGjgJ7yQ== 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?1770497452759892114?= X-GMAIL-MSGID: =?utf-8?q?1770497452759892114?= 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/omap_hsmmc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 1e0f2d7774bd..93de00a06aba 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -1790,14 +1790,11 @@ static int omap_hsmmc_probe(struct platform_device *pdev) return -ENXIO; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) - return -ENXIO; irq = platform_get_irq(pdev, 0); if (irq < 0) return irq; - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(base)) return PTR_ERR(base); From patchwork Tue Jul 4 13:19:38 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: 115783 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1228971vqx; Tue, 4 Jul 2023 06:38:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlFMJmRyT32qXUpVDSyw4Dh5TdF87IVq+21Wvo9+upLG9m+6VzSjpnO5Pq6LqoW78UXt5qfK X-Received: by 2002:a05:6870:c094:b0:1b3:bc1d:d50e with SMTP id c20-20020a056870c09400b001b3bc1dd50emr4717378oad.37.1688477910818; Tue, 04 Jul 2023 06:38:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688477910; cv=pass; d=google.com; s=arc-20160816; b=0ligFS5NpTtT7sJHstmVzYxvqMimjSWb0u5YXKy/1Ej4KFg47g2vThIH1UrW5GP1rD MmPT/c5ZaAlUxyKWv2U7BLwwTV7UDHf/xpdHoVf8cvZ29Vz+SMZzDNGDkAaa0QKwWlsj ikKv22rXTcXYBCOpp+SZjOQfkeLQ1T0s/6CKxio8tY82JIb7cb06G2v2BOxMMbsyx7lF Yf/Im8DCXKroLPjkfDCYoVjeAuaf+AtnTyOXgaxAjYexZ8MyKdup4z9HoyCtVN8SZiro CFawp1fWIK9o+cP0X4FfPzqjtQ32qdNlZcV2yuMdjRfLI4R5caOMMoXCoIN9YScUJBxg NUFw== 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=/g1XTdEPp8mJ3bo4su4CztmxAG7yPIlNxcVzXixs/70=; fh=EB9pWq9P2/hLG8WhaXXc7M8ifP1T2m/60OVe3FcoU7Y=; b=kTkFfNQnOsrRFUgeLv9ETiqJfTyNT9/D6OY6OL11hDwfAhwhC0L/hcVHl94b6p9ib5 V0TAfqyYCreAxulpYLQQ6t8ElkBBBaHa0gHDPM9MmcQMtMHKssTVsIDYgaNT2+eMNVfr yZXKtVnkzO4UWNm7Ks6gIZfVaV/KVIz5b/iHzjwInfRL6guKuhCHOdiMYs8vPHCzWCuE si3vynBQDyawbfZkJdp3OGk/4XzYCAD9PQCI6qoepCjCQrhmQL9e0V6jLwjOYKf2N5XP vOW821uxtuZ1vnG/gLPXrogD07+oPBsQ1XCLOs3KdrbO9Sgfx4eo3lF3VT+nVxNzih2G jIhA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="gpSNA/hr"; 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 t21-20020a17090aba9500b00263dfe9b96fsi2202696pjr.177.2023.07.04.06.38.15; Tue, 04 Jul 2023 06:38:30 -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="gpSNA/hr"; 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 S231439AbjGDNUz (ORCPT + 99 others); Tue, 4 Jul 2023 09:20:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231538AbjGDNU1 (ORCPT ); Tue, 4 Jul 2023 09:20:27 -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 597AB1709; Tue, 4 Jul 2023 06:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h+LhukpZxmCDWvZPO7pU0Vgq3AB3juJSbml+mEhIbbjmKfwUKBwOImmDJ0SllFhEKOBrGaQ5WWGJ8fu//8D/ZZYYgJ0dcah9PTHjuaCjHOLMNxjXbFLE49aXtK9ULYZGahqaKkdtpQ6UANM1PFNLi45+do3kttLtlsB1QCTFYCdUzyerms9h+H7x1WHjA4BCgonULAYVE7VgecbXY8XmMn7sAvSaMT/n3eqZJS9XQI+DP8iOK/fMZUDz2Goz6NFV2xce+IA2q6TzTD+K/ueMFLcrJZd02hOKqtGj7m8AqZjdhJQnK00b2kIBQpmPHE/9UzNKKyxyJZDxdpYYzV12AQ== 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=/g1XTdEPp8mJ3bo4su4CztmxAG7yPIlNxcVzXixs/70=; b=byKiCty5EDvtBbBA+zfHWQqVJaJJr03OaTderNbFTDO/Bv3iO+7y34jx0zPInnhnNezc7guqpqyQA8tHAmovKeGnmP8uZ6BhIQTwKErLtlA9aBHPhceP71lxlcqI1l9Cb4OZxZvZpzuJjniFm2Rs6Uepezn0F6/Qq8ODSFO9sHantGVHv9PLfTwvZzwXhIJyOaNGpNBORKJLqL9dyr3zOeQjw+3ukFDtl2A/nBr0KE6jmQOBwk4wXsfqt+ev9mDTvfvhHne7Va2yz7nMLMRT2U/w+fvyQydfopHxgWdP6ZWAngIcybdNl6jp7/C/uLgqWH0xWcsGHN4ubdkmLp02Aw== 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=/g1XTdEPp8mJ3bo4su4CztmxAG7yPIlNxcVzXixs/70=; b=gpSNA/hrW3W/KalRtl//hNL6fPj4EseW2r87hD1fwrr169MRppob9vkcSXkNiFeuUDrdIsBylnfiJ+Bdqs8j58oGdYxRvGvVk6ReHE7pWTQI1v4fAYKH30cgFaK8Tix15GHFGGPUbM7xfa12SIxP9/XMHY+hC3o2STcskL/f5RNC3hWpYvymHbzf6/uFH9gfqeSoHn7u6VP3EPxdacTSVf0pGwlmo4f1B6PuAWirmU+JWIDY9oJOLhNJer2ZJnU/fsc2/e93t1rkLh4CQQNzq2cKYe0Z3zSoJFhBG1KA84Q5GoU7aSOz7KqB9ci1Oocg3+6X8kwI0CjLmnPwmU20pA== 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:51 +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:50 +0000 From: Yangtao Li To: Ulf Hansson Cc: Yangtao Li , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] mmc: pxamci: Use devm_platform_get_and_ioremap_resource() Date: Tue, 4 Jul 2023 21:19:38 +0800 Message-Id: <20230704131939.22562-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704131939.22562-1-frank.li@vivo.com> References: <20230704131939.22562-1-frank.li@vivo.com> 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: 5179c578-b05e-4f11-dc36-08db7c9158e3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cNzQ1HiPS+G44fokEb0eJ88UcGo4wk7LSMyiouzg3w89qy0ysXoi4Lfy8VpgqbG/j/yqZ9L1M9/anuqEk83QdO4yPGmfIZN/Wf1SDXFnDtaUrOzIpslaH3wh067ow2SRp+sRvgT0ns/K//cph6qWAOcvCijzDXjtdO2aOBFXrILprJi4sAZ2D8fUa03zMx/ZeeCOrYfywhWuDE9Nt8+3+Fg3D0z+xsUGBPUeRyUboKymvczRQlo+uAlwFN+6SmRC6JgOvzAKiemgJQByzktP8gsdLr28r/0jdM6BPQeiY43c4PHd2WmsrjNpL8J4wW3GVSEqZlLHLbuoVW572GKIGapm57HcjQK1BIuXEVu7nhRwU3LfhFcCXfHuQPj78LurQ52dIMpbaQjmqrmtDQEyJSYRjcJ5ZpkIrghT3WwUhFUsaTvidzyEdIc/LFOUYxydFl49le4OGN37jOm8KBqwHDfG1lXcJbl6W3tkoloDlxU9ImvpRCSSK9fDcKMpCCL4brfBIcskBbKZvwRxQsfSrutLxPeqtJ0e9QtaDMM1bMF5b4FxiMcMeiUgjmxOd3/XU1gve3ivaXY/rinvWqrBFHFbVys6zMO/Y0v18nOx90j1RbJ4/Eev4qaXdpM09TCQ 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)(478600001)(26005)(41300700001)(6666004)(6486002)(86362001)(36756003)(52116002)(8936002)(8676002)(5660300002)(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: aD9MouYGws4I/NU++iPbmUSqEMiO/Bu6shfvNYEblslMgMFWUX6HU8Qcqen3E1lno8HNzdYCVaUWoo29SEGgHImR2nYEpnvxpcXHho/mVyouqgM1mavBYFg0eEvyH/q4filv/PwLQXfBIW6BBuIFstv4TcJsFmLtqULL97vS3GyyZBqyL3rnbaOpA2u9iDGobO0K3W1zp9z6aihguwtkAGqQSmpUUi2kwZuqfAx33OiQ86/eDb2PORyRnQcWQJ1Fkl6tVZYPSDln+FVVosxIrd8pakZXTVtddMc64W35pH8+cnpufP+cCVSZ9EW+g+gmwZJgOMLN42sd/ZlmQmsDTGGoR36mlTGTYoPv47hGmpeTxoNnYtrpTIWb+aU2QP4V7VPabQZcvF7s9aK4Xvey9/UobKOYCEakQRIlFvHO6r31nkuiQKIhv60Q5+60wP4gNzaEbpGbeX4IGJw78qxjKF3cbSPWnr5PtywUhSXmBwhrLM7Fw8MEXPB8Be2Q2RD6enS2jSKG4X4wgWUxQYsy/e5H34zTuca0v8ifW6EcnT1DXOSVqryYQxlTAwkh2Kh0awB4vgt1xPLNJoyR7D/sN1k58wGQUwVQcRckRRxF4ECwIez6ZMDya3RKvZ/C9vIcOgB1JUw1HkzH04eN9nybERGrsjYVmJX8pos2n6sHKhDvJRqG6/AkgEB8o96Nzo855PxEge5V08k9qhwGSfWlkjXk3ZcRl9WYtTNEhOetgjFX7Y7lt96q84DBXNuOTR7vulltjvsJDlqnNL1GmUi6QzdjxG62w7rzbPHxUsc4AkVyl0NAB/jDErLryHZHCvWbHQ8xGKHfZH+zUxKtF6IQf5QA2LPZwla5d7sZ0RL8UCZl5mDorF/rexFf+3Zg/LDc8QgVFVfar+zJQjtLm3mPIM9T7ffQdKIz3YEybIVYyDF8OxKVzhHrzBHvRQziMnRkA3ZbyMf9HN9o7VEcpli3NiQw2JW7JWQkiNP21/DivALYfzoDHC7iYiWF9vcKt5eXjK4B35J05ZPbnOcEGOMWbH6bI1Sw4KIhx05SzIDi0zu4EfJNaTxAZWsm3UHnkHfg7Qg0Vy+SvbJwXlTW7mUJO9f5/u6naZcRiwocPW12gCo+H/ucUlHe7I4ArofXeDTXO/a3RLsEhANtyEXT5CKmHE3MaaWpnnBYFdlr6/74ob/JNCTZ1Lf5ka90VZLn8GMng6CSLdtJ2ioqJ2bDhm3r8mfseNow8XiuSp22EwYS56c5JR+q/1s7Bchw4MQOjCIAwOPNPhqDYrkEBvvkRXvdTNzk4jqluWi6mgOi6ZjoLY37yCKgu+e8R0+guAcLcOpkdhGljBtGNCLBaGGliFPO6XaATRaqpSFhiDL0kdDNtfqvDL5g6W3GBTUshjpPuCMvW1eRzTKDuLM8aM0f05ZAR++9FLx2wh5hi3+m6o/dxhP/widoBULV5Ptu9o9mojVIPTBaC4boGg6r0x0m6ODfymORZrJzK4zvCDwi6TmEoIpacVXoQhGoPX64taloF1VvJ/nt0gLwGSGz/FPvv8LkAthyZpUnaG9sIbWmY/IvJVBQwEPhFFuQFhnNkHQrmgDM X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5179c578-b05e-4f11-dc36-08db7c9158e3 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:50.8510 (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: X+QNLUe+0NR3V+cwoZ5eHx83y1vVqfFnMebHJPF++iSd+jvhd3Gqj/wKOC4KGcsFZwK6H4F77jg7Srx8y6X0Pg== 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?1770497413760557575?= X-GMAIL-MSGID: =?utf-8?q?1770497413760557575?= 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/pxamci.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c index 2a988f942b6c..1142cd2368f6 100644 --- a/drivers/mmc/host/pxamci.c +++ b/drivers/mmc/host/pxamci.c @@ -612,7 +612,6 @@ static int pxamci_probe(struct platform_device *pdev) struct resource *r; int ret, irq; - r = platform_get_resource(pdev, IORESOURCE_MEM, 0); irq = platform_get_irq(pdev, 0); if (irq < 0) return irq; @@ -685,14 +684,14 @@ static int pxamci_probe(struct platform_device *pdev) } spin_lock_init(&host->lock); - host->res = r; host->imask = MMC_I_MASK_ALL; - host->base = devm_ioremap_resource(dev, r); + host->base = devm_platform_get_and_ioremap_resource(pdev, 0, &r); if (IS_ERR(host->base)) { ret = PTR_ERR(host->base); goto out; } + host->res = r; /* * Ensure that the host controller is shut down, and setup