From patchwork Thu Jul 6 07:20: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: 116539 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2379339vqx; Thu, 6 Jul 2023 00:38:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlFISnlVaEAMm+7gnYg90PambWn02GJcUQZLSc43x4hl/DfpnnzOFaLYJmF/+Fb2uJrO6TTO X-Received: by 2002:a05:6a00:84a:b0:67b:a681:4ab2 with SMTP id q10-20020a056a00084a00b0067ba6814ab2mr1015226pfk.25.1688629131868; Thu, 06 Jul 2023 00:38:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688629131; cv=pass; d=google.com; s=arc-20160816; b=jhkDFZSgpmJ3MUsF3vWUtb36lT5pULksm1lr1T3rLd4OYFbTigsa3HFjKLofp10PyB mA+lXzsrGjL4XMI9dk6w2yfzan64H55Ayqljw+sT0aXudsVkEKyKLx/Pdwpi9XTOK20F s/zcdr1ZzB2RZroKSFH75y+wY8VgIEaoRkRgYGZ+xbJ08gDzA2fbLUBq/gEZrZa0Pok0 cKAr6aTSpfJfI5Xd9BtKULar/ejP2RYDLeqrYXOfgdB0jz1J1gvujckbcKspXyAd446Q QJde+LWYDlBJDv2xKuzznN5U5WFzb9X3uMt8q+7yeMKJEnmGFJg4tFma5WwYpQ/kM7w6 lfCA== 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=w5bn7ncMehRBS1ZQydPUbDvazY3QY3oKMgwsfUyfqk4=; fh=AE4coNWzMIlWHaEyaZ8nR4Ito+9LLi2KNFeovzc6/Ro=; b=BQViWW1GlyCPDG4YFkKf7pYWZbT/va0HUrROjy0ptCiVd6kQJeOERmfI59VVTb3T9Q 5w77TqtHY5SgCZ4mIbvdLt2Yq99sHJqJb7W1hq+4x29uQanKOsCUmSXJk+mSByiCb2rh DewzBCht+ebps/D1xk2YOCKEwWQZKOXBOZPN2oLdBYfpMfoycMmE6RCNXPIHr0gi5gNK LYZ+u0+OSPRsRog/zPyhdU4Qa1Umua6Xn9De/Q8T0RkmNpgd8r7mGeso6xehlr+HoKWC 4TOFzA3cWTOs3QC9HyQb4gb+b4VUyX+JH6tBcPDGzkI7nQ3FTN6DVUg79d0OSpvm5nxW jFGw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=XXrNyarQ; 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 fb32-20020a056a002da000b006826c8d5a31si964735pfb.21.2023.07.06.00.38.36; Thu, 06 Jul 2023 00:38:51 -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=XXrNyarQ; 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 S229970AbjGFHVF (ORCPT + 99 others); Thu, 6 Jul 2023 03:21:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbjGFHVB (ORCPT ); Thu, 6 Jul 2023 03:21:01 -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 0B642DA for ; Thu, 6 Jul 2023 00:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UaTfZTNBrlhyY2jslFUHmsuhxnwbJfWocI7H3JJs/8mdrSCiZQPawcya83B0SMo9kxFh8MRY2+QWK+PdEbN92zm4NB7CNXIhgEMy+nLO/O2WbqTT3EpEERRg1rREwEmBWTZAEf9Pn/J4aDz2iosW5lFtBdrCcY51ynuq6Nn/Xqq/bY2XnecG72wmCGF+q5a9jxmLDCJhqIaqQQyNbYRp1fs11Wh30zu9f/MjTDi8KIR4WFvinY/KBIttDDEOROGJR0R8IhC1RpEuO3tOL6g+hGsfLoGallof2wA2oNBXV6p0XF6s7/oLcHm2k7cve54k0NwJqJ7OmRkM4YNs82x2SQ== 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=w5bn7ncMehRBS1ZQydPUbDvazY3QY3oKMgwsfUyfqk4=; b=fD3M+br951bk/K8mnHzSGLPE/72XPIxM/0QHA0+jE1W1NUYnb1gseoUesW1AnX5pLVVb6tlhFB+650G/BKtJynz8Q13dkLNG3XA0Edh5G7feors8sYNVMPIyl1Ir7IxTjbKA0G3tufri3+BajGn7Gy1J6M1VC3mIwlB6Fx+uZodDidBAkVm5n+peWHqtrDYoNY7St6yGp2ttj0pc1URnnvMKuqcttcJOAB7wgwdRzpZpOz3PAtDNg6jXiEgQXkor4DJjo7moSXBn09n06cnUeRRlo73+KvTMv211ObYjg11FzgFfyuLAV7A/ZcpxZCENbC/fcwk3IVc8PqqEUbTYBQ== 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=w5bn7ncMehRBS1ZQydPUbDvazY3QY3oKMgwsfUyfqk4=; b=XXrNyarQChU9agEo3R2VAysa1Fj7NyQ1FEmW3RgDJpzCy/l8jHv7fW57KFOzOPOuWzpEg+gXoQPwy1/5fvGDIZhiQ3+Tx8N73pJ1IxkAh0Q11jiBb9jTrZQHSo6pxjn/QWo5pUSQYf9rr4NtuYWxPej0T4N4Yjg8AhTr1rTKqsS3fxlDs+cTldHQ1WB57H4Mnv4HxAosPKhdfgJOoKlt4e4DoI3lJH7vzPObx+uSbgGdiIVoP/bRnuDvKHTFv3gqG5UjTqUPkyc2qEhpDzur1rOX3ZFPagXq6qgLvhjwR00FY3F3JZqMRnCHFyjpMPUr1SotZkn9DCcziXPUbDRpXg== 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:54 +0000 From: Yangtao Li To: Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] bus: sunxi-rsb: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 15:20:36 +0800 Message-Id: <20230706072042.31296-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 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: 388946c9-9a33-4ad2-125e-08db7df188d5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: w17lgeIe9rsh+SIuHw6j70guCQ3nIjbs/pEhd6c30zyOZc4Eadgx19TZqHHkZGFOzP8D5YVYq16X6skfcwgd6SPvdOqeJfkVNVHWxxLz9eDuHzoPC/lPLpiuolgWZb7nc93bNAnCYLptJwa/7MH/PYJTcFoHvXRx5oivO7dcoYGg9shBUVnhHrFkzAukj/1JVpg2kkyvDVtAHrtOtcxQ+mGxsYsdABIqgYq+GgwqcYTw92puMViekuTp/SEltSX1AOY7JRFxgrddvUtaW1kk9rfDEbvMXpFgkkM2A+gUbot0twIhba/g+UfLr6MHSYQpiTX7ukTDrs0kqlCOtFwC5tRGiRspl0R90t4iF2s1PBwCaVIkeWZx7B5Kw9G7bQJiiyU8WS6oQa/IgE05p2G5i4qVq0B4xZlUBlmNngIgMM1OhTlFSfbcXochiEHiNGIchJa8/W6ZuTuC+xfwqmR/ip9jV65JJ4y4/wEd4nD29Ba6IKOttC9G84I+ojE6cB8pcI2awIzAWDD7LG5kRzIeeLdZiAxWF4oojPgDPqIs49W4BI9HMjv5DDB+U8m8YC6w0TD1zJo1LIjUjwWS2zzFc0dBkiJBPAeCl7ejgJT5JKBzTan77ECKMQlKU1yTmB0g 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)(451199021)(38100700002)(478600001)(66476007)(66946007)(110136005)(52116002)(6486002)(2616005)(6666004)(66556008)(41300700001)(8676002)(8936002)(38350700002)(316002)(4326008)(186003)(83380400001)(6512007)(6506007)(1076003)(26005)(4744005)(86362001)(5660300002)(2906002)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: i7ZDv3ZGFXH+T/JzlxzHvJCx4k8okAy83MtKpIkhPjxTAxLpCmgMcRQjujdLQJo21zT44+8kfo657FOmhA8DaFzWPnRRizs4friQx512FqzPpMkK+9X69c3she3HhWesBQdQ1bVGbIsl+erDQRetZXnhzqql6/THyFIKWwxcUdZYkTWsxyiRhelEVQmK5b1MIj8pOMEtnnf9GhUtWXmzzkOmq+2xd6FB3jvZ3il8EsaVa6u3eEvd/LVZ8oxJSKhkxOLi3XB+ENH+DiKByig8qyaXb0LXNcU+TmjAdjd9Fl+6at+0136TTs78xm+gdN5dU+N1ydQoDetKhLwUSLZGYiQLpV7+5gYuLFgMZPKZwB+Igfi+wgdZr2glrXUPaO3DygI0d3ry8Y1aW5A5RsXvNZONgtdNEZMtedpUKVYUDSj7K5uGVcrcPDnmsId3b0gJpKvtspNYxS2sA0oiE8RlE9oKi+gXioEtvIrw+eB4gz06NmsoYIy5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zNQTNULPLlrDOQraZaiaft X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 388946c9-9a33-4ad2-125e-08db7df188d5 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:54.2977 (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: EcLVnFra98bzDKDwA/WPKRC6Dif1jMdLF+OUSFeFG0i3tQjRy7CI/ibADlcgUqgtJvBxfiYdE7NobTw460W1AA== 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 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?1770655980596848326?= X-GMAIL-MSGID: =?utf-8?q?1770655980596848326?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Acked-by: Jernej Skrabec --- drivers/bus/sunxi-rsb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/bus/sunxi-rsb.c b/drivers/bus/sunxi-rsb.c index 696c0aefb0ca..2aefd5dde3c9 100644 --- a/drivers/bus/sunxi-rsb.c +++ b/drivers/bus/sunxi-rsb.c @@ -746,7 +746,6 @@ static int sunxi_rsb_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; - struct resource *r; struct sunxi_rsb *rsb; u32 clk_freq = 3000000; int irq, ret; @@ -766,8 +765,7 @@ static int sunxi_rsb_probe(struct platform_device *pdev) rsb->dev = dev; rsb->clk_freq = clk_freq; platform_set_drvdata(pdev, rsb); - r = platform_get_resource(pdev, IORESOURCE_MEM, 0); - rsb->regs = devm_ioremap_resource(dev, r); + rsb->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(rsb->regs)) return PTR_ERR(rsb->regs); 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/pZs2Kz7Be3Zv68nRbonJqLNTS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WzQoySJBhHz+4W7TdRcJHfgRoXDSdULRVVWJsqkTQFgKu6vMkQ/tDC/iDZ/fmT0Qr+L7xdumTZIKlq0nVFfv5/ngChfj5Tcdf7EiYSuvTtWUw4CVq1TtT/ol033RWxeKKLv3EskrDe5lbpJ0HCbX1pDboqNx71J31pUDib3/T44/T5oUgojuVa1WdQ1h2+4yuCgfGUQIM7v9TOufpFrJM36An5xv5Oq45J7dck1ZaFgvyP3h/UgntcxNBRp7hi6NBy/JO3UKMq5RwHAjx7WgANrK13wGanvBCNr4CW99S8pCtdlTiJplZ19Iypt2L41B9vOt246vRjZ0BFZUhl26z3+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); From patchwork Thu Jul 6 07:20: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: 116535 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2373400vqx; Thu, 6 Jul 2023 00:24:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlF119zW2HouiSGVE0YM7N+bGSZ1RZyrwZYjxpLXPHyNatKAQp/PCk6vgayV/c97iGbtFNwQ X-Received: by 2002:a17:90b:4d81:b0:262:ba7f:30cd with SMTP id oj1-20020a17090b4d8100b00262ba7f30cdmr600688pjb.31.1688628256454; Thu, 06 Jul 2023 00:24:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688628256; cv=pass; d=google.com; s=arc-20160816; b=GOTSOnqqhzuGpjaPQMhx8e+1vqejEact6Vq69KYz3FUfXBMAAo+TVQXp2HRcw75I2P z0EgcZfYeFR302ynCn8ru6GOnlDlXvrbbAD3O0eUyclL7eCHGdwbmh4/pWSBmqOo2eNk A4sMUDzgj0LhBfo2SwnynruK/qyPRZTmSk+9T8jPG8TAMaAcVapKji7fhndg6hEPdp+h opgZOVDH+0+6t8vKaJaninbegppVhuK3aUk04yeqcx2a5yvoeBC5v6ETgcWDBzrfCCKL v9f4tBbR4xW15xHTUbszm3kbJyjcQUi1TnFwRC6inmdptuvx1EOgV8hN3wkFSzz5rKda gV4g== 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=ZIP0jntlJBxZLjjiDG4Vh5+ZcxT8dYzLc5ijhEXeeTA=; fh=i9/EtZOWsfP/muMU4aZ9fBiGVc2Zw1l43tWvjp3Lolk=; b=KlpUIkbWhCMcbM45Emv4qzDblsrEEoFXJCt4zRmCut9L8D7qythvKPrsSMIempwhBp PPIYzpOUOn8GEesxD10SWi6pMI48uuDzK7HP0vcow0cX14SoHS2ICLpUS/rZsYpWJv7c taT8mRlfwAfUVzOTBKJE56o1ZSQ0aQ9G9vEj8RB4We1yjJ9xGNeJ2UggWWQPZZA6Fjfe E4O2wvqf0pRDR1RFSnelGwyK6nYBV6lge5Fts80eolGYDv4nUFFkV5JM5DQuMdkzlldq SCzyYQ9TJ8leP4t2kXZwKGeN7v5wTgUA3B15ts/z2aeR/MopksTM8L6yB/YtpqZ0JVJv 6oMg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=hEtXWzZ9; 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 nu4-20020a17090b1b0400b0025669d0176asi3748350pjb.134.2023.07.06.00.24.03; Thu, 06 Jul 2023 00:24:16 -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=hEtXWzZ9; 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 S233469AbjGFHVH (ORCPT + 99 others); Thu, 6 Jul 2023 03:21:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231431AbjGFHVC (ORCPT ); Thu, 6 Jul 2023 03:21:02 -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 0D0B5198E for ; Thu, 6 Jul 2023 00:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PU0+XgeHPqa+JveMS6JiD4RHb7EAnUoj+lNOodTQ3DafuqJbQ+mE/JX3bdSfIAtU2oK7Ou+V9BKm32PMBzWkRpY/C4tVBbaPid/SKmopGqcyRe6a/N9X+8lRHO6t/lwBhy1SiBZqAACbwuYuI/ILY/sv1GK4zOpJtm+8Htf9Ov+8auIJNGvOabY679eJrtITUkSDnPOAMhXs9YR/Uetygkf8IQ4T3JC99YDP0szXffdbJfLhyqnXSLrOlx6rcVGs80UbIDDp2Eoh7QTQ2OnaMQMJwbMMv+V78rjLSESOt+45xL0FvO634Z20V/t1aHo4juOpcUgzbG3IBMQOfxJWqA== 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=ZIP0jntlJBxZLjjiDG4Vh5+ZcxT8dYzLc5ijhEXeeTA=; b=CFsLcavuT+VHYvX4B/5QoNLACHcKAN6G6T6l4Wud1eEVOxE3Z4Q0Np5Zdf9CdsMelB+eeE6cXmEdYBWpKAHZDXIzDCdJUHOER2PVBRaQRYHwCzXdoPLaKjcUBw1EJ7vaVo6vpOiFavzM7QDxfzWD3iq5wY2OD6r12h4+sh76GR/1WXltW/2g/EckKAPyrVWAASHP8hiKKqi3dM7Ik+cA4ElwPWvrRLcfZ3W4wMFCg8XsuJwSr656jrSBx45bwGOphy3VI3tyY7vfzvgIbSZ9jrX/8vGDA1L2XSqYkhkBnubylMsz6tQpVUyXSL9znVk399457NYrJX/0QQpQ9uvZjA== 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=ZIP0jntlJBxZLjjiDG4Vh5+ZcxT8dYzLc5ijhEXeeTA=; b=hEtXWzZ9Vmya/Q9fuM2oNugdJu7tvbfHeuJ4JYfgKpWbWqQBFMIzZdBlodTLZCDFinYStccya2KQrqAVXsN0I1jBmwQRC0XuroL66sJLgzx61c+SdNXwd5KpTOi64wVA593tGAyT5KOzp+yiejnbPby6v4mPzctuWfrp5kM/n9QA3B9hiq7yliGSasYsYdc9g3QfZPihhSBlY7DcvhKwMRh6jTZuaN8pSGK+jPzhJQMwmYI9CUl2krREdRlOj6USB+fr/BjkOLqHG6bP+m5VuQNmzhHlQqg5NKC5U2o0xTa+UFZOoTX8YmxWrFpkPHTrF3iSVPRTFN7DoyoKHm8Ojg== 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:57 +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:57 +0000 From: Yangtao Li Cc: Yangtao Li , linux-kernel@vger.kernel.org Subject: [PATCH 3/7] bus: omap-ocp2scp: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 15:20:38 +0800 Message-Id: <20230706072042.31296-3-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: 65312635-2b36-4fc8-6f5b-08db7df18aaf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ej5PheE6lsFSf6guBxbQjuiagkYQ4xKR+y+H6Al8LlT+btKpoJaw8eLwxUnC5V0e1IhedN+0vbVhTLbG62Iy0NpngCRTf9yGOTKC6Sc4wKniYMIeCSt1wJSTexwVj6vYJAznRMGZZr/eyPbDWlfEgAmIuSmtJwV6hPV1yz4vAPv8jNBHMBxOQKTPil1Hade8ab5eXQaIDPqUdfRw/MGSsfVX31nxhoFAiELazyhafxttWbYYZa0Em/WIHfT4B3c779b02l4Lcwhw/62WYZ0kCV+V5gNzepDjlmKdjsG592udvRGphfBWsnVG+0hopLwheHx0fr8wKuL8kj+eLFaztpF8Hzo47owVNsYOAqYsk7DsJ2obw+eBu1aUNfikKpr1ihtrGvryrgXOV4aE76I5MRJIDz6ajfWjORwQoTH4KwO+A2lPOUG6otHji6UxKhbIQYOcRS5gCWHHbf2lak/b9kFcd4Rv1a/AIt2Ogau8Q28/r0IA2Kvb0D74Yob2umarpvY3gT5/FokcCXnr7iZF57N3NQoouN5LjI/A4r+Dbuzg1pid5eGo9KGC0zzOJf9DZZ4h9rkiLZn02e9xckoslzQefcSIpjW4vSI1x3kfy7mB0zg5yqXmd6mXN6OTlNSXV671ikeSFvddM9by5dX6Lw== 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)(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GmeYKX9sZDPcUXWvinSfen33scr1dWb+qjc+13bIAOdcEKRkAaZcxABP2v8qCKQNA3XNq6WsHsd7dF/zjQYOc1W4kU27dKA9HfAdDPxbQOT44o3gXEnzeBNLoKORE5sHPV5rm46jB7DTh+kWRYKALEMYDCbpS9QPt8w1Zqq0UILNw20f5sMVasqy8D1h/7WKR1Sk7YOjL8Z9y8TLA9ynypn2OvRpc8j97GmVDFwXHcQtTEh6thtGEIBvjxd6R2Woig3FU1JkrHmtPiXu0q2M7rhQ0781PUHdEC/98tsWdLFkHUIP06jyVoA5QGnL8SFiiSTSOe86ZOhATkTBE9+gCKz1yk8C1UCzHM7mbo2aqIX5Kbl2jhiG2119P69h8pgxznmJSA4nXDS6RQZgdnO+2ZuCHLCjEzZdevESosPfhgVcrkpfPTMVFD3DURjTj+GrLe8fjOf1C3AA1BZvahROOmiliNE/SHrJv8ZjKE5DCBDavJWDsJfODpiNn/CLjtSUj3s4C8O6a8cqWcNMk1rZq0aQoCkU1gPkvcdvkBcDFrz84CUljdvsMxh+ioWHlBP+b2NAhNDOmXnM9a9nS8CJoodALNKp7gtRkCMw2vVzYH+zCoBdg1PdPToYkLmAogSi/NyLQ/ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 65312635-2b36-4fc8-6f5b-08db7df18aaf 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:57.2721 (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: mNMJ5BmqAe1KqEUA/O4tN1z391YHEMgduTFnOcMnIc538QkCJgz3b3rpJPXpgtSrhvl8moCZ+fDrA/EjC+61Pw== 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?1770655062722629087?= X-GMAIL-MSGID: =?utf-8?q?1770655062722629087?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/bus/omap-ocp2scp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/bus/omap-ocp2scp.c b/drivers/bus/omap-ocp2scp.c index e02d0656242b..75dd8f4d4f50 100644 --- a/drivers/bus/omap-ocp2scp.c +++ b/drivers/bus/omap-ocp2scp.c @@ -31,7 +31,6 @@ static int omap_ocp2scp_probe(struct platform_device *pdev) int ret; u32 reg; void __iomem *regs; - struct resource *res; struct device_node *np = pdev->dev.of_node; if (np) { @@ -58,8 +57,7 @@ static int omap_ocp2scp_probe(struct platform_device *pdev) * of SYNC2 parameter in OCP2SCP. Suggested reset value is 0x6 or more. */ if (!of_device_is_compatible(np, "ti,am437x-ocp2scp")) { - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - regs = devm_ioremap_resource(&pdev->dev, res); + regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(regs)) { ret = PTR_ERR(regs); goto err1; From patchwork Thu Jul 6 07:20:39 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: 116536 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2375531vqx; Thu, 6 Jul 2023 00:30:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlE89vWC6516nifeOm1WjUHP8/424fatN3JvMPEtcd60ARWkRqOf67Rm/SEoqZAqObQO7fRI X-Received: by 2002:a05:6358:9486:b0:134:cbff:c5a4 with SMTP id i6-20020a056358948600b00134cbffc5a4mr1667548rwb.18.1688628604581; Thu, 06 Jul 2023 00:30:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688628604; cv=pass; d=google.com; s=arc-20160816; b=aTK+mVrehHd0zPnProPvb5RJbDg+TpTpXaHi8DS3scnvFIAfT+fLjDtOpCuTKz1/5I u83kmS2Kj4oQZlsh1S54iO0teM5KXHEzvfWQ6lqCb5+Sn/kzw3B8hAy/vMvNolw4ryqs 7mv1QF6XAKRHWllKTehvnfOGJVjSPkjopZcKycwjHLgznGN9eBeuObqfUD3YIXweCr/q zTdEolSFqiDFQUu9AsS9YKqNe/2VLFW7qze/whG0/yHkQX3FbH4jcCDKwnEZIfvPA9u7 vQk15cT6Na078gkhqP2twpiiBR/J6hBWA+gYTypeDCNHzzrx/WQYa7jHXO04oyijwriE 2tTw== 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=p3g3RwmgsSxadIrRmjCFZfjIaT8MX/+tAHqmEKpFboA=; fh=9NExKnZJ8T3/8PqBJCxXCqxAG9vN264LzVqu3RCdY7Q=; b=jQKMl8sRyxX5QpXHd571qUKv/kOekcQvGvrKgBTxHP+3CVxWOJa2VSgy7IBXBWEcym ispPpm049g7q1jCgyNmzzjynznDSGh2wCE2vL3pcmKafAC53g9MiBx1b1nhOjrZn8Q7g 1L7GyyDSpCHsJpozRON9VvR6b480aQvQLImaMVfqbHr8wdI4sJMOTKfc4jVEopBzdz2c lDzHE6NSF0NiLzzR4EEcpsyMT+8lIcDUSVnubPyYMfyetR2GrUiN/WzeXqjIzavzcNpb cQUyqbtdlvT61oyscRW7uSKYmnEfpF+G7bbAngWiN1Hr0X1X3kIpITXEFaupAaZK1MmP g62g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="nyMm/XM2"; 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 z10-20020a63190a000000b0055ba5bb0bd4si869829pgl.776.2023.07.06.00.29.50; Thu, 06 Jul 2023 00:30:04 -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="nyMm/XM2"; 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 S233519AbjGFHVN (ORCPT + 99 others); Thu, 6 Jul 2023 03:21:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233342AbjGFHVG (ORCPT ); Thu, 6 Jul 2023 03:21:06 -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 0EA94DA; Thu, 6 Jul 2023 00:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Je9YUIZ0/g8Q+a//gGHbAnnSmYP/uG8rLBHrS1sELCVELDuRRxcTcaDajQ4bXh2TgosP1Drna1pNT4QnRqnCUHqCFOnL23vYOhwEZdR4Qj2sFWwKQF3teZ2xC0bhipeEWEjJ4mwqU7/NPCPFFb40au85gp5ozqez5EIf4RlQrWPvm4qhWmKgTJsAP+Q/N1Vz+ZbVj+lCc2QLgwjNSv2Yt+t16i6rzOBjnfSzbZ3erG+qXIt0aKl5yxFqZAF78vufUFskC10KrU/vYAPwyGylrSLP9mv12K9G53PDVGC39VGKn7eLILpjJgjX8k1UPFE9CRhdY2LvJffk1NCR3GC0KQ== 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=p3g3RwmgsSxadIrRmjCFZfjIaT8MX/+tAHqmEKpFboA=; b=J0rRqFS9ywyquOWktmDZHZquOGiugV/hU4YLJKR8+xNzNhDV1szwTEUl8x0ldJrr8/TCY2fW+Fk+PKD0lJ6xPUH3l9lopku4DlC2QLyBPqlpM0QkQmsrRIoKnVbMtd72nEXQK2kT6KIWPa7sHeOGHvHP/OxLHOI20wLlEc8TSJuevFoQavLJBxQZDRcwAjzweUfGDZTgZG3/k1x5+fsheqilMLlxZT/VtSSocJNNtsQd9uA/4+QHwbt3+m7REYa+IIABj1EcPOvdICNKT0pNWLw0YWb3gwkQB2UwxD7zC+lVRrTFatUhFM61GinhReF+iFPP+Epa5+HLaPkXrp9dVw== 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=p3g3RwmgsSxadIrRmjCFZfjIaT8MX/+tAHqmEKpFboA=; b=nyMm/XM24ZTGzLeoSZZPrx1QtjqY6hF5wM5mA3/NQBAlwtb8G0JYEPWmqmC+2LNFTiucUfTRzKNmfNYepVcF00CISF1RvKhoIyA9FpHXIKnE5DziXR0itUwd06h1ixmR78hgK6QNg5TGaru/qtM+Zs9vg2uMAUZ9fhYSmp6x/2M3ga5vuKsE6j8LMBzLGS9PoLIHKEDVTrR04rfXSYlpag0rudk3NghhLbIObm2u+D7FMAwAfGMXuevIsE3vggCx3YsmZzo5w1VBTReKgQEBqEvjwzif19/iWZKRpTJOY+QTlqzBNMiD8OyjGKIdISyQkmFN8XoGngCDt/LYWDGVEg== 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:59 +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:59 +0000 From: Yangtao Li To: Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: Yangtao Li , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/7] bus: qcom-ebi2: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 15:20:39 +0800 Message-Id: <20230706072042.31296-4-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: ade49132-6427-437b-2b53-08db7df18bde X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ttIAotpyeeHZzp8RqmNYITMY2jdGwlmHwlxpjdYiboxGC8Q87q96xBVVtgHZm+ImJ2It4HICOjmFhZzDNmbw476/s1sGWInFg28Me2aFVsTXPYlLfpeXRqI6xC9a59kObQN9DsdNXjcmdRwGgsWvhu1yqCXYDBPqSFNxtuSjGnYYr9VTsTTfzuC/ITSVEvTLbOxWt1Hmuj5CzGodltPDkrbT3QwBoQpMiRYULXrUnKbJZ8LuuMoCCXG3ZCo+sDjA6BHXMFyOzZiwbp61dFLDGxYZpsmbaedVGNvo8YY4EZbQs/vRcU1NsA4U1QvhZdRJ73MnGm8CVoGmZXyl6Sk9l/jrJ7zxuSTFKR/L/IqUmYkJoUSKu16GLqwKqZ+8W6NUFtuxyhG7XIWv06n0oNnNmL8C342G0mMYgyR0mbDnnoSRyPTscXLMAxwAIq6H3r4Mg3lwwTdJN1lKu8i42f3UAftWTBnpWl9v+ZQHScawwIwfam6RPzr7+lipYWuEFEFYHw04ZjKSHpUl6TnFFcbJZ0YB1qvLIWBRdelMT67JWPsu3AAgkewAPc7vsGy0IvY6EDy+Nkqcxd4Uv5yh0UeJ+jMVE+I4qFAlaMv5Gt2MdEX+2xmCu6QxmGZ5wlXPd+jh 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)(451199021)(38100700002)(478600001)(66476007)(66946007)(110136005)(52116002)(6486002)(2616005)(6666004)(66556008)(41300700001)(8676002)(8936002)(38350700002)(316002)(4326008)(186003)(83380400001)(6512007)(6506007)(1076003)(26005)(86362001)(5660300002)(2906002)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AaXW4+ZYaIdAgtqQAtg52gNTRbdG8SHii+PYOG/5FAlAmXOiEd2NOeKfuXr2E7HOb9DTjdbT0sDoV6plnYYUYZ7vOy/Cgkqa11R2ZjkRHTZMuuWqhshUzH5+eRMNNpcEmUzGnGv+GlGYEEiuZ8OvMuNoL0LzdJW8t+xUoi5YLdyIj6L1Tykt59zo+ZZwJmBYQ5c3Vz/rqaZB+AIZOnkSHESuJswzk6CZoldxioYjSb1ITiTjGLk3AiWhXLqrEnY/P8zH7uzhFqT5Le5NRfOVw+UIgxzB+jnIDZpZ6FVj7PO/CitV8emC1b/6GPgfQMU1Kplff/Mpaxr8vWh3Cqaw/BSEMWyvcg2alSehiEgtsBy0L2ccXCu3BBWtRXS4dIhAKI3kNe3vknegr0ID5HqLX4tef6gA7AphHxSYEKM+axWshFMJCoE/2jJJs+nLndEHpPrudiEz29Lh0wzduz+de7EOTx5XKf/QQNjDh6kInQbTsOAUd7mQsSSGvlA9ra544ewx0MO1bx3xgX8RzlXGCpWkRS4Mbb5C1GixBnhTXAAaX+M3S0kxxThmbsygXYc52lGb5LEKZtK3cSgzO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exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 07:20:59.2706 (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: CUaJkMPIe/RSXbMzCIqVgmmD6nuf2rZPH0DakTv1RXPIvDXpwZxss0hvjAGZf6SQF+2xKfUBsKu++BPvs3PLlg== 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 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?1770655427650209189?= X-GMAIL-MSGID: =?utf-8?q?1770655427650209189?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/bus/qcom-ebi2.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/bus/qcom-ebi2.c b/drivers/bus/qcom-ebi2.c index c1fef1b4bd89..01e76bb05218 100644 --- a/drivers/bus/qcom-ebi2.c +++ b/drivers/bus/qcom-ebi2.c @@ -294,7 +294,6 @@ static int qcom_ebi2_probe(struct platform_device *pdev) struct device_node *np = pdev->dev.of_node; struct device_node *child; struct device *dev = &pdev->dev; - struct resource *res; void __iomem *ebi2_base; void __iomem *ebi2_xmem; struct clk *ebi2xclk; @@ -325,15 +324,13 @@ static int qcom_ebi2_probe(struct platform_device *pdev) goto err_disable_2x_clk; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ebi2_base = devm_ioremap_resource(dev, res); + ebi2_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(ebi2_base)) { ret = PTR_ERR(ebi2_base); goto err_disable_clk; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 1); - ebi2_xmem = devm_ioremap_resource(dev, res); + ebi2_xmem = devm_platform_ioremap_resource(pdev, 1); if (IS_ERR(ebi2_xmem)) { ret = PTR_ERR(ebi2_xmem); goto err_disable_clk; From patchwork Thu Jul 6 07:20:40 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: 116544 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2380874vqx; Thu, 6 Jul 2023 00:42:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlFf9mP6DsO7DbnJQNppz8XXIOhFrmg+qNHaHdW7PoGb10i9IPVsuvGYUoDre2lw9Zai4wod X-Received: by 2002:a05:6870:a454:b0:1ad:2e18:7086 with SMTP id n20-20020a056870a45400b001ad2e187086mr2234147oal.27.1688629370083; Thu, 06 Jul 2023 00:42:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688629370; cv=pass; d=google.com; s=arc-20160816; b=V+koTu/2VtX43j7KNtiYRacrqHRSTMKT/PQzuiba+R9bj/HABj9AMzqgoJNRw1UFY+ O8udtS2ub2xg/XUr5jqZmE7WKqVL8r+GJxUrbCvzcDbuOqb37ueYo+Z6GBphuXPom4MK NYyjWY0+gkYA0mTJhn6jh0tqAeUBA5qNwc5Gf562ZKSWFq1EbUoAsVe8f2MrB96Z1n9E bySOBOlWxPQHkn4uW+CcsrR++GnPbu2oUIZ2EiJPkNmdO+wdb90bkC/j1tJvZUSEcCGC P/RCi4OX19JdBZi6V4MgkzqF/Yr/XKMzphojAtjU7entCySjhfJEylW1fd8kCtuhJ6r2 /LjQ== 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=MkXzs0odMqkULCNwqvLMP4G+l08tCTOh9Lptz0C93Jc=; fh=1h+RZWHRPLBV8Z8AoiiUIyLZwYkKh1m9+ugev++uQPo=; b=ZogUcwJ9sXfwEwWA5HtvZUPdvHyAFUDZa6pKE5P5CWXvInsFhakSH0hIl72962ONkF suGY6bxT8Bk1z5mgNx6KaC2x/6pvz6jn3jL7JJJyT+4w1e/COX1ke3Wjyydw2wFxYt8+ tjDMOXLxURqZp4ScedlCR3XEVjWLdfKK3us2Jo8cTJD71Vnny6GPDcygYrVPhGtwgHvb x8gXppPfmwM2CxzCycqEYc29PQ+wZ9fSUjsadod4Z5L9Hldftro2bDUAajL5OqcF85b6 q5JPRiv2oAU01nAGlNgNaOc+YTaISXtoJJFTjgX0z5vmW+/0PscukFh//9ha6j9l9lTC WEnw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=DefRbfTA; 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.42.35; Thu, 06 Jul 2023 00:42:50 -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=DefRbfTA; 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 S233602AbjGFHVQ (ORCPT + 99 others); Thu, 6 Jul 2023 03:21:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233401AbjGFHVG (ORCPT ); Thu, 6 Jul 2023 03:21:06 -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 17659198E; Thu, 6 Jul 2023 00:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UqJP6g1jEn6ylI9G6qSqnzAhIYXmpNBReNL4xCpoMHNwPenKsdCQPu9Oqo/ux3dwKinved/PD7xgeB5KIWKqT+cKs3NspAqseEAawwaRjqqJ09fZStPKtOCgrTFw/Alp/tQ3ESu0uJpHsOieEGuLCA0sm3mNMaMrT/S+wWm5HAmcE4xR6KriJGMLFdQjLQtgJ2lYmtL/I48/76zfbWncqdlQ9rI2sPiXyYWYV/l+HMU+3FHztgFCYJrcnPBS3ROrO6zdvlcBxPkU+UymCX4NPHmCz4850r/e0JSPVLrd6NrLrFgkf3edW3JrHcNaiIixC4pXQxP+sjaDllFYNcAanw== 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=MkXzs0odMqkULCNwqvLMP4G+l08tCTOh9Lptz0C93Jc=; b=nTed+dcaymCbCVyqdxHMrOTI9GlJ2Yrfh0DNyUNT6zFtVgWCcvVmMntV5YAJvkCPC4uM7LG8TGYbBgWjgc04KxXcMs4njgeGH0x9nIGv9OLkTbO8HM+g+tnz8P/y11I2YlLsvWp6yq7onw0ftEftBh0h1t9VD8AHz0M7uYkUlodkZLo6mV3mqW7UXh+3ALYuVZu+gS0L42iZf9z1cVBJNZtF0me46VmRZhNhcw0vP1wwuiymq3WY8IVwSMB9JkUh+n9wpny7Wojr70JqkGD/NK93ZWps5yoWbZRSNKc/rDgw5sqPqm4GgjzWEtSMNpsGbdLra/25NMd+LCqOoXj4bg== 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=MkXzs0odMqkULCNwqvLMP4G+l08tCTOh9Lptz0C93Jc=; b=DefRbfTASoBFi181NQFTtK2U79DzdQFazCd+/m4lnbyQDr6gPoAS0UO95LLFKB/zXj+r6elYGDluE6+aYvfEE69dLeaVxcsJ7BdE1fpykQJ10M+1Si87VNlOA5PdUz0TBI+KvqNnIpzalNl/JeA1SroF7Jdl/MMXeDqM1r7dT5YXO3BYB/SpyVPMfjiGVSNK5IPbsrcOxC3xvOixpvII/j1eiZUpJf9/TIJ2ERtJqgIVC/ILImjmGxJxkF0NrhaXRplAfncDVrRdYAScLAJ1o9m4kS/+Bz8xrjqesBQJrdntxsLzcCX99PGbt/WBSAG/acNvViwIsgerhb7ZgVScGA== 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:21:01 +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:21:01 +0000 From: Yangtao Li To: Thierry Reding , Jonathan Hunter Cc: Yangtao Li , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/7] bus: tegra-gmi: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 15:20:40 +0800 Message-Id: <20230706072042.31296-5-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: 67bb6390-3d15-4d5a-111b-08db7df18cf5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q3m/yDfM99ZNEInEPBDDxCLwDmMi3llV3/Q8yVXmb/tYD7YQg+T6VPHncmKqiS2eE6AkFt+Fc3Bf3W5LbwDIkP+7Lfy5yg9XX79FvYCB7EsKhsAnFzKg5gthFwgQ58jud6eTrvedbG69vrhsBzgGwH4TTSC0/2lZQinmV/rDG6pfsQPseVbYRd3UITVICRBDOnh9jTETcM3xkyglh1ys5WLL5B81vhwBCJh2f4J37LFm/1IcVeRKtFtS3Unelz3J8xIHstUNdxg4k6FIekPxIdEaHBX06At+yczPzzUOEJuEClEdkIaU+lWphY6KbHqHguHGcXc0FmMVa3J5VPLU9x8ZDqazyrCRh2VaCeo+lm5rpLZyo1tGGZJClXB8zSB7o6pghoMJd3oibb5L3pxxfYHP2vmbqC4Q30KCREIRLZLnGy75b9nRdopNcufC1dJV/KHuZlq8cCbZrNQRSDIHBm6PG15mobiLQwczOuDzPnr6+gPBUTDzol99SknS+6eSPQsd6z0FY0akW9HSqnFHvPwjeFMIox9Q0LdroJNbqJNMDwV8fqgl7FhJP2nfIAQTp3IL3Cr+2OZyVhxDtCIkH/kOT2jmspD+DuirSdE9udB7vTNFnCTAA/5vMQSmIrRq 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)(451199021)(38100700002)(478600001)(66476007)(66946007)(110136005)(52116002)(6486002)(2616005)(6666004)(66556008)(41300700001)(8676002)(8936002)(38350700002)(316002)(4326008)(186003)(83380400001)(6512007)(6506007)(1076003)(26005)(4744005)(86362001)(5660300002)(2906002)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: X50YkKAInOdZgVLht3f0DKHPmPxar1yKJVEpyrGr3EYcVrgKIaR/qna+PvMRwvGYdJ+vJuf/Dgit7FSZudhS/9u/w+E6FLIFttL26hFYg65VL1cds4mAoq0ytcWpSqz6STNr7gj+OIxskHnJt3zCxPm+p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LGQHroB5vY0xcihRAzEI7z+3AQAFTBZi889uJjSp5k/RlESH/lm7GCqPOujGENhGnfY2yntdS4r3O7S1n4hf88Dt8mRJAA0efbprEMeg4jS5FojyvvkH5vG9od1JYmHg/Kugzi3E3fhLOBCM1Ayb0c+rhGd+kevJLWLc8VY6FC1xRMzqF2FBGE/4RGt3Y5E/67vb9cC10nHoQ5ZP9EGvS/zCt8ljtl+PEx91k32+J0siwn2iiYTlYMZuqncdpU0+Lw3P9mw2lakQPHJnkmguATE68R74FSb9UpyTp9ihJz/p0c1zEP3jDkyFTZq5EiA5QqBNnBvk4hHYNqsABhvDBO1toVrtDvlY0ZXvr9XU X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 67bb6390-3d15-4d5a-111b-08db7df18cf5 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:21:01.0780 (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: O/MI/BDrSzSJboMi5NVmn1cw4CQdonVQRM+9rJUwIpMxcjTun9gncgghzAfhE99M+8BYU5qkj5IvAoPsGH+nlA== 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 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?1770656230625904825?= X-GMAIL-MSGID: =?utf-8?q?1770656230625904825?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/bus/tegra-gmi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/bus/tegra-gmi.c b/drivers/bus/tegra-gmi.c index e3506ef37051..59919e99f7cc 100644 --- a/drivers/bus/tegra-gmi.c +++ b/drivers/bus/tegra-gmi.c @@ -211,7 +211,6 @@ static int tegra_gmi_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct tegra_gmi *gmi; - struct resource *res; int err; gmi = devm_kzalloc(dev, sizeof(*gmi), GFP_KERNEL); @@ -221,8 +220,7 @@ static int tegra_gmi_probe(struct platform_device *pdev) platform_set_drvdata(pdev, gmi); gmi->dev = dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - gmi->base = devm_ioremap_resource(dev, res); + gmi->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(gmi->base)) return PTR_ERR(gmi->base); From patchwork Thu Jul 6 07:20:41 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: 116545 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2380873vqx; Thu, 6 Jul 2023 00:42:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlGhbRdQeZYMr6ymewG0v9ECxgN1hIYcgVPY6mfi4h45TpXDctmhwqr5dln+7YkGPef0nzHL X-Received: by 2002:a05:6a20:a20d:b0:12d:ce59:bbc7 with SMTP id u13-20020a056a20a20d00b0012dce59bbc7mr723312pzk.24.1688629369981; Thu, 06 Jul 2023 00:42:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688629369; cv=pass; d=google.com; s=arc-20160816; b=nIzFmFjU2uHshSFPKg8dlDnstMualoRxd54fGcJGgpNv4sT+TnvvZGaxyzzpUlj6gf 3Vj3hZ0sRAL58kSM9cHum9jgYLl6/rQ3QGGf0OPISnzxFVVZSxdx8lAI/m1/XQfymr1m Ne0uXxe9Z+xmuufbCjLXV3RZIskYpc9ZfJ0gBtRIEvHZzRHM44ECNnzculZZK8Sx9Zmm 6ypf8o3z+VQreE8lMFK0aLqD6vJZ6s1Lz3AgrgdUY5qk0iUj4FtyqNb+ITJNZM5yXVA8 kyy96gySTLqM+N7mi7g7ScMqw4T79uWGz5fwkpanqj40WW9vNTh0ppEKZ3vYUBNL2YFu /tDw== 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=y8pRmkKBI8O3MypEM7GtqWqLtYsVpLMjYadD36x7IkY=; fh=1vAkmzUthR2e7wdU/a/AyPWwXsGRV/GPo1c27pgTyqY=; b=oThFMTpJM+aKrXUaI7dLMIOhXrfTnlAzqWcQOyiVBQwLH38oBwq8ps76VEa51DwGaf YjRLuaX9YTuigDH+E0rVFTzv/RabDA53TI2+owk8Ff9hCVcKXQFmodUrRmwxiKS0DZQn 6ly8pDRTinJIDsoHhrmxoola4Z09EAk38glN9np9QcT/tdrar0jHWjZxSNb3mxD9JppG /lst8cK+9YVPtuicWAmhcP3npJ4P2v9I7cnfJqWRd1kls/fjZANn9InDYrYfVdIgkOiM bEW50i0HbjY0EfGhA4LRI3riR4AcPlxPovewplpPogGpY/+5/UlaROt1QyYfLyIFf9mY 97wA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=cEbUO7Cg; 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 fd34-20020a056a002ea200b00668724d0816si945683pfb.38.2023.07.06.00.42.35; Thu, 06 Jul 2023 00:42:49 -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=cEbUO7Cg; 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 S233712AbjGFHVX (ORCPT + 99 others); Thu, 6 Jul 2023 03:21:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232538AbjGFHVH (ORCPT ); Thu, 6 Jul 2023 03:21:07 -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 12F4D1BD6 for ; Thu, 6 Jul 2023 00:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fOjsK0HMV1EfjrUs4xyf9NxcSi+oQlFWyvWJ2JKQEATfWHtM0epET/kuS+NI6Cn1OIanOdJNroZ1y7HDoSEzsJHWa3hnXchrLif5EOjFvEjiQR6QrOmY9OitC32x+I2nHqee04RFwLmkWwtINqPFrSjA50zHce0cmiNLBr+0TfEcdX7cLr1TWgdgbA7TZ8izii1blAveZFKTDKZXguS4fWfEX1K6YgkZDxq+4xiCfaAzCP+HerOAWAwxZvYcUq3vo5UvkzmaxtIt/hGjvf+bkS7abm05f2eu6l5cYFcU+h8cx6mqoP6pyRIYaRolX0nVciylP1zz3fPfPHzEcbGxMQ== 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=y8pRmkKBI8O3MypEM7GtqWqLtYsVpLMjYadD36x7IkY=; b=CUKLMYoU9D3JSZjbVuo6Tk4jI3vafkJQz1eJ3mIHDoxZ9+2RWQCVz9OJ4rIFtGiq+UolpvTIC5TLaL1zOwI4iL3udtaB3qmVmTvA3HbZv+kd0AEoRFuvX/v1aSqm4g1ft2znlVcphPvEE6jxE/9ApBJCSssmylTb3cVdzOdPb1y93srkYbTjr3rtX8jd3/VAIi93Db1MgdUiU7IOedWt1b2RoBOb6J4PIcalg2l9rXUCDdWG2XbXEwzfl3TlgmbMg9/ZpqQjPhx++oojRvjDpe9+SlP43/Z3NRz9OHdoDJpNyaDUx5jxMsPZUKX7YJK2vAmTrsLg21oykC5o4/5/vA== 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=y8pRmkKBI8O3MypEM7GtqWqLtYsVpLMjYadD36x7IkY=; b=cEbUO7CgMbxIFjZJb4ambWxqNWlNF89HirJdwWt6O1LG1Y18eLT4OHF/GIdUlMJUaPicYjXz+gwlvXiw54cAybWSw/7v9SNKqy+hNrFbILgb2Qv4Exg1By5q0hAISIl5qa53RykR4kKyHeRL/clCz7c+VHxd2ddnGSDKIh/b7kpbnUz3QlwuBRvhb8g6Ot8D1NMyfLS+rHINvXY80adyYv/AbNkwB011Y1GO1B6lEkg1FyqfyhWbdv+pGPiGvouY0vYnOoUR1GE8jTFgABb5cBTQz2BhdKmHIOm7cN3IZ8kZ6SlVsq8TvpXlnRpk3gWFP0txcj4FzKuaKFBINGtfWA== 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:21:04 +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:21:03 +0000 From: Yangtao Li To: Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi Cc: Yangtao Li , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 6/7] bus: vexpress-config: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 15:20:41 +0800 Message-Id: <20230706072042.31296-6-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: 0ccc42ea-d6fd-4216-a65c-08db7df18e1c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BZhDyyrMZ6a9d3ZTV6lnjAmyqM25YL3HcOzRbqYsCrG1QG6LeTkcuUCwsfHXG7sJGaOO8AowsG7YaJo59bQUBO3DV/CWlyIaCPTTRyD3V7UIKsK+Nr20yVZ2kB6BDbnYOw9hP2SP00/U9va4iIxG65DoXxx1oTSdToxbWsR5vqYOItligbEqhiy4yExVhjqVeKOQWkrpqiRY52/k8/ufhVh8iKxuzuIVgWWGPsYE8C6yHPg74Ug9rx3ZflkOUD2xQHh/n23LKiyB4Au0awl2ujshG2kaKX+AgIB+up1vlU/N+5ozDbPvpu508iFWLTXGbCUURIjUwkEVIi1LWf5fy7O2kstVu1AuOxiQUQ+xDm1iF9MD54R9zSlN6fnshWEuisehnmKlZbvqqhDi/inwdckhqqvOd119fH0Qrq9mTCm5a/h+3CPz1iBlr+8UXEBvTLsfxXCtp9e+qE3lqR4y//OgpxhIZs9eH2rUxftZl8BI5MO+AlFFOZeacHWXJNEyh8+b/0gULfhMCms1XTCkEUEL6PY+LGp4f6C7P4z23dDQR+0Gqtco/FQwMqcFDltlxa7arrlKzkKU+wImRNoir0wPncyDEqoVWvSgjjG9bOdGMm7TydQU+k5LkRDAMRTQ 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)(451199021)(38100700002)(478600001)(66476007)(66946007)(110136005)(52116002)(6486002)(2616005)(6666004)(66556008)(41300700001)(8676002)(8936002)(38350700002)(316002)(4326008)(186003)(83380400001)(6512007)(6506007)(1076003)(26005)(86362001)(5660300002)(2906002)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GIep52U+eMn/DMn31q9tLz66MqpE+jTI1+6um5MvCNC+x1874tAsNbhHrP98Jbfie9w6RrvQi9WafwKsF4kmIJAWUDo3cvbJfst+Wo2vM4XhxDslAJh9C1nWUFuDF/WEDsH7GEOiT6cYrNr/U7UL/0Qe41oRXnX8WcOFrsosoe4pyc81PDvavZ5Ck/n/x7YuPvp+htjtoL0iQjEl7g65jjAv4GScL1PX6tNT2EgvILKPsaGE6f5K0QIJ2B1PNYpen+X5bdkzOOGh4xFVUxLHnmQp5JESIUbziMtkA9hhUJEbIiUmcDiEGI7GlDAX0KNL5crukBs/0Vvk0VdtwFvfTO6N+9ymhVN4g/Nferj9rcCX+Qvastb8lhnLXVS3dHuk53q6U0tubEkbZqx2ACOZg+7CxfFnNYqlJIg4c+nP/VZRN0iaOvmVtJA2j9pSXunPvNr/XV7IgMK5aDS7U0iU/ZHlgj6AE4yg0ZjAlqy0tlA2kze8mC7vUyomfZtisLcscR3c7dFrrFhdxM6wEDIWQglMTlfWSvVP0kSqFuVjr3yHi58kH5v37p8QWHllk1lJJPxNaaTLDlIJkU4Gkr4Yobk2WhpoqhxtSH2MHKcFIikwe0KBqmPWgUM3zJ4VrKfchAw76gk8R0H2LxXQh7xMKoCtiuTcUhdE5etIKjhzvlBgNoDt4j3Um5dbzp2vPh3fi299C1Rr75az3xDbIvtygXevy6RvBaapZ2cjOZ1dYbA3wYQuQ8Jan0X2sv7aJBLAXw/hxIWm0PtqZWgWs96thBiDVEP5SYeVPdSbXfqsUdjqJLsZ1Xb3G9OTNr3rjQED0OgHL5yn5Lj5DRzmRLGxijl1J1E8Br0oXHYqt6yJ0DKmd4YRmooDhM3Vr6ioY0Om6MMXxmT0qJ9haAYrxvRvv1vwYGmcTE72zNBIINDkSJrn9xjyCKGiPgol7HSxKCYvxXIH/R7dxex0hqhTRSdsSSyzADq21X+C7BZwyGJJDZUykZ3ir+mBvCnZ4A04DOSTeKOlhJJcwtRgdHLoNg2M1ovNgxOnUIEHpAAQrnZPKvn3Oa5gAFGgmj5dUS5nl+84Is45fkvSkWgEJSz6G3jinIBwQxzSF6ponUE68mTtnIa7S9vZEww+D6TQw5l1yzSeWTdcBvINMK5dYDZRWt11f94gllRS4Miak40FEiVmqPIBCY6mSx/l+ZCwOB7SYvyri2TF378ZKSJ8lGKlGKdpK/hQWPZZgGpPdLeicZl+So2d9YxzpYjo7f5OEVyhDzz7lf3R9PCYczi0bb01TorKmSrky85j3ulhYWQd39uIDzA3jqcHfLNjp87yzPKrloGx2Av/T9Nkr+S6+eBsJo2iBHF3mZaPzjIkONLrRmY3XITMWk3OnVUSvESo1gSeV9sCYxXYCWF1YYzHpOit6W1IfHNyEt9uYcqzEriy7l3hIGv+hft4vSLyrfO+yji8MURywsUz9KYZ2O8bAD+AI8V9wxprBme/XBIhxgBfulDGnlfqPc7Bc7LSFoiefiMiibycZmuuI4NcawdlLtIpAwF3XlWYoD/AKERBd8H8WXZuMwABZxvywAFzjqNVHBnEoRvU X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ccc42ea-d6fd-4216-a65c-08db7df18e1c 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:21:03.0319 (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: ihOPt8ZqDtzVUD5iedaFtxW0rJjRwfbHC8RYocINnEWXsKtHosPph+CkvZo0LFHYm1KGwY3RkBLkoxsw9/1jPA== 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 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?1770656230504326417?= X-GMAIL-MSGID: =?utf-8?q?1770656230504326417?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/bus/vexpress-config.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/bus/vexpress-config.c b/drivers/bus/vexpress-config.c index 472a570bd53a..c4e1becbb2d2 100644 --- a/drivers/bus/vexpress-config.c +++ b/drivers/bus/vexpress-config.c @@ -350,7 +350,6 @@ static struct vexpress_config_bridge_ops vexpress_syscfg_bridge_ops = { static int vexpress_syscfg_probe(struct platform_device *pdev) { struct vexpress_syscfg *syscfg; - struct resource *res; struct vexpress_config_bridge *bridge; struct device_node *node; int master; @@ -362,8 +361,7 @@ static int vexpress_syscfg_probe(struct platform_device *pdev) syscfg->dev = &pdev->dev; INIT_LIST_HEAD(&syscfg->funcs); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - syscfg->base = devm_ioremap_resource(&pdev->dev, res); + syscfg->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(syscfg->base)) return PTR_ERR(syscfg->base); From patchwork Thu Jul 6 07:20:42 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: 116538 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2377236vqx; Thu, 6 Jul 2023 00:33:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlGBGwl9JmN5EcHXh8wpvHlQxohK37HgAvx6OEdME75+LMcKqh2XvWCK/u6HMJkGkomZJyTf X-Received: by 2002:a05:6a20:543:b0:12f:dc31:a71e with SMTP id 3-20020a056a20054300b0012fdc31a71emr886712pzq.56.1688628830731; Thu, 06 Jul 2023 00:33:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688628830; cv=pass; d=google.com; s=arc-20160816; b=HjGeCLcUapedJJzFgeKP8JiEd+mcLv9YUoMES2Ts6oBIokDSmyD8JJaK62EnMcgY8p t9P0fCnO4/Pnox9qNwtm5T1pmfSrYvHnwdXZAMJjR7R67DRyF3jNCummlBWZMtlEByPt 67Lt0j6OB/wAjAP6Bl5310p+zg3COMBpd2lcKcgIkqAMP+MIin287khGROXMamfwLIZN BE1qh1/slya/MYaXQJgKC/Eh91PKCmUjK5X3B15y6aia2f+5BCFqv+uj0nMgsGOnP25Z ZVxCBmPFbpeETZx2hFdQRoGHyLKtmBvw8DQkJpK9cHbmml4dgCWmNG3OG4NtH2k6ObDh NmSA== 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=mn7Y8gyS6DbcWaU+KLaEu1BvTCoBv5ZPUTUyLt0Kcnc=; fh=i9/EtZOWsfP/muMU4aZ9fBiGVc2Zw1l43tWvjp3Lolk=; b=Bgu+WAgG/9izfnc8Asdza9b45NXuMzqe3+SyZiGWgNzLj+Kh47triJK/DZhR6l+dVM Mbsg0C3YLn5MX+3AYmOeNyoZh1Ex7S+eDhgIKxOKmILw4mrPbqzjh+nTGT3eIrRjU4kN Q/rh6xNLQ/eLbSEKVauFFQDCufCTEd/miA4FB8x3ju5nUPV3z13bJZN0IT5HAYQgLzpX JaRagbtHcGsGMlshsA1vwdIqy+/KP8iobTCxdo+UJ7FpAcaNraNawmSjoAm+fqvFerFp 1vqGJqhOWW1Q+bK+/glYyvRCmuZ4CZKNdEid5lTb7wHG2pvckwADMaK1dR5SFrE7bFCD Uxtw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=GRomqLsS; 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 r21-20020a632055000000b005579890497fsi883899pgm.205.2023.07.06.00.33.38; Thu, 06 Jul 2023 00:33:50 -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=GRomqLsS; 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 S233637AbjGFHVT (ORCPT + 99 others); Thu, 6 Jul 2023 03:21:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233499AbjGFHVJ (ORCPT ); Thu, 6 Jul 2023 03:21:09 -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 0AD1C1BD8 for ; Thu, 6 Jul 2023 00:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BshNQez/YrUwvJ7TPi6FShD81moIvimwCKFs3gTA9GoyHSaGpn5lIRmkaQ35FE9/4N1XkJAjHNdfG8xCx9rmKHr6NOc+T/U9/zK14zxc6uC0Qwk7XhnVGD3IWEBHjpD99fOrrdaPTgL+ukAjnssFWSAWvyc2JWmuGrPL3gWurVh2Awu3WhmDFrgei+mEVabqrrsUpvAGaIqpvP2TnQb/Z+++QwszNkZZ+jNEypIXqlwDJEI8s8MsnAonZc7ByD9UixwyrhDFqls6zJJM/yc4LDerJPJe8evWYNuDUJ3HsD1MBDQ88g9hL7aOwigLFneXjNxKrvKDyVHjTg4dr+Rtiw== 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=mn7Y8gyS6DbcWaU+KLaEu1BvTCoBv5ZPUTUyLt0Kcnc=; b=FuY00302zgRYRpOf2pzwQ7YCyVHa1JQLmj9iUSRqMOF4ajy5wzCZaDDezCGLrcQMBnhtmCMHjm5/7bjA+5+wm0rW89GF/Ve6IV8bSl7EUbCT2jfWtsELDjUXp1/9ctJnetTN8QXBCschq6QGKFlecNkmB84lLJFbEL0kke7CNe9EtQxCM/P5wwAVFSdfZP2qo+3kS5F4oYakGVKMJHg0zxokHNcWlldsw4Py+HPo9fxWjVov70r8GD1paoEL9Lhl1Yv398eZI9/nxugNpxQoURhTn28AFTB42YlNnG5bXjKDMvDMV6iaSWWsMFxbUT18sau3LWBN/rcvE3FMepF+6A== 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=mn7Y8gyS6DbcWaU+KLaEu1BvTCoBv5ZPUTUyLt0Kcnc=; b=GRomqLsSzlYmU2RfUwTTPH4uFawfZkYw3e6Gb6IzWhv6MUl4eMBycGmTmTcPFfQXzrkAlc4Z0pbjQXmirjIVukV05VDuo/nNDSCSpuTA0JcPhRqHhtisNV2WezQ3mjpJ9c4q0kWDlw475IQqdK8pLJ48XeJyRLZrv4ia2bGmjFz1B8bAbVKTjXY2Fzmk/fBjxQV1Tq2u7gMVap87UIygHbycUFEMsChiLQ4Ba98fQV2CoSo46cA6wZ6uKYCUwdo5iZsBqiG0QXrWgIC+gV+StSlu3nJvWxPN8cO9F9g2OULGOkNSU4iTPjtlOHn8m7hEgToH9q5Du2z4H4DjLeCa0w== 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:21:05 +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:21:05 +0000 From: Yangtao Li Cc: Yangtao Li , linux-kernel@vger.kernel.org Subject: [PATCH 7/7] bus: omap_l3_noc: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 15:20:42 +0800 Message-Id: <20230706072042.31296-7-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: 7e3fd2dc-2e9c-4596-2cb5-08db7df18f12 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ChZhd8/Z/ohA90dfzj9aNqizE8X3qn0/aOY1e+9vDW50F90Qc9COMM2aDpAjo+MV67o1RwC2nDtZXP/EO4NQ7Yk99sndOwyKKSkJCwEyKcg0uG++bArAdbLRQ5dWUzwCafSUzoIql2X1Lr3rz47f8A8T+ZUuNhrZMqYX5wJUuUTmxkEW/BJ1MefC4jEbrXh8OJVz1Am/1W3xqTBiiTni4MgERz07ampk7pZa23z8ykst+3fk14uiMYQD1Iagv8yX/+7UjS3my0J1wOV/lMmwidCsIiE65Dxluqsa4vMQ+H7OwuWDHCn5a/vsxR2n/ZThGyAaexWTLtP/+0zrtr9Z1g+/sovQ+V0sDil/PnPAJ6LzDJqO10WXzRJ+5ohpXRfOHvsVJbLokP7fsKOvjtNjXdh1dKWojjGfmP/fY2NSs2cJTYJMp8of3vYMaSiB/Yg3LHnL6XNhvp8Fy0awuQOur9VSPSpaYBnd1eP+rWWOpCP6022vZscxbpPo4XnULs6Ly3oSEK4/ytH99drB1b5zrWKqigU827CXSt5dfrI+u6CcYV3DNHgk9uAhLr7laIQZly1LHqHYPs3r9gwd/soNKPymRLKzHclZ64VlzQkCxOTGuUFNn/r88D0RrsWfBE0eafDPk7TcuODdNqdXyEzs+A== 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)(86362001)(5660300002)(2906002)(36756003)(266003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PM+kpL6+hu6Kzx3qs3TUGueBiL/kRq+A5i9uL773SI6Z8Z1561FxwdP2N/bXBCWO2Yt5s7LPsjfMYvl+OfCQPFsvJFXZsHHS1lya0s7WRBBPvfKlrMDiV2aSSGd43GTwLGhLtk2ITYwn7iEz9juUBMBt0JRPnqcyk4oVNnV6VVb1YkEnfe2V3sXIrdJYjpCMCh8IXb7tS7b2P5uXPDKSjGqLFZHhT/YNPXw6jOOfvrM577kM1yyKpt0/Te4ZM/xBQtJpGBtJR7JtJtKWm8VMv5WUAL+CJAzfBQ3HvmnJU5+AxW/ty3Yn84EfhBMUJz7HJB5+VReKA25YCoKqOFDs/csulMO/AwwmzSpHLW2DgR6cNZD5Se/zLEbCiUnL+hcL4KarhMY7G0zcG5GZzBxrTjpKz/Dj0i3C4I1iOJWczuItipixVjGWk6IBRv1cX8echukUy6HbmJaxczBl71t71HrPlbejv+FC1Zd9o9b+U2B9exGhdpAWy46Ys1tbhO50t4U3nd5/ZG3K0d/UZruuiYY2yzCueGOpKL09ehnIQ9Wgs9yCuXnSs45LLpOtplNtnq9UeGDL8A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e9c-4596-2cb5-08db7df18f12 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:21:04.6184 (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: bEjhmilCXQJ8aqtuePpEkC4R/CKJnTEj50/wBrJIrnphQjljKsne+WxfDbJgGZgOH3hSG8ei74TvPVeus+zStQ== 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?1770655664356610420?= X-GMAIL-MSGID: =?utf-8?q?1770655664356610420?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/bus/omap_l3_noc.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/bus/omap_l3_noc.c b/drivers/bus/omap_l3_noc.c index eb1ba6319fda..0137e9ec577a 100644 --- a/drivers/bus/omap_l3_noc.c +++ b/drivers/bus/omap_l3_noc.c @@ -255,20 +255,15 @@ static int omap_l3_probe(struct platform_device *pdev) /* Get mem resources */ for (i = 0, res_idx = 0; i < l3->num_modules; i++) { - struct resource *res; - if (l3->l3_base[i] == L3_BASE_IS_SUBMODULE) { /* First entry cannot be submodule */ BUG_ON(i == 0); l3->l3_base[i] = l3->l3_base[i - 1]; continue; } - res = platform_get_resource(pdev, IORESOURCE_MEM, res_idx); - l3->l3_base[i] = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(l3->l3_base[i])) { - dev_err(l3->dev, "ioremap %d failed\n", i); + l3->l3_base[i] = devm_platform_ioremap_resource(pdev, res_idx); + if (IS_ERR(l3->l3_base[i])) return PTR_ERR(l3->l3_base[i]); - } res_idx++; }