From patchwork Thu Jul 6 07:20: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: 116542 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2380056vqx; Thu, 6 Jul 2023 00:40:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlHXW9JfsAC0r0BwluAuoNp5Lk2BRyTg5xXzp9hRnHUOyVzHh0VoBgIVVgvQV51eGK2lHq8b X-Received: by 2002:a17:90b:3843:b0:263:f4cc:a988 with SMTP id nl3-20020a17090b384300b00263f4cca988mr673790pjb.5.1688629244485; Thu, 06 Jul 2023 00:40:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688629244; cv=pass; d=google.com; s=arc-20160816; b=ywkP+SvbkDrqKJGSQhqXe7IzuSx0GHAhBiZTRWoBO4nEKFXM8vaCDPqbfapl+5Nyk+ 2EAFb94w6kBW4VYCbc3G76vVGd37i4zv8JcQlOOt2aWnSfxmj0ncYyFg+wQ+WeQGW95g OSkOi0z1JE6Qa/lcXPmisM3ioYnWV5PeXEGvmcVLSjviyUa5Ik57ZnBBL0OLG2NCDG/L CpL7ttFm1B3hU1M1s/X7Q6pV/gWSyxoYYbMiQIk8RSl5BFH7ibwBTWlBKLRnIS4COQtA /a6aJ0/jn0jR1n/l54Mo0NaK3q2q+I3VJPw2YUyRTFe9hflrU2P6Ot6AScJYu1UPsyOO UP2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=dJBOK8xyw9ftYhILMulajm3dM/lm2fvC2zjlfOnZHMc=; fh=i9/EtZOWsfP/muMU4aZ9fBiGVc2Zw1l43tWvjp3Lolk=; b=d4jC0l2MOixU8FlT6xw4BW8m0Fr9J/3QIg+WfXXn4AEgRqbOMpQiKiGEMopojWC8ZA wwLfkS0gI91ikUC3bLuik8eSsde9EffETlS5d3xTKP8lUJcdm7mgfEQIdQdxAsUdCAM+ 414JqE/LcxoyintwGAsC2Qpm1btXg8zUhLeZ/Hn3uy6mF7HEdP/bBzVqHco4rPMzdR4N F+Rb2k6efsw6JGSI05NfNoemWTBBY3gGwSf4Dn1Q9ysoQT7zndb5K6KZCX6fE6MicMnU YSQfHd/NJAU41P8COylXwXZ4whiHr1plRyX4GIQRZNj+XPVvMA4vneQ96ynIBGa/d14T usRQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="Ij/Fm0z0"; 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 c17-20020a631c11000000b0054fdfd26dfesi945509pgc.308.2023.07.06.00.40.29; Thu, 06 Jul 2023 00:40:44 -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="Ij/Fm0z0"; 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 S233508AbjGFHVJ (ORCPT + 99 others); Thu, 6 Jul 2023 03:21:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233151AbjGFHVD (ORCPT ); Thu, 6 Jul 2023 03:21:03 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20701.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::701]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FC9ADA for ; Thu, 6 Jul 2023 00:21:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L5paLk+7V816k8XxgfmddTtaTnBMUD5vDwmmLUg765bvGUD0muj7SRjiyND96rbQjmO1dgL1bhb+mWClahuRyamJ1qpBV4n30n/s/TWEucl2Mc2TnTDjF5cE5hqdwzR7WPf9twnNB2U610R8kNO0VQTRZz9LkAVYC+kOWs9M5BENGbTGwyhCsYNGynQ9YIk8Fa3q7EY0X90q7/EO3W1yQk4sVzvvlrqIvN5CSXvkLBCE1R385sDAxQrJoQW1ldVVRK1KMrG8ciZaZL6sBQ5mecn7UsBG+Sxs9ujMB+LTAYJrNi9vXmfaMPGFG+aDUIHMu/wpE9nvfDbNfN1sfSEKWg== 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=dJBOK8xyw9ftYhILMulajm3dM/lm2fvC2zjlfOnZHMc=; b=CbovC/vqlorhjhWQ2Eg0c+rkBLzw6S17KY5QCrzjU35iTyFwj9JkuqTgqWjB1/X2Z5LBRscqo2aXfDPT6iR6xm29z3/Mj7R6UPVemqu/kQh/u60S6G60tCRKdInVzpUVlO6gtGv/EGmcNNZGE1BS/IjL7ZMmgFxMnlGNawvsOsz9DFomHNL0gAM56CL7fszVqQ/opuSFs0b96MF65/GrPvCSMmJnxunkjc5HYSYFfcWBi8EOOId5/P8KtihCMwfbHgGwt6BB9bF59BSLHTZGIAtdCei+9CSZ6mP+wnumjNgPcHOfr143K2fzD5dYpGj8KZED3F3qsBQhoGvPkjEpsA== 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=dJBOK8xyw9ftYhILMulajm3dM/lm2fvC2zjlfOnZHMc=; b=Ij/Fm0z0nRS6REwqVX7GtzRg+LjcMkHXHCxy08MdbNv6aRoUjgAV4RleZ8CwuZSS8XF2Lw9HJU50PgxXj/rvcWhbbPTcFQ/6gVm1B/AHrD0u2zKQ66u9QJvKjmYjJgbSgfry7DzYbAfufsuMuF1uaBpjIHGQGe0DnCmX8xEteY8WdjbWU2gBDztQRqsdxpW+yPWw5am14oCeEWaaRlbrlNiB/jL867sEQdevlcJtc0+JmD5W4nXV4uYwrhx/0LfyNjJR5zztCY3j7ks+Y2qopGehadyUtN2vTb3OzfHj91jSmzHXTOV+KfjIAd6qHL08jSZbDc8Co9ZcSooBR9++3w== 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 SEYPR06MB6081.apcprd06.prod.outlook.com (2603:1096:101:d6::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 07:20:55 +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.016; Thu, 6 Jul 2023 07:20:55 +0000 From: Yangtao Li Cc: Yangtao Li , linux-kernel@vger.kernel.org Subject: [PATCH 2/7] bus: da850-mstpri: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 15:20:37 +0800 Message-Id: <20230706072042.31296-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706072042.31296-1-frank.li@vivo.com> References: <20230706072042.31296-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR02CA0129.apcprd02.prod.outlook.com (2603:1096:4:188::19) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB6081:EE_ X-MS-Office365-Filtering-Correlation-Id: 029b3d14-de89-4e7c-fada-08db7df189cc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rtYAKxhPSioLExckjKLc7NylOmVc1C+UGpmLGvQwB6GQhZRHQTAH+XKTwOBG/JVDHwdovjPxcayEmYhtLSIKPNGugoptZxrHviIledePvoacs8Ol+Lq52G1CNpW9UcV3Y67wlOpu25dxM4ZdHTOAEpGNP8olVPP0+aaAFWYPYh0LwpVsrTLCtij6LeTaYqcOQaLjOxBZsUbet0anZYyGFcd9Gk4m1YJR2vQeMyoLxyAtNbYXWXsN/pbv1gVmGBfPSuW9IrJsuIf1ALOjawh1sgebvtB6hy4fxb43UMbLTBJySOPYkrzSB4vgiV6B6THTh7dJfpAgCfofV4l7g7itNMyJbpQRQH3HppfwFF3ZI+zy01rdb9pglTYyo+zc3ByIbNeyhy+FjBEBmFdhiFkIEc9rVBaKkprs+AvinHeVqrHLyc0/tCXFBxg++YZ0mpr4y8IvuMlOwt5dO+8pRBpNQd7JSnnd4ZXM8E1bK/Dd+qXsYFaYddbwNOBHQli5hqdJC5rfDmemQOOLzA91YxF28BvwQQOTzrmsr5WyCt0HZ6iAdnXvgV3Qv0GnzLrNvJxfw4ZD1+mEuj7U3OZGAVORIeagb7AROf01oiNpH1lutOy4++sIjRM/OUQRFfzHak9J30vVyijlNicV7fbuO3+NLw== 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)(376002)(366004)(39860400002)(346002)(136003)(109986019)(451199021)(38100700002)(478600001)(66476007)(66946007)(52116002)(6486002)(2616005)(6666004)(66556008)(41300700001)(8676002)(8936002)(38350700002)(316002)(4326008)(186003)(83380400001)(6512007)(6506007)(1076003)(26005)(4744005)(86362001)(5660300002)(2906002)(36756003)(266003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YajbHK16UyHPRjy65LJ/zej83N2vdHl3wOZXtNuyZ485Bq1+obLSBWMdlxcq4aXRkIFNPp3pmuN6Q/RVTOpoOXvScBuTGnGILWRLXU0EX42DGb24IMzAtS2b9SNaq2/pZs2Kz7Be3Zv68nRbonJqLNTSPXaW97MAoKoXKaYasrT/Yzyz1P6uCZwTzZsNZ2UN3v+fVE/dC8zgEQFm/BenuxCRWjoMPMBBTHmEAAxLztud7XBzH7ArbZwTFbYiVzr3acullaPRYBqIUIQ6FobVwyj+nS9Eel/4YZe+v643Qm1KcEJoeRSLqGGhBHAr0yDivVgz/UBihbfDj03tkW0YWLwMYBB18PIyOjkvn7mgiw15mPt0wHQxzwfB6FA1/c2ptaeWALBn5Pft78TZi439mDtxH1Asrp6Fj0DGTJ+kd5y4Ah/uUdo6TU8K6i/I9VQ0dBCx2Z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plZ19Iypt2L41B9vOt246vRjZ0BFZUhl26z3+4CIAfS/hNRM05utqRhvx6djbMSu48Pap97 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 029b3d14-de89-4e7c-fada-08db7df189cc X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 07:20:55.7961 (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: azSGpnVYKuXzf/+BApkmJ0Bv17uABZBiAM08hgO9u6HcWQIEmDAbuP9+yLQZUqJDTnwN5/P7V1wHdO8vN6NQ2w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6081 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 autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) 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?1770656098847594237?= X-GMAIL-MSGID: =?utf-8?q?1770656098847594237?= 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/bus/da8xx-mstpri.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/bus/da8xx-mstpri.c b/drivers/bus/da8xx-mstpri.c index ee4c02335130..864b61adf005 100644 --- a/drivers/bus/da8xx-mstpri.c +++ b/drivers/bus/da8xx-mstpri.c @@ -213,8 +213,7 @@ static int da8xx_mstpri_probe(struct platform_device *pdev) u32 reg; int i; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - mstpri = devm_ioremap_resource(dev, res); + mstpri = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(mstpri)) { dev_err(dev, "unable to map MSTPRI registers\n"); return PTR_ERR(mstpri);