From patchwork Wed Jul 5 06:53:01 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: 115964 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1678028vqx; Tue, 4 Jul 2023 23:59:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ766BLYr2rNMghDz4R9CkrxxhsGsMpMJ0bRc5rTxE8djvOi4P8hI7TAnfKkzTGzfcCFNgrB X-Received: by 2002:a05:6a20:4cf:b0:10c:5324:dba with SMTP id 15-20020a056a2004cf00b0010c53240dbamr15353627pzd.28.1688540387513; Tue, 04 Jul 2023 23:59:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688540387; cv=pass; d=google.com; s=arc-20160816; b=AffcQOSRFhxHkiHdrtTO1L/fpuGPHfc5PcsHE9Bcl3Y5jC0+S7D3LQah3DmmDNIJNU EeXRVup49h0Asm27Z0CIaB8djLjCTVsogXgH9K4kzFalWQ29lRa+9+LS141KDH8v4JQu ypeK9VLGwH9PYw5ROcCJmOabsmo4SajR/TRGoEu8o2hYSModPzijV9netBYCm2YbBSOq df4Ay8DxebTMImBIHLNQ//yEMfQOSP5PL+ziahwo4u5Y5vxuZcWl4kmJogBds7bE/Y1J KsDxLINJKQqcbjAHKtSrow285OXMx+sqJlGTl/RwrTHMNHrnHW/9E6DJXHGMwFHeLL54 yxDQ== 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=Hvl6rkn1t/msRsA8K9IQ3QzUxNkY6oDygpIzKxnBh/w=; fh=Dy4KPAqwmuKUWdVOzurQY+H68bHPAfBF1dgYzhHjjCo=; b=qrd5I6A21yEVjPQBS0c1GbaZeR/FmbF3Y3hhhQBEsaQ0X5LSxc5i7sE0noTt0bGrbc JBv3cD0Yle6KFRGQV5fP33mdas9roDgF9fzBXSLeMlvanucAbPL1G0KJ2IcvKEl57QZP uaCt6FYyRF0XhmAUHXztz6hJ4YoL9zvgAnCrWMC/4sty4EH+BXjY1+k/vMen74OMkwI0 kjGOfHuV4c1y67P2WJRYe5P9sE9gpQY4utepRgyHT4mvG4+hNw6/NtySBbMKVfyNeuOY z88LuJIdj5BvrFlysDqjHo9kA9sQF+5l85Ft+FjIoTeFSeR/WXAvNU2w8nCHu3F6K+S4 oePA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=fXRsYMXN; 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 q20-20020a056a00151400b00680252dda3csi15655690pfu.87.2023.07.04.23.59.32; Tue, 04 Jul 2023 23:59:47 -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=fXRsYMXN; 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 S231503AbjGEGyB (ORCPT + 99 others); Wed, 5 Jul 2023 02:54:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbjGEGx7 (ORCPT ); Wed, 5 Jul 2023 02:53:59 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2139.outbound.protection.outlook.com [40.107.117.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD59A19B2; Tue, 4 Jul 2023 23:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aO/KBHzNhPZtWvAkY4ehi3YypQI2frnqPW+B32PxG9eXsHZwEwcHzZJRlqzivPQl3KYV6f53/zSV6mwpTD+gmKXyRymL7NXuAI51tyHvwaG77dMqHi+rCcQ7iiaQ+Xb1P7Q92Rk4nZVFnUgKQO2gi9n9FBqok+6eWSgCAVvyB3unXc5oKIkBlboUyWn0G4XkgyiwUnY3MZBZsF7hM5nO0U+Cux7KYFo8+UQt37lb6cj/erNyjbIXJddWCY4V1rjnRBu9d/e6HD5qSisCSs6WwseI7f/fKAN2LdVIpReEPpMquIDq9YQV0ciDih2oA5xOdXq8NA1xCsHagcJ8hANkNw== 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=Hvl6rkn1t/msRsA8K9IQ3QzUxNkY6oDygpIzKxnBh/w=; b=O6TbmTtIU4kFbbViRxtSGSbTfvzBd5Q1veDKcqjm/av9S+NAjCjsaHGW+vGVwnOL45/elp3Zs+CC+oqmlCJKZ0ifVuRh2uqPAwIF8oOrDD85LplfMbLheQlhNeAW9+IO9GRTPCbpRHwjPlRIQiAXVTtdE/kDK6UZSKN4AzoJfvI2hhkERhTvYZmDZLuV5m4AXNzUxXzPhejOOtCF8onLAHvluMZ8DN36Q4UrApb05NybEttgtHbeT2Ls99sGzB6nDDzAH2yTT9K6B5Lz+8pyFsqdPRlPOiFyCIBpib06fuWORDi1xenncsrREyMG5XqLUPHKiu3KUsHAnMtIadI8hA== 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=Hvl6rkn1t/msRsA8K9IQ3QzUxNkY6oDygpIzKxnBh/w=; b=fXRsYMXNyyPqsMzU6syfNS1s73sPR9oy+bNYun4tBB/d7Ol9yRYgkuhTHKJf77efmGWPtUNBneJDvZifce9RFFkPvNIGBLAy0n00oYByyh1MuvQcJcSK73tnl5S6pN0wz5a/BZLywCku3WefbMGrb4V55eFyRDgFvQWfwUxUBiWAxfKH8Ny6XButGaSLhvZ8d8OlKUv7Qklo06D6hqpXKc5CZl0LDBCX+Cj96P+4/djGVsD4zDvsWK5FWitC3WRANYdTkKtI8pmhat2LMR80qz1e6zJXmKdAENp+SJGGYfIIMgEu17i8Uy+Z/wFEIas6a/g99iEDHga6kBXDNuNGVw== 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 SEZPR06MB6087.apcprd06.prod.outlook.com (2603:1096:101:e7::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Wed, 5 Jul 2023 06:53:25 +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; Wed, 5 Jul 2023 06:53:25 +0000 From: Yangtao Li To: =?utf-8?q?Emilio_L=C3=B3pez?= , Michael Turquette , Stephen Boyd , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Yangtao Li , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource() Date: Wed, 5 Jul 2023 14:53:01 +0800 Message-Id: <20230705065313.67043-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB6087:EE_ X-MS-Office365-Filtering-Correlation-Id: 65a9b422-743a-4f78-6ea5-08db7d24877b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QmTq1ucWiEQ6HMkhdIeVo0tMq7pi8GzNINjX8EIbzmSCD0NbAQ0LIbI0CJQRaE1rINIwwXhgr4j0SQf4qQP+WjtLDtT82mOy96HDjhENrgznf+cw9Sq7lWmFYSVASomq5ct4iaz4hsJcP7w/0WMtQd0q81lE1IC27Jrxp0kzmzfH2uIxoJtClo0YxeIn/UDJp82p32ucLssTasxcaDDw9qBEBZensfhVXf3cD+Oi8qBt6SoAgW6WKPH7nJ58nwiDoH9zyX9irCyV5BgCTMq52YkJ8rOCcZZ2gd0jUowHaQNtoAPw2t5ARvMRdM8q17eB0YSqQCQ60dBn50O2jD+rT6OSaRl6kqR5zulMm5UG3Z5YLq3fjskWnGbqw4XuNIt2QvijALQ4S2NXiRFuT6copBTdBvQ3ajB6i/aVSXW/b2giXO562PLzDlGla1LBTXrMsfwP8vSB8+XRF1LR+V4o5zpfhEIzhuSecJdhAnQWM8HqMkCLqzuIK4k+7SfSzgBFk+FhzuPrABlq3x9Jl+nynn+AFuBYSbewXxwHolfQN79TBwPtaYgmn42hSyMiyzKMYsovZdpzSDIMS14n7IBNVLPNoeDe+FCrVplP0PqbYq98rqZr8yXkXhY+2BhFS8QZ 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)(39860400002)(346002)(376002)(396003)(366004)(136003)(451199021)(41300700001)(38100700002)(6666004)(52116002)(38350700002)(83380400001)(2616005)(186003)(6506007)(1076003)(6512007)(86362001)(6486002)(110136005)(316002)(478600001)(66946007)(36756003)(66556008)(66476007)(4326008)(8936002)(8676002)(26005)(7416002)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: X9UhMBKXtmgxrBGfjJxZURKYmbJACKnwQdTmD5AL9QhsuRXR3rMs44NlCiZHciS9d0rDc/VN7wppv2x+dD6f528+bm2e6L7gLEdm9qi2k/iELvUP6Y+ontfeKYuF/LZGiWzmj+Xl1POwKQKuNMjXZPKKyY1etS2mRsbNoj+P3I/rUdI9D9FtCJEBhrRbyqGLqTVzP4FnwkL7a10uWgsnmlLouA8b2A82ZC/UFUaFJw6TbG1z/dKYMwv/clYRt4I/uYm7E3jv+9Zi+SVzgnqLncTdyVMuyaG/ntqHpgOSh+WhyrmtppncYk9Q1lsyOcN5b1Zu9BytmAoIt76XHqZrb6YC7cy+7nwggAr7zTqUOBy2Oxgnw/xhEMoHrAFnaAIRxL5Yw3ZJ9V2lgG6OsK9icWinoKhP+nmHfKVFicMy0f01YrH/nOpiGou4vjmTxm5COC+Rcmne/kjY0nitc+5pKc/HAcXxys+iM6eSCpXJdP1M90DDWwE0JttrJOyuMtIa0DYuzhGKp7jkMhvFwR/EUGU58OZln/jKoNoU3s2bJyApNuPSjR5Z9oK+ET9bE6hWgEtLMfycAFSsphRXnzWHXvmBZaTvINYAYe2mXy6b0QsehZ+nu+HMO5VeOeIuGWnZRsNdAbwuc2Gv6i506mOFV3M8TeV+3UPMP/kahxM3GBOGHPMYWpDTRoBBiqf9xDHfvfBXkuTxEDba28OdVWGS0y5nxSKchGWmxu7+UUR3FwBcWCxQ0ComJOD5dHfrXnOO3RlZpZ8N/oMoLE8JNORlWThE3b+z/5LQ+e/Fd5SsmxgETtDucajtBX4aReZgs4zCTeE9KGG5BQJHsx1p3xFm297KmDgeZIYq2+gnhU3/sa0bdLIKnbLXZBJ7rqyuo8jE2uxaWySr0mf51OGa4CO6OzZWGCZ7FGWm892p0sImXzvEpfsLNT2x/8do7UE0fo11F3DtbiJTGRkgzz/za1x22I8X0hLQtgq7oTKANujN3C3AjIjNlkVgwRFBBT0CR9gjNyqNd1joSUjreBO+wgRNz2xDSvkVtIX0Qqq5ua6s0PIuvnrjTBTx+p+SghRaJWqnOJLjp99Or/MHgI7Mg/8UzXaTZInfZ41OvfYX7FFEfnXFJC/dytSdo69HKe80EFfPzHaQdpo4xL/A/3DJTXdtLg1bBPXzXFkvI3l3gU5eQBmaFK+7fiT9BKsH7zSWaMkVcdIuP1ZNvSXXEY0oKR+Oi0YfvUX9FE/X5/8O+GuRL5p+rP1zU4OlEjIdndeCUzSdeGOwgGZ0DbbRGjXw1sf72LEPHLNvDLiY65Bk8I4H8u46aw5qpYH4rmf6/bMx6rlzdwu5AVRZet2E71evERvv3yEWF95h6i1HL02ss2aGzBcy4LjQJXrRcFiOHN2sQPuDBrop5IhyCG3yAE4o0cLm8yiZ7huHQGnUZjNLYqjQ9NOVTlu9f2jWm0V2FjT2L42R9SbUaErgzPMBxiB5WU24A0J4156WpT4xP8Xf8T3jcMF6pP2BoRhXPmq27ZRDvNs54KgexpnFz00JfijhUbUf4YBmj+pdUs1a//kMZTsuFBLInIYk4csaMA5qyD2d3rqF X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 65a9b422-743a-4f78-6ea5-08db7d24877b X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 06:53:25.0815 (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: tky/xn9tS44mDpdSs/wdp08UhfjaeVtGgDK9WYxw+4wIuAjDul8pc3OYqGqkD/95p9UWXK8y/T3XskPbcyMW7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6087 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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?1770562925543141320?= X-GMAIL-MSGID: =?utf-8?q?1770562925543141320?= 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 Acked-by: Jernej Skrabec --- drivers/clk/sunxi/clk-sun9i-mmc.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/clk/sunxi/clk-sun9i-mmc.c b/drivers/clk/sunxi/clk-sun9i-mmc.c index 636bcf2439ef..0862b02b1ed4 100644 --- a/drivers/clk/sunxi/clk-sun9i-mmc.c +++ b/drivers/clk/sunxi/clk-sun9i-mmc.c @@ -108,15 +108,13 @@ static int sun9i_a80_mmc_config_clk_probe(struct platform_device *pdev) spin_lock_init(&data->lock); - r = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!r) - return -EINVAL; - /* one clock/reset pair per word */ - count = DIV_ROUND_UP((resource_size(r)), SUN9I_MMC_WIDTH); - data->membase = devm_ioremap_resource(&pdev->dev, r); + data->membase = devm_platform_get_and_ioremap_resource(pdev, 0, &r); if (IS_ERR(data->membase)) return PTR_ERR(data->membase); + /* one clock/reset pair per word */ + count = DIV_ROUND_UP((resource_size(r)), SUN9I_MMC_WIDTH); + clk_data = &data->clk_data; clk_data->clk_num = count; clk_data->clks = devm_kcalloc(&pdev->dev, count, sizeof(struct clk *), From patchwork Wed Jul 5 06:53:02 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: 115978 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1686601vqx; Wed, 5 Jul 2023 00:18:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlGfgcBfDo96+tK8ASQKxVAC6Qcif9xNutfxwA7uZ4JO4oltcfE9OPxzt+j1g5dvzE5pq0v9 X-Received: by 2002:a17:902:e5c1:b0:1b8:6cac:ffe8 with SMTP id u1-20020a170902e5c100b001b86cacffe8mr19243777plf.51.1688541511889; Wed, 05 Jul 2023 00:18:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688541511; cv=pass; d=google.com; s=arc-20160816; b=iRve/tPVt3P/XtWO0hrDvJEgRx9aiD9S5EKCUf50Er32wjMg2fQxWw3mbTuQeGV5zF vKRS3HfMLRVQ+t3voQKMI+lNHQNDplNVGkXpGf7+iZ3grz/fmj5uPsQ5CSzM1RJjNag2 J98KJklDyH8m1WSyMGCC0E8PQaZxesw0HxtPR7oPEafdtULs+P9GvFKRi+cy7EWZ1k0u c3pXpTrl3m3feeYZJtnrgRkuM1A5tz+/X20/IZtLeubJdqmU36sCXg5HdFDck4fBNxB9 U8C98Xbm6LAQYGS4nS8WAy9edojHz+juKg7fE9hf4/k+Stll6g9d25fFx5O7/RQuSPpR FDFg== 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=Zf8dpvwvqfrZzajiCc5RZs00ZJmeVYtXcalY4ODQMq8=; fh=842lK49kgIuAvgmkfLahJuNAQWCW5HJKKTwcPgpFe7U=; b=IKkIyTg6ZRQi3rbgqTWtj2me8kunCxAChWZMlMXkdvHl58Ks5egQVOBk0B02kZ0STa cbUGN2436ygRSGhOJBnCQhr1VrxU4mmwC+DCx9PwbazyYVR2nYEa/hEuPLaXHCnO4ccg 65Sn+aP2je1DcDEjQ2ow/iEMaEgVkyCXX0wxFcLLH3FRQ992XQxrsJW6Joi7ylFmFQoV GVQ4GFK5YW88gws49TvIiT4ctFZK3vnWtvH+pIvuPiyHdxM5rlVM/U6NIYC+E7+WUVEo li6uYYxIpC33YDCaEwMn/6OP+lQnQIzsHmC5oqhGVkGCP/4Wu8MiPm4JPriPrBmlpHAA cRBg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=CRXfqSgW; 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 w16-20020a170902e89000b001b81a112f9bsi17571413plg.586.2023.07.05.00.18.17; Wed, 05 Jul 2023 00:18:31 -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=CRXfqSgW; 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 S231882AbjGEGyP (ORCPT + 99 others); Wed, 5 Jul 2023 02:54:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231733AbjGEGyM (ORCPT ); Wed, 5 Jul 2023 02:54:12 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2122.outbound.protection.outlook.com [40.107.117.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F141A172A; Tue, 4 Jul 2023 23:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mSODXvgE16jECBuNQxNvlJ6IzLn/M2Ecw5JLoviLz4W5KX4vupcghYvSFbpqg12BwMIiu0o9lAo/ST8AMOxawLjZbPx68ObWb/q3+bDtdEpy6GauQgEo5gfk+I6xctbDYvPNiEmu1QYsx2F+4dXMUwBxGbBJiph75u9m4a3egAvL3Yjnv6JF9NyXdD1XgO8ZqSti5N8V+puAg7yglLIpPkIj+net4GcYgYCUrnp9luTcMRKp4kEvU1gGz59EgmQ//d/QdVy86o4FUDWwjVRWEBhNP+5ni01Gmx5TRwPHX8Hev75MRu20m3jRcFLKG3sGQH548H0V24bDwN4cjQU2rA== 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=Zf8dpvwvqfrZzajiCc5RZs00ZJmeVYtXcalY4ODQMq8=; b=d8K45VbLhUpgLnY2sXE+Fk1cDwLkIK6AgRIFemO6M8VmCxe0CIWl5enX5t2d0lQry2r1p+S2ClVeL/MGVMPwApqzsrxy4X2b38z0Lxs9s2+JLMjaXlLemsc1obHySM+wCRT3kA2LjGeXOENT5LXtLukIwWTXr+Ei5VB62SRzdG4JqCcdT6GDOZEKDDvhuD1h5V46W83qrJQ6qalYTdTlBcmA4+TJrj72m2+jXpVQ/GYrf1PLml8KIozmdseB2pTl+PNnqSUvKFQQrPew2gFsj1fVypa5yBW3Q6EIjLbfNbJ8EnnP1RdBVfEw2KXXXzj5CyGAMS26DXCbcCVRtD4wkw== 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=Zf8dpvwvqfrZzajiCc5RZs00ZJmeVYtXcalY4ODQMq8=; b=CRXfqSgWtvNDo2nzAW27S9ikSgVf2hGmnFNIhcKttTGe9jn0BIEJGOxdNDMnwIStbV9/R6HyDkJ/xVEhJWXQgPYjFPpO0mcYf1AapSX+XLIjWBs0my9dhPLJ+QBLaSzfqTMCev951eIGiw4er1mdyWa76/p8LC3O6aHlPyYs59qz9qdVRbe1H6ekz6c8mczMohQlDsX9M8nAV+uaq3v5pclzZ52zRzOv6PDUvcIDI7EdyaXg/kRuEFn/3DYKLCjPWLOxebZR3pdDGCCTlD6z3PFqJrSYManBXQoZi/yZX4HRRjd6JSnKDnXOxRudIefu/Hz9VEDbDeeDSb4Mr9aGXQ== 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 SEZPR06MB6087.apcprd06.prod.outlook.com (2603:1096:101:e7::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Wed, 5 Jul 2023 06:53:27 +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; Wed, 5 Jul 2023 06:53:27 +0000 From: Yangtao Li To: Michael Turquette , Stephen Boyd , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam Cc: Yangtao Li , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/13] clk: actions: Convert to devm_platform_ioremap_resource() Date: Wed, 5 Jul 2023 14:53:02 +0800 Message-Id: <20230705065313.67043-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705065313.67043-1-frank.li@vivo.com> References: <20230705065313.67043-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB6087:EE_ X-MS-Office365-Filtering-Correlation-Id: 072dfb23-713a-43ac-722c-08db7d2488f6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FjyWjWlq5z2R/c0QkUJUQXAMydKcKiZt2X2SQWLl9qkuzmBefnlvSayxqgXDrY8KoJQTpv3PxkKqczolzAm2jWRWpU803SoUMMZ0iwXNqjBn5dHRlhU4eBlf3M400ef8W4Jl515pgmI1Ohv21+FDkBn7rmGbZ7vumD5T54CGYPWt6KclPLaPTzcw5N4iitjozT1zgplQkn+YvOrtltcYxBCi1aqqsw3GRWeWCj7Wb0PRFGvOxKUNc32gPaNl2X4XzaeDo+gqa535JB84BURpl8S+BTHGcVDR6V8AADVxdqoA0MKaJ74AjdZEjw4XV1G0An/pgznaWAu6re2uG8nEF7G7CosRD+MhSrTzwL32nCdNnZA6pjkoB3AhAy95yil815LvPRRbAhoT7WukP1E7U/v9jrklcxNq352bxJDG1MBDk/D8gCWviI4xUjYCiMHW58DSHOABUpnJgP2TJGdc9SEmJz+HiTNZ3iBqbmVUd6/p0CoQiojaLai1VHelXs/UakUDSGd1ysfExQlEpXT2MTNEsYkWeKWEAXUTX4XOrCovOJ9iYCKeT1p0+wmO4SEHf2Fm7onBRLuHVClovkq78N+N8s7UbYHv804omQ+9qcajHtJezrp+EKYBfxgAP6H7 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)(39860400002)(346002)(376002)(396003)(366004)(136003)(451199021)(41300700001)(38100700002)(4744005)(6666004)(52116002)(38350700002)(83380400001)(2616005)(186003)(6506007)(1076003)(6512007)(86362001)(6486002)(110136005)(316002)(478600001)(66946007)(36756003)(66556008)(66476007)(4326008)(8936002)(8676002)(26005)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WullGIkrpb8lAIvTxQC3v1jdGrtWKYYxlBxC+XK4LF3jemWiTiHfIGvascbRdJl+J+zeis7fQvH/hIr/Jpb4c7/lqfRAizaEhya0BZkiG8DA6y6J/ACXw8W5m0G5lPehWMUNrLh+IPh6XKwu/OoXDbyBzNn1syH4IvS9KuOzldlOCGPDbfFYm4IrcLppzgwZYcvxXLqmTIl/fZq9ERVBroD69wPYNDc7CM/bKFZx4WkP2KinBF6lrKt2Z6Dtro6q2FGdHZfulqVbvvSu0mXO6xTiSG1wC0K74hL56SO+3JexmEJCqV6gRAqIkIRZElxQmg9h8Z7D/mnlLKzEblXk+m5CU4e0PqEyxASr23pezQD/b+JEEsdI2zvM6buCxwL7FynLhadQpEa4X/u3YvoGNeD9g4uMllDxrFddt74fqyvsysZngg6chK7oYuge46YHfSDJ2vaB8iH1CxiIMBKkpovrxWzuPcO+ffC0ZU664hoHacB6bL4M/EEpvnBGjkC2u82qtvwL0S4JbX48o1jRjyA9M8l/N90okaDbhY10cmUGnx9MWpKub5l8RS3jCh29LuFudN3RzYWoV4Ed+KdnFkrh3VXdUkaqRSakYn6tHK/r+4u97RvTGeK0UeY3hfOvd/i8Z2Tmei2FgYNe4VSiUfvHtN8lAJbNf86lznYwq8fqtS1WywHccFudwvEnN8f74h26XAN7JAb+aG0UqS7vfgZAFK7GwgG3JgQk+6hvD339gtVH7xv3R6NHE5Xv+bMbCMWjNCcE3IQzQLa3bDoI294WWjKGUgmAeyqHOMXD7tLzhB6GG/FYS/9UvTPMoqxZXg3X+V65bdIAXGRycP9yKaIdWGXuHiAhr79oXI+MfSU8nh/zGVn4RBCXh/WhCkvcxMBoaWnA3MIDPgV6BAWeBRARQHdni+nJayu0PGLwfpqgL5tXo+JkYZAs+AJ1+9DH5H0It6PrhN9pMzjHQK//+0ERU72y8MqyRwFpoqu8OLVAaUtcsoTM69d+1XvqqPmkHamSAe8qO77pz+5nP8qzI+BJXUrVllpdP0qYZCasntUXrnLenAkDNgC2yX9Apiuxu4xoN0epVV47r3HRz376VBGAqWSecl9YeB38sura0n/0hYb8N5UOi5cJRW13LDSZDLXlLPg87cS0GmPtSr/rlUZjChA0h7B59DllV3tEZrmL0SNd4DUQ8gMTQIs91YOnLJpemmWw328CM8OZ9+sEpknfb86dgUMwlCZeToONPeB2+Oa6p6A81qioLKmwy9sEPqWSRJ1iPKCrjIpsZybuATyoVcWXVbP5G5ZLEQJ3HzggNS7EPQJl58rqHXm1bGeu4UDYWdMP7uTrOW+6jle8ie3hdl1YObXhivBuNACS8QlI0KmB7uoKUZI+EJXp2vO6z5Z+bmGgLXUSyXPBY+O4MNxDgHeK3IujTcPKdXoWU7wMFZudnsmODKr/bY618OuN1g86dr3Lmc2BpEQMquwIBLXHARvjuyXQ6fy6+Gi+sb2WCiiqb74vTpNxTxK7E5pvK0kw8PsDsMA0a8WMMXrom8SEgNpkh7G73S3wDH+TWJ6CyqBHsMhyoFyfs1YIe1Jv X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 072dfb23-713a-43ac-722c-08db7d2488f6 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 06:53:27.5561 (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: nPFz8gzvpob9bAWwYK6+1ViG0WG4RfOceybdKfVXwLzJuM9KsF8EWauvdpIEG1PQHyEmYK0Nesvy7J/uenhkGA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6087 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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?1770564104294587790?= X-GMAIL-MSGID: =?utf-8?q?1770564104294587790?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/clk/actions/owl-common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/actions/owl-common.c b/drivers/clk/actions/owl-common.c index 4de97cc7cb54..9e98e8a92ad7 100644 --- a/drivers/clk/actions/owl-common.c +++ b/drivers/clk/actions/owl-common.c @@ -43,10 +43,8 @@ int owl_clk_regmap_init(struct platform_device *pdev, { void __iomem *base; struct regmap *regmap; - struct resource *res; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); From patchwork Wed Jul 5 06:53:03 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: 115968 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1681223vqx; Wed, 5 Jul 2023 00:05:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlHCxKGHepOoX+r18FBwIZhnFpMqBJxPCuK3qcH5WjgzFlV6nqlxI8J/g6Ph28MAbD/r2kOr X-Received: by 2002:a17:902:d4c7:b0:1b8:2ba0:c9c0 with SMTP id o7-20020a170902d4c700b001b82ba0c9c0mr13429114plg.59.1688540758000; Wed, 05 Jul 2023 00:05:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688540757; cv=pass; d=google.com; s=arc-20160816; b=NPDJgJm8KoIGENDzyaq3Hqhy+MIzFf485pV/t70fVDQKEhTmX/8F+sZri46kIFGhy4 SFHahGI40picb/fEC+FviMAiKWgZwIbcNcYqnViuDWL55hnLd5W2aX89JNb5M47SYJgu dlasPVOTvzeATjmafsGbqCKTuPZbT3xi0uS8g1ljoIHxPkYXgVcXuBHspq7UCLZH+cND qERddlVnpWyQHtV9zF2i8axHkgpNOQxD4GB8iAvm+QRQU0rqysN8jrP5DD5k0AhpNF3A cySoT1wk7jkCoHl9OswrYdYVZklIMGL9PvY6/STAtalDzZYHHH9y6G9t1KkV0O/4s5vk F9bA== 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=Fj9rqVQCNo5ZpAW2exUoHf2IL2rvhv/KYMOJ/LgeDMM=; fh=+lmNP1vWWO56pWQCpN/YvAFtB/VqgjP1iPhHM2l1J1E=; b=u24DZnRPlibmCWjBfCENEM3+KGoZyw+dCx7SPiiXZ8h5iHr/4thWAuawQsAFRzW0hm MBgLDha2GFScJYlQmGEp/l0ntkzwVinV6Imq64rHNHf42hhII97vZcLPY6MgoXAugtTJ 7nLhKcs5BXsD/BO2wa4FMcDBRsIFordEmKI2WXBb59HgEpYyzvcSF3qbwO3l7KXZQkBX mCbNCpcRISmnl3zA6tef4LlT3Vx+vQko/DUWWqGb33bV0Je0Av7Mr2U4r3cypXUBLO0B ovOGo5sraYb7UAxPWjOPs/T6u1ap7+uKwfpWcTM5oGzpGGu+8NZyFSi12pmgy5H+kG7r sMyQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=nXbaEy8Q; 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 e19-20020a170902f1d300b001b85c86f785si11376697plc.87.2023.07.05.00.05.43; Wed, 05 Jul 2023 00:05:57 -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=nXbaEy8Q; 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 S231958AbjGEGyY (ORCPT + 99 others); Wed, 5 Jul 2023 02:54:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231825AbjGEGyN (ORCPT ); Wed, 5 Jul 2023 02:54:13 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2139.outbound.protection.outlook.com [40.107.117.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD2741731; Tue, 4 Jul 2023 23:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=izVxK0zlyPE5flV/5a0OyERcWpAKuOjfLYHm6AemY6Wv+p54CeZ42lATlwpneLjFTTVEuYKoNCYzkQii+0v3FVvmLP2V1/S8bEUYnouBFnKKq4yfR5VOs5qEFHhe0Vcjl2M3Il/4GXpCL5NJKbIPAx0KCnYLQaMFT/rr2FBuOIRlUkMDl1dPUiVT+hRUJQap5Cn+1GUjMu7IzZevim3I4nJ/CcTB+VhP0jD66Hw6seC0UiPABABBpuREk8aENxR/qZQe6hzozVvkfOFntchZRaDEjwBa6AB582yN6Zafq0vd5vYc56eh7OY4B2mCZZ2Nf7FWaGezExYEZK/9zFrVGA== 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=Fj9rqVQCNo5ZpAW2exUoHf2IL2rvhv/KYMOJ/LgeDMM=; b=A/htToCjZLw+qLUpdmV3twQ9OwRZqMJN6PDjc9DD/DVA+q9WKyIXEh9f2v1N6fTZwYxiCEGrGTL0Eao71FHCiZywznAFhdf4U/zGRm/n9vasKDZm5LtiOPpgcfZ/WxLzmNEGZMPfP+1hOf7DweDFjh5U6tlGGzqhObwH5h7DfIbsglpwRHm0OVRb0M5MYFB9CuaAeZ5IR7GE3vu9ynkBzZMpXwrpVqrCNtaCh6BAS7g6Af1if9gNAhehQ5DB6LRN1S7MfYPUVzyttRjKr1+fCZyQIEDHGdOw5Ab6o3u+fXu4i+JpssRaPA+TYh9ONVdDRwUKnwyCj9bsQLxLiM7VeQ== 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=Fj9rqVQCNo5ZpAW2exUoHf2IL2rvhv/KYMOJ/LgeDMM=; b=nXbaEy8QL2SVZMMjCBGQAIoLJA2VPfu76assKoX6BNxbmwJmtdxA9BnAo2hAAAgRy64y+txTH6+lULSinNR76G8+8wLviyFSG3Lj4g6oRZV1cTBut5CDbjnCYfvcIaeXPrDDMRTnVm1BDNxYUunenGNljVa3i+jG3VEqG7aGaOuXEZ9E5eDeWfIBBhb3Fh67URrpiO5zcbcedavyd4eVN4tEiEL2L+CKGRPLEZm8wRJ4G1ewa31hL0h+qCipyhWUIXi70xkXBfUp2/YRmkgrarMELyhg9uWxWKBISLj+rVKHnyR73DjCRpJfWxr48pHMTwdSj8HVY1m4SXOMisjDwA== 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 SEZPR06MB6087.apcprd06.prod.outlook.com (2603:1096:101:e7::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Wed, 5 Jul 2023 06:53:29 +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; Wed, 5 Jul 2023 06:53:29 +0000 From: Yangtao Li To: Michael Turquette , Stephen Boyd Cc: Yangtao Li , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/13] clk: axm5516: Convert to devm_platform_ioremap_resource() Date: Wed, 5 Jul 2023 14:53:03 +0800 Message-Id: <20230705065313.67043-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705065313.67043-1-frank.li@vivo.com> References: <20230705065313.67043-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB6087:EE_ X-MS-Office365-Filtering-Correlation-Id: 834d2f7e-2c9c-4f29-e0cb-08db7d248a16 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LlOrBhMZdcExNQ4+u3KJp1beEb44eiCdByBNJrmolnyqlSmKZk93RyzCVD9/G0tS7OZ5ou+DsL0/OeSI0nTnmb7yZPX/yZWmxFgJ2R2eKDzSwyPzt9u1JLLKUlftN7g1LsVh6k/uLQYZfCis3WLbdGukb5Ak/zqgu4V/dJmvDLG7gUwd9kojNqZ2tI2H/cFYpA62K+1HztTn01dSP4u0rzd713m9vr+k5rDaa9Yv/2om3BTdPATpE+YUDYTWR2QmWd39V4+wC9PBHn3M0WMu6RDIYlvhgUulu5F0wOY6tBPzXlbKchTPlfDBpRuWQ4TnRPpRQaeHtUxLeLzOK6xlINlFpavelfTZhr2W1g8GmX1Iot0Hx0j5r/q6NmqkYZKt1x+qWlCHC2wQ66xC+S5rf96U2kYS0QMFWHxzFhF20PxqkvC1UHbBHvV3XLSJNsTQjcJ/HrTagQ/ERG5uYp2H4+a4R2n06KFsFylLMmAZIZCNVyf7ASKhJm9l078tgUKBNoT/2FCWT2p9onCv6ItQeiBikNLmrVFrBPvlGp9qKolsubKYm6pEP/LyLCCqlj5A7C5XpkAk38y9uq1mKJPfdw5S4ysoa4umE9seEIlPXXRphUS2CmrWufNd3jnzRnQr 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)(39860400002)(346002)(376002)(396003)(366004)(136003)(451199021)(41300700001)(38100700002)(4744005)(6666004)(52116002)(38350700002)(83380400001)(2616005)(186003)(6506007)(1076003)(6512007)(86362001)(6486002)(110136005)(316002)(478600001)(66946007)(36756003)(66556008)(66476007)(4326008)(8936002)(8676002)(26005)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +9bzcZFM6d9oN6szLYuoThFjXIuhiqTcQuHYhzuNjd+TTYnjwyGUnoZFd15nIY33qvkrwr9tE6kPF3aDl17RuJdMeE316hwY3D9khmT5TZXK+TqM1hIIT3wjZoMAnYEgVWnhZtEYIliuh9Q7QORt1rOHbCvSJvgyYQ/KoY4qUWXxkpschMeMsaTz+T5abAbRI4VGv3XO5KXoaJNYCuOnOfNP0OSjK0Z9cj4DEpjgdhBBqxWJKOQwy/5nqmQB/riH67pMsOA8TgtOjQvqXIHnMltYS25vo9cO/u/WfqhJl+OPK/YUWLi81k1mw77MEmtX8lVosexIq8zrKQIIyxfxqnxQVlUKGeiGxVh++hbyxsqR8NyqzP2nuU8a4JwKUb1XY5ihHXcfxnxKoy6EZgR1tkQmymFOJB6XblRSOKTK9OG8J/nu633y89DlMXuoZVzFhlcwfWk0WwQuzoPFEL+kGuDtskaAXudXATY8nVJPiGAacvA7Hdd8cSG3+m+OF5SF+YeJOJmZYMo1XtUR2+teeBCcuL0ZeIRwEi22H3HcIqIxxmVVgxz/+0gvgxR4wlANH6cDjFJJu5T7RdzgVgTthV7XSlnlvv5OUp2CRA4gLHxP+wuJGHgwFsUJY0hv7BD0lGXh9+Mbv5+IwCx5tWCSPBBQtV6Mkq0R/gZu/TaklNYGCLWRkh07dKxX4C6QlITIxUF1wNmX70OZkCNGeIhh9wodxiELR2KdUurwOla2uim0VAAxunSMKWJ7wAyApe6VEGOYr7V5mjxFLtdErVlmUEV0lzfrhrGTB7zXdSBNSYTKFJ9TuNAGa1fXXPU1T9v26KR7z5Wr7Gg+j4skLNhsbBBQiO4nLu/CBPb4IZ/2u/A2R2MbuqIphIVfe+zkYioY+vmeFQ/p4YKVJH0ohbup3HNPFdM3/Wn6aI/rqxBt18xdofcEQa8YqY3JY3Ou10H/CT03woWkteNnT1hYtpX8x7jfNoE4jn9r4z+30fxymt9VMvRPQc569awlH8NHLsyJ3gcqtaa+ZS3zBVHL+TOCeVnDP+FY55GwNU6Nl8fNqNU3WgfH5MG94TVqUBO35lXf5zI+GZ9VCWZn7dTt0ic46831IT0SjY3lA1ZYB7vgOyHFeSEsPyAgKUxK28h38tPqbVstsiScLW8Bs+doRiakI4qfqP9Bgl9RdIq+zIRdb5unnG50OtuVHacR2FwxX1If+MC9UZw5vrMQbuz36RzYt32pTNL73piu0zZDGkQqjbOQHdz5Eonjg54PK0fbQPSIpo/w9yb4wlIkdBVxTCfmHWezhSTN7wrPixd81DYVkIAoHW+UPmh8Y26eqy4Za1bPPSfVU661+cXfuokl5LgO+B7Pu51waf7KPTkb6ue4Z4tDLP2rUPEUYmunKZIVGso/4ivvg2nkiJFYgxi5etl+HISnfJCa4SzYf/986PISL6u8d+rQnJNh5feN45H4AcI1pH6s6bvvWucIA6JML1E0IjGzQEHqVdk5GRCFx8dTgkkVHYQMCoCoXvHzKW0RiegwtJvFuNWVgx02hJPpgPp3tg3Wnz/nfv7NrXMTe4a1efnfH0cALv4B6JvBvAVyhUK2 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 834d2f7e-2c9c-4f29-e0cb-08db7d248a16 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 06:53:29.4217 (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: /8aLgJXWKSEk0/0Szoy7zHf/Wi70y6EomHmtYx0p+03C0CLKE7ugpXOEiC1Pm++2lRgp1TspnpNY89lI56VF8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6087 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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?1770563313515600444?= X-GMAIL-MSGID: =?utf-8?q?1770563313515600444?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/clk/clk-axm5516.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/clk-axm5516.c b/drivers/clk/clk-axm5516.c index 1afcfdf2e6f9..4a3462ee8f3e 100644 --- a/drivers/clk/clk-axm5516.c +++ b/drivers/clk/clk-axm5516.c @@ -541,14 +541,12 @@ MODULE_DEVICE_TABLE(of, axmclk_match_table); static int axmclk_probe(struct platform_device *pdev) { void __iomem *base; - struct resource *res; int i, ret; struct device *dev = &pdev->dev; struct regmap *regmap; size_t num_clks; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); From patchwork Wed Jul 5 06:53:04 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: 115981 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1690467vqx; Wed, 5 Jul 2023 00:28:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlH6ahhPb092ML62fNLmqLgFe+IY+cdNxEVfPYHcB45FeIdZRnkj6VGls0BUsBzO9GH/0ibu X-Received: by 2002:a17:903:2446:b0:1b8:a684:f73f with SMTP id l6-20020a170903244600b001b8a684f73fmr2363413pls.68.1688542139607; Wed, 05 Jul 2023 00:28:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688542139; cv=pass; d=google.com; s=arc-20160816; b=VYSQ+U/cQHrcF3Q+1JAt5jhDGFqjFdbx9V02qWyFjnUqtCVXBbC3KXTa/lovwkj2X+ wvd3G5wlx5kMcTcHi54iFERBm47bqlyeYQoCkSr9fL7liYd9CVgOKkVSrUsEGyBLOoz8 FC75xvXvbl7uJw/whGIgrxbdgG8yWwKFB6aFG6FnuPPfS8Axfa021Ene69qFa+hs6SAP +9cjLCAUd29yaFeIPa8Gdbp9ZY7i7p9C2QVdbAp7wEYojnM05l30FAlSl866ubqfzmPe yCwLAuKjkRdAJ/1meFXCOqadZxE2riRWa+YzTt/dm4TktJmllY/W723aqHDfQgQFfIJi efWA== 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=gbABw28bHcAgDi5TzlvCIupD6gWq8yQwR+DTbLa4a5k=; fh=FOFTl7aq2EHPSpnvuPlzai/qCCcK41g4wsUmKE7r6o0=; b=Lljl1y5GlN7dceDp8Aw9KzYgjnfndRZDVSZWlfpOrlZqYxECevalTHAInMrvg2lZXP fy0Z3q8rSkN3SW9oc7lyo23w+jlHG1qDm4mV9/SlWL8sZ+a1D6/wD5OaXoMIXPXQqL8M BekEqvxr2FRf1LiYgwEDP8IIghXL3+BzvWi9Iimn+9iAcNOIGEl6ccn9RgmntmIbOmzK yVDggZTMVbBVCiN4JpTP7MfQSACsp5Q/7Q9zemsQ+hIoAqWyyy4rkKg/uQqQq4h2JhKD j1jKECzCrDcqcP+4k4WDWBngukrONTMpMUQeGLiSIwt6vKotO0dRbzSGnGfgbnlxFQWQ 7iDg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=pmzVBSnW; 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 l10-20020a170903244a00b001b8b2cb7359si621578pls.627.2023.07.05.00.28.45; Wed, 05 Jul 2023 00:28:59 -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=pmzVBSnW; 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 S231964AbjGEGyj (ORCPT + 99 others); Wed, 5 Jul 2023 02:54:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231977AbjGEGya (ORCPT ); Wed, 5 Jul 2023 02:54:30 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2122.outbound.protection.outlook.com [40.107.117.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73515171B; Tue, 4 Jul 2023 23:54:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AZOYGwNczmiHrn1S7hOQ6l/t1I7h70YIVkPapBLbEeX8gbtD1WDUj3mF0+Ggc5q4gusD6zZi/k07n5jXaztw4hjN/6ktm8Pwqds1vDMhde2rMdoQXBEQ8YKXHDw/wVCwXTNZ7SQh1Htd1fqNhr4p5l5Gp6b3kzvmJ7Yzr2D/LfwzNSZr7fvlx3Cu8B2Rx7+rzwMgKZipfyLcnrcHqKUm8PAIi3zMd+VfSbfoTZOFZkrgeALmuzGFchvDIjTxrpamyWPoSHV3Jw2GnIFDYK3Q3VFUdLFLpiXevvju0JO7nb5FxabVj5Z55XrjWMAJG69FBr9yVD5wCjD1TU5zX1s3cA== 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=gbABw28bHcAgDi5TzlvCIupD6gWq8yQwR+DTbLa4a5k=; b=YDjPO3KeX/2zjfK6UV609132AzTaDdzKrhwJU8iVxzJz3u2qbRYEArYDMGgLL6iR7g8KCkvTqIMy3ZmslrafmXus7buQ8PSHZvI2AzNjH8pPsf5NlED6QtlJmHrR0/HhLgWL8+dnEpckR7s8GHj/JZ0+bV5vOOwsAVLXfCabsJE7y2bDTssGloyYqHRxnpFyuJLMEPnu1azaflV+T/mtVYQ+TN5vUtLIMeq+CShHt5cQFul7qYoMwmI9dWbAeSuB96f0TqxloEdqpba3Ap/DSwp1na1DByN6T0VNBPeTE4U65Ep5b35i3Bjl5nWnosC7iYgQ+nYSRifGXQD035qADg== 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=gbABw28bHcAgDi5TzlvCIupD6gWq8yQwR+DTbLa4a5k=; b=pmzVBSnWmjtpTGNMgYULU2+76cOubLIiwKhVLOE3LOklSeXTB1pS8tGgStVx9pkdYcg5muzW5sJBKDhOo7WNN8ajjTh9dbOYrY3LBXxRl9MDbe5+wVhS2FRC2XXkF8xCydd4M4VujtSv5JoeGJ3Iqyyj66iXRaNV8EfM+JjMQ0znIZnzUO745980Ra5620qoyRF9YNDCpjlzv1lPGbcJC2s9yt7CI7LY/VC5UT4LXEaYEgvw3NYfUvkYaMHhV4LRPnJUoU6vHt27tlIxHr7TI6j2MslS9DL5029seTVvUpWUewOXTEmMdKVqr7AsWQQvM5DnIcRG0y65RBRyzRUDUQ== 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 SEZPR06MB6087.apcprd06.prod.outlook.com (2603:1096:101:e7::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Wed, 5 Jul 2023 06:53:32 +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; Wed, 5 Jul 2023 06:53:32 +0000 From: Yangtao Li To: Manivannan Sadhasivam , Michael Turquette , Stephen Boyd Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/13] clk: bm1880: Convert to devm_platform_ioremap_resource() Date: Wed, 5 Jul 2023 14:53:04 +0800 Message-Id: <20230705065313.67043-4-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705065313.67043-1-frank.li@vivo.com> References: <20230705065313.67043-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB6087:EE_ X-MS-Office365-Filtering-Correlation-Id: a3ebd736-0e2d-4815-31e9-08db7d248ba0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: D0/OiwJBSxwD+6SbMec/dAZPBpURUEcKJ62q9bwh/qqfcBmwR7CF+9x1sgf16ktvHQeTiKMKHeteFjGekn7xSxAyR3kcQmL+ZFLP0y03QkHuLsCaM/mDgFmtWQ5J1LDgEyx0rtgsEcO/gC+ZpA9ncoasROXVeOQUXJEs0KGOL4Va7il+A3h18PBtnLJtiNb4Xwj7kca5VAqkrnQJ3ZSA54W0TtZ6AaEZH3TJ0OSFxv2MdtHYKG4S3cN2RUr2kGBgiWJEbIKohnSfz2HhtrhSaiRSQu7mNOTsLYwQvW56tDSrChfOwADZ8GOhbqUN4Rrq3T4+EGYCc5NjB37aG6UHihQIys4/+a/gL14MeFwexlG88awLEIaunMFVFYxqcYCVC5JeCjlZWQaCAnodbdT+cl8NNqxC2nnmxMgbHjRJjMehNLf63lsrAngX8K2Unu8iWNiym9zqwJ/jyM1WpVX+Y9WDSPCGZEDTfQZYPKB5BZEI4XsgzoXAfeDlVtXQs2eV6I5qUZ90iXIr4q/cf3srfkCFh5rEa9pJOkOL5l2ZgSDl3zRe+pUajpV/9H9MXTLocoiGzEwCxbJsyGcyhv4RHXzTeQp8fL01MFF6xDGQjLYLa/Vf3Vk+4LRk/rb1kMdI 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)(39860400002)(346002)(376002)(396003)(366004)(136003)(451199021)(41300700001)(38100700002)(6666004)(52116002)(38350700002)(83380400001)(2616005)(186003)(6506007)(1076003)(6512007)(86362001)(6486002)(110136005)(316002)(478600001)(66946007)(36756003)(66556008)(66476007)(4326008)(8936002)(8676002)(26005)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: rYg/fPMA9JtY5a80+hmT0DqmzGrfjXc/YoadkpAN8tKlWeCbcsBxmTI62eyQh76206/GvY6qan/Uc8GutfqfsBMtvqHp3pvnvlh53IRZGrDj6DDl0iaVF2UmjuNus6N6XY73U/rX8+p29FoxFgC7/mpTUWjHNz68B1m56t/zf67B0YS4miCHHiCct615NX7wO391nF8epxaK8srJ+mc5352xrgqENJkRsjjNN44UTNSxGA2QKbyAT+dS3PXXIw1OwGS4V1i07i88eNhz2f4p3YxynRXrmWUEbWlRpOE1M/cVFES2cOhlESh3az3y9CcGm977atR4lPBdqlXOJ6Sm2ght6l9U2bpzGWLS0x7ovrV1jlzZlKlG0T5s45mGP5OC5rPt2BZ6WNLyoiJVsrTsrX2h2OT3gXDAHGcV5TgWMV7dAjlsKrGq+IRM0Au8VF+o24Zp6A/VSRYXH3HSBX1z78SnFpqPgUm4WtF1Bbqe/4DzDTtQ8epdhGO1h/kVNXCHgt+hRK+BeiWWfITfeZx0FgYSlWKprUJeBKvQ5w0hjuNLFD18bA2cz0y6s2cMn53aYGEKDQ++Zz2oXhyPWInNqxWkLJXBijABgNUbV5DbDYQVHlhtI2XowxjTuOfrgj+vsfRhKfCmcvM83zVAkoCXtvu/h9jFhX4FOV0IN4hNhT6rv5x4F/HUV/p/VI+jVcDLNja0YnllRHXvUdNy5tlQh5rEDGATNopZnKZPuag9hTUTpM2xsc6Xh0l48cVQifDMxPMVbUpICGPEsugsFb/Il4mg0nljGUNE21SkOXeB3UK4vnqCZHrBU4GMutlcXd9o1K6uTqKlN0eWijAS7dwIPiHl1Ds0imBuBRcWM8/wXDCN4zdTyIJ5+sVc2ftRGWY3vFR2l+TCDhNSgnwBFZ0JD4NDnqOysXMed8DOyEXhu0TheJ/8yADVE+Xwb7p3c0gv2W4FyMC1NSQJWJQZJEiBcG18nVk5QWZxMsH6qP7dUB1hArUfu22rzKTx1/JPVWHTQiyxA8JemAgy0uVRFBSA0eJCyKr7+Y9JuYZ2tSnzkh0yB2W1RvvdNlopGcXbU76f74niOZsMSLzPuOyU8rvKcJG2FVIE9Ew7QQGGmFyqKImGNw/Y7iwPS2u1gtjYtsU8kAAFmNvV2KOJtaZv84ERAoYU80p0gpcfjy/aIAFs7HeyrYZJr0ckv9mw0rw69MD6FqRHeKpLGXFuEu5AADpZG4VYaUSX87KFnF7/oxIsi9Pzri7dTI708IyrefEw5xJ0cq1lXmVwmP9j8/l0tlE01gBBjr8AaRIvQopfUcXkl94+YqRt5oqrUpqRbBFWUxNYikNPFzwrUnYQljVyLoQxpOYVZsBtyV5sYDwQlLZMivf0AmRmyZw3FKt/p2NceRuaK3CYmJFGfFykjC2fLPO/SSwvtqv0Tcc8Nszrz8b24SuDgbGQL7DpkWMmyVJzMSdir/Ffh9XXYtQs0UFIXrOeaDIhYuV18+ob943nKW6tUpPV7Us6sdCoKhKf7UPQE7IVjzzxqKw6SFROvs+fGjBPeoOHsVG2mMDd5HYk66hUUegZfIOvf+KTi6D/2VVBxdv6 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3ebd736-0e2d-4815-31e9-08db7d248ba0 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 06:53:31.9920 (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: SambnBO2ttJ67ZesfRALT40AFBNw7QLJGwFq+GM01NwNDcV1xhEqToRZT2RQt4Kupq9Z4HgBZZOBFwhP+o0UTw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6087 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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?1770564762890209336?= X-GMAIL-MSGID: =?utf-8?q?1770564762890209336?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/clk/clk-bm1880.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/clk/clk-bm1880.c b/drivers/clk/clk-bm1880.c index 2a19e50fff68..a3814817ba86 100644 --- a/drivers/clk/clk-bm1880.c +++ b/drivers/clk/clk-bm1880.c @@ -876,16 +876,13 @@ static int bm1880_clk_probe(struct platform_device *pdev) struct bm1880_clock_data *clk_data; void __iomem *pll_base, *sys_base; struct device *dev = &pdev->dev; - struct resource *res; int num_clks, i; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - pll_base = devm_ioremap_resource(&pdev->dev, res); + pll_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(pll_base)) return PTR_ERR(pll_base); - res = platform_get_resource(pdev, IORESOURCE_MEM, 1); - sys_base = devm_ioremap_resource(&pdev->dev, res); + sys_base = devm_platform_ioremap_resource(pdev, 1); if (IS_ERR(sys_base)) return PTR_ERR(sys_base); From patchwork Wed Jul 5 06:53:05 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: 115967 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1681141vqx; Wed, 5 Jul 2023 00:05:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5vZwiI4pwoPhcB01md2SRwPY2N0d8l+nf2rqJkDeholzhyYNetRrVJdFl7oM6NPr7FeeW1 X-Received: by 2002:aca:2b02:0:b0:3a1:dc0d:f337 with SMTP id i2-20020aca2b02000000b003a1dc0df337mr11317329oik.45.1688540747248; Wed, 05 Jul 2023 00:05:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688540747; cv=pass; d=google.com; s=arc-20160816; b=szpOxRdu7+T8e4CkJlncVumEK9+9KIj/7WEXVFFY1AauwUUGpDRo662gfHi3KGcuNI wpBEB5nAIbHlkz7WXDIDi+nBve1vxflWZCqH18O8fmN+hQnIZaj/ass76Vrrky/XdSHr 68tzly77+mQxlCxyiYLToaTgcrog5lSfefaFhbdlmw6lo2E1hU/1W0qBvrW6KOKdsbpQ 9Z1Q/ECzMU7OCPe3pPtXyHhdFWZwz8VXSLgi4b+hzD2LuGjFFqggjjH7UMPwuHKY2sPp BGoPM0i0y5918aIcVPtD5PKUDZQ6QQz/TA39qhqrEfwD8sqwzW1bzCCkBHPgcpPX4Rcd 5xvQ== 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=8RDVdQLyhWYC3CAVbe/JAYa23nrvATFhWoc2jDkRfiY=; fh=+lmNP1vWWO56pWQCpN/YvAFtB/VqgjP1iPhHM2l1J1E=; b=l9/2VKJlm+Pb/4ALzFT32+kduX9nyWPnSmKVGoD50mJRIy7FBrtuoWEnwRaneToErV 79H0Y1aZdRQYULkEOllVD+UthPueueBMLBcJ/l+SNXtZW4Su4npcINpMWd6A+6ZiO0em YhNWIwied7bwN0pGbdJmfrMc6ZztCGT5Zj4P2YwbjERKbbt1J3ZiXi+RP1rAZHmC5CHz QD27pzUPbALh8tt82F711NZcCcosOzfyuRoKIWqOQPCXxboZpX7tLEtvWdwzKPieax+/ HOsn/la15G98drhup+hZBduGezn9TukFbffq/9xyxFnr9FD1fHRKYT3FsJMiNh6CBunp vFwg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=g7ncDPVB; 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 f13-20020a17090a638d00b0025e8b44763esi1056507pjj.59.2023.07.05.00.05.32; Wed, 05 Jul 2023 00:05:47 -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=g7ncDPVB; 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 S231938AbjGEGy5 (ORCPT + 99 others); Wed, 5 Jul 2023 02:54:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231918AbjGEGye (ORCPT ); Wed, 5 Jul 2023 02:54:34 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2139.outbound.protection.outlook.com [40.107.117.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE9351722; Tue, 4 Jul 2023 23:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=myiQgBRNNC+aVCrhOl4gpiCXxYKzeWmf5EZ4zoqeJxSQuycBRDQf+QojHI/r7K72GJOdZibVyPHqSIi5P39YtYSw2PplrD+ZZ/sOfqGy31M3zaVPok7gGxhFuIdkIOx8RlCSw8l3tNtD+LhYxwcm+4VM721MOfs8sn+oB7lqDnPVrRogvW8obofbvRDWlB7h9kO2ABtJ1l5eTH8Bt2U/CxKdDO3A8kI5dZ1Tw4TSX+aIcEmfPhKdgxXAK46nzl3yFUfZbG9psj/9OUoukOAtOsDcFgGVyw2jQwKNh/MFV/sguKVT9MxliWZNvhnOVzTmu2TbT+3+Yvx+60UdidE9xg== 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=8RDVdQLyhWYC3CAVbe/JAYa23nrvATFhWoc2jDkRfiY=; b=N5b9T4bGqdGuPZODhfbXvpK3O1EZQmncP6IAj3W6/AvQu1ObiDRAcRG6zXliVaEUvO2Zhw3dy9sIXkiQZ4WYueQWNhZONJkVMt4ShG/7tf8PcqVEybCka6/d4R6nNKWNJOZJ2AooAoyj4vUlkHFz35rjtuZt4JmpuPbxB1rgB03Nm8M1hCK8ItXkTcTrVbH7sjWE/F6n4t0H+tvRD3kDq4Lqw62KQIo2DUr3P5zvCxdbu0M8uB8zPB0/dOXr9tlo1aimPouQFRdBzzhx2FXfkkeaXhZQdnMtr30LzA7qH+3R7Z45N8z/7Oeh+J7rtPxs7EC8sh5e/5dy86ep36GHvQ== 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=8RDVdQLyhWYC3CAVbe/JAYa23nrvATFhWoc2jDkRfiY=; b=g7ncDPVBFVDE1mmU9Jvr9GfLZCiIrhijZvztJ5lUe7J8+zEB2qctzMPq9fBqn/cQbcGBpnjeRUQ9KvpBPf3L3jwrlaX4IwXoZWc0I2Syh6mGOpXauqNf1zWijxKhKZubwJDT2rugkvjaPCcp7TG1j3/ioWiuCEpETwIAPoq48CL1T3ovJ8lwzgv3yHe42h0emFH5y0Api4fcL1HapoVZWtK0FDoCfPARjZxzOCKSysTuq5Zs4JXrHu0UEVENjCNRKhCa5KcIg+XyVgyYa6CM17mOKObbl9fFVElRaihVnaUCQS++b+cyKifT+TMbeDrWxZ+yCok+gyNUEw7TjDqm+g== 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 SEZPR06MB6087.apcprd06.prod.outlook.com (2603:1096:101:e7::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Wed, 5 Jul 2023 06:53:34 +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; Wed, 5 Jul 2023 06:53:34 +0000 From: Yangtao Li To: Michael Turquette , Stephen Boyd Cc: Yangtao Li , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/13] clk: fsl-sai: Convert to devm_platform_ioremap_resource() Date: Wed, 5 Jul 2023 14:53:05 +0800 Message-Id: <20230705065313.67043-5-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705065313.67043-1-frank.li@vivo.com> References: <20230705065313.67043-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB6087:EE_ X-MS-Office365-Filtering-Correlation-Id: 227013c0-9c03-4d31-b53e-08db7d248cb4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OBEy7aDCcOm7m7KpMwhZTbqwO/mFCk7IsIZsgKoPwta4PhpC4jnd3UffNIC/urlEk5lDwaLsXI5QF2+cGorYshNkBwjdk/H/aL0MD1PzQCSDWlxztzg6uYygTqfK9SI4xW8TMrCNyETwcfJvhRKPae/ohy7r+cG6mVOIzSasb93zujlqigeo7C5bD2LaePxsXQLpElD/V3AOzrE4cNHPQlvtcMPbYEA4z0yfq8n+cyGYdt69GQgwMJAJlmr23k3yrgRPpcH4bgRLpFuJ7uu1EqU9H5viVWCeepKjzDwccmui/nTeYtgUyV9QKZF7PU4FPMo4es3BIxD0DWV9I8iVw0mpQ+hUVRjdidrVdEH4re8oRNLCNytOzs6aZec3Brr/WeFWCshEkFoEFixloe52EHIRJdnOQk2Wwjzg/ySZhTg0XDBLFxtpekWQgjS+AuVuVhtKaYMbK4jFKBk5FaANZXqXm2muUSacaqc4PYbn1pC3Y//4Zv4D81FX19Z22C/wH+D53fqipYj1lforfJv7iAyl5v/xt69YR32DXggAG8OjfjNZE4NYigb84X0X8BJJ2KBTfLn2LAmeWoZVvtXagnGfm1/D4SXgbWO4tm46gv9uSFtkAfEs6TsJdzjv54HI 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)(39860400002)(346002)(376002)(396003)(366004)(136003)(451199021)(41300700001)(38100700002)(4744005)(6666004)(52116002)(38350700002)(83380400001)(2616005)(186003)(6506007)(1076003)(6512007)(86362001)(6486002)(110136005)(316002)(478600001)(66946007)(36756003)(66556008)(66476007)(4326008)(8936002)(8676002)(26005)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: mhzuoSkJYeER5R94cyYhS76D3caTdF5O46oxCxJHowPgYuCv7AcU7UFhA1wweg/VEKCdLIG+nhW4tRFxLPURlI5f8VPCFoczJ9Md+ESTf9hBy1lf22C54fXSgwkllMkBN9Yok5dXhdEqYCFt+CQ7qAU9ZuZ2O+ihtkZPYvDPouvqW4559Lg5LdHSDsB6Mrrv71qxhnjuKbXq1r8mgWWJKBGDok6x3NPbwtLC4sn1I11QUme0FWJreQ4tcIq8JNE+HZD31AdqVOHemX0DtKYr5HaK2uDl8lyAV5W4DcQysqc/GRs2PVswoqm1NNcKHSayxliGbrJ3LAllqkalU+obmFn6BVhxiYu4GgseuecLaXrCZQ1jOO0vP4T5RfAAFpUbItaed8Ua/KTYpHGMeRvEus7du5ClfnHFbub7C8tikhYh7g5F2Y0sg0cImT/Q6aS1fGUic5DhxDwxyWJBISEBVrMEZRf/jTrdWJM/NEM6xpTAohXhX/h8jwEId88t9MOLt+KVM4VLBqcV3Lbe5o4reLHpLWaWz77LpaU5lQHz6masBA4XYsniAhkEOaQpHJ5BY/bfc2ccHOUTmT585lZ2ajG+nZ+HjKZfRfI6imwoBVGek9SsR8yKp5eu5xzLOlvIFzFH8nV7wdvS2Ns24ePh75FboiekrH+LmCqqcCbAKwTLnQY/blkc5IhhqbwHEWhSN2ZLJYJG4NFg0o4/CF39ofF/Cul4IvMfvS9qjmUXDjLcL+bx/B0TTldnWZx8bT56XDdJUmCMjgaiXwDlCcUrAYti7heb5B6VzTv/fnej8xjEvAkpLG24WdXLAzIsRwMxhWaWAPkvTePJqhpsNabB7DZOLphC2zxnd3fECYAVBDs4JyxzZA6VqWMGRlddOwKe2CpO8p2Ifz7cVZ69XC8EROCc8S/yV91tTpq9WtelCrIHB+rWVDa6v59HcNMeq6R+rjrCvjRFd8176a6E8EX1YT0pQyYY1mw1PwgSwv17Y8vP6wcIYyk8fNKzCaJwIkg7QWUi3XyKOcGFW49s19TcP4lp8IWDr4rzx6EAsD/5eC9EWLOKMDlFNmhJXxU9MAjtPaRlugFKob+PGfW2Avf5eK8EHrbkVytGFVA9BXqIDZC937GINlVMdPA1g5QNmvVVlbTJ9TcNv6DF9j/KzdPUNB8A2QI2UmlK4kFQQcemhUM3xh7i2UZx+T/t+VVoTtMYRh50+1Z0zP+nTEzPPyiltSVb5Xve3n87e+HjMZG5KbedaqR3Yti/TCEQ87NUl33NDfzukt/O/oPdGv/x9S3XRsfuBlloqOoa6LwB6QvbQJYU31FU/iEZGblJ0rUKUtd98pP2U3HtjdlT0laj43zqhB1i/YIowi3JXq3wtGcbe4bgQJrEIdhsafJQqjAM/DecU1jI71ZCN/OITGV+7Wsean7ZJ8XJmejX6Uf+NAmvMmU4GQM7BxvtEtdd6dnNmYerzZUPydcIwmbSYuvKL2IkkBvrGUa2Ij2w46D6e+Fnx864V2NOBYLcGVBulMpIy29hNS8rvIt1RKU7fo9rETAMJhyCfeJWifSmtk6EOyoLPwgT1XTSiKz0FIA/L5LU33wT X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 227013c0-9c03-4d31-b53e-08db7d248cb4 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 06:53:33.8047 (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: TgGt9dHX81jxhm7NaXCsTPxta9B/fy4CYsVBySPd46wzWFqSkwgGxk/MuJ27s4gHlgi+eM4YiNxzaY1k1JUUUw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6087 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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?1770563302300511969?= X-GMAIL-MSGID: =?utf-8?q?1770563302300511969?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/clk/clk-fsl-sai.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/clk-fsl-sai.c b/drivers/clk/clk-fsl-sai.c index ee5baf993ff2..cba45e07562d 100644 --- a/drivers/clk/clk-fsl-sai.c +++ b/drivers/clk/clk-fsl-sai.c @@ -33,14 +33,12 @@ static int fsl_sai_clk_probe(struct platform_device *pdev) struct clk_parent_data pdata = { .index = 0 }; void __iomem *base; struct clk_hw *hw; - struct resource *res; sai_clk = devm_kzalloc(dev, sizeof(*sai_clk), GFP_KERNEL); if (!sai_clk) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); From patchwork Wed Jul 5 06:53:06 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: 115975 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1685811vqx; Wed, 5 Jul 2023 00:16:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlF1us8XdAOjvppb9byFg4FJyG2SJ6LzWJ+HQd5RFuDSfkiYGEJEdu7HrITt0drkrBhC9V01 X-Received: by 2002:a05:6359:c02:b0:134:c984:ab74 with SMTP id gn2-20020a0563590c0200b00134c984ab74mr10144770rwb.9.1688541399135; Wed, 05 Jul 2023 00:16:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688541399; cv=pass; d=google.com; s=arc-20160816; b=byIGgDb3LJRzb0RVFN/9moqEVQ3iJeg6vMutgHwgkgFXtXwUTCZEB7NKd5FKm4UyAI cFJpwAPWObjySCBb0wO7PpgjpFwyz658S37DA4QE5H6vQ4lk9jzh/gJbGPGbAPa/g5Bk Jw6qQXaPkdf3TcbfUAuQaukRICVimV9E1Qju/mkGR/bzcIKUyUItaYJUlQCOHAtWIMRk q3YQ0roFGU+Xv9H/K0f0v1OMvkLvsLK3BHgNzYIYLb+xa2cD/QYHWNLc/xg0q2+eiTnV warTcxWwJbusrp8tQxSyw+IngAp0Fx2JbzhDof+DbebD+PI0b5Pmw3WOe8CcAdbdCDRs 0xSA== 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=Sw6gJMrRLCMcYi1rZm+II0m0vXjAMv8iB91oC9kBuWc=; fh=+lmNP1vWWO56pWQCpN/YvAFtB/VqgjP1iPhHM2l1J1E=; b=ieJvGAew0AvCT4OgTyhbgibpzv5fsDx9wclzpfCAP9xOkafEj77wFjW8hnJmyMQPh4 M0FYE0ciwOZ5KFMiCc9vSK7MZt7ynG7WS3z8glmgdch68eeDyMXc0JqOIet7+UQu2bGs Vfo8Q+JFsUw8TI0EC+Eb26vLbDT7W8s98V+41WGw/RjJtdGkg4IGJc0s4jM4H9KUPfAb fdgpHR3XDZAuEryOsyt2jcLsY/t17asehB83bA/nCj4QV+06szGFRyXS/oM1Z1U40e95 Ae5ZmM3CTC3Xs6l3a7ySgbhQHPrJTX8Cglztcd2hbxAcz80rJaXVSm4XLp7hLbCsDzWq VPZg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="bbBg/bX4"; 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 204-20020a6301d5000000b005578c6a7645si22801978pgb.69.2023.07.05.00.16.24; Wed, 05 Jul 2023 00:16:39 -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="bbBg/bX4"; 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 S231745AbjGEGyD (ORCPT + 99 others); Wed, 5 Jul 2023 02:54:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbjGEGyC (ORCPT ); Wed, 5 Jul 2023 02:54:02 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2122.outbound.protection.outlook.com [40.107.215.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED5E51700; Tue, 4 Jul 2023 23:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FptRGBgYmiVQrQro2Nyd4t64z1+KbMtdaenYXkEp/qpbbE023sGvQClkj3rvrvB5EPVA8k3PzayzypGKbiCf5HUi+dQcKWrYN0rYeUp7ekZgCEve6dwa41QVUkeYZAIF/g4u0cYZsEeDT/WJFuS4aNJxqbtmuk4qHAeQ5pb6rjf/QFFvFiV8ZzFvzB6GpGaNMRcFVZYe+0pA29t0Z3nhYUBcHdw8W/eGMPydMPdzuqjxLJWXGGl70mHtuY2nfgzotXiVmBJtOp1voKorUEXrzugNlUwIQfkLb2v6GS9mrsz8JY3dpOxtLltt7t5USL/jbpgRYbj/1H3lMk+TesreMg== 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=Sw6gJMrRLCMcYi1rZm+II0m0vXjAMv8iB91oC9kBuWc=; b=Q8Osx20jquTcdpmRNnxnP15cPCCyQI9KoWXCvZv7dJ0FCvBSWXvijks9YB3wSJtNFL8d2oEI4Duqd2pF2aVNE7zIMMiHRk2WfwNBAArEz31jqdSC5L07siurNs01JsyMCWkl7cwqSzuG0iTPxgu6zT2F+K5cYGEPn27WAM/U0YqZdXqenDSVbb9cce4Gy3FOaOMisverR5GNLdR5ytPEo59TAWVac/hwBOLstNUne41fuKfor4yGWwjZcU/qms57HnHmizIZhDakkLJCG7fRmefJFQuEDFtKqat5SXP44gEpM0NP4r4t5kWp3tzGLAd+OzTph27V4ihw8Zef+HYrEQ== 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=Sw6gJMrRLCMcYi1rZm+II0m0vXjAMv8iB91oC9kBuWc=; b=bbBg/bX4YgOdltjr2ixOrwLtXrBO8SYkcbCeMDn79vizyCziOMPXVKcy7EhYRDyqhDamfAJbmp+Cee0Yoe1M5uG1nBQ1jPog7tnM7OJch+bGYU978Z7jQ6vhrE76aNcwXndVwKt3OTC1bETV+HUohRKSy5O+7I3kKMlnz6G1m9DF0ym2+LZxFSAPMCvqcH92CJbzuBH+y6cAkUij74NTZuHG3zZg6u133DeL+mLZi45u5CrnrwKFhNwB2rGqczbanwE1pgfHFLtXF+bWrggvdDW1LbxibtzHMHNTx/G2MJTzWAkgvjF2Rti1VaGIcgDhXwtmiyJ5s58sI8HnWvxRtg== 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 SI2PR06MB4140.apcprd06.prod.outlook.com (2603:1096:4:f1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 06:53:35 +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; Wed, 5 Jul 2023 06:53:35 +0000 From: Yangtao Li To: Michael Turquette , Stephen Boyd Cc: Yangtao Li , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/13] clk: gemini: Convert to devm_platform_ioremap_resource() Date: Wed, 5 Jul 2023 14:53:06 +0800 Message-Id: <20230705065313.67043-6-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705065313.67043-1-frank.li@vivo.com> References: <20230705065313.67043-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4140:EE_ X-MS-Office365-Filtering-Correlation-Id: 4f694af3-16b6-4829-9ae9-08db7d248dcb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UVQHWG7zMmegpRxMt6AVKNDFbCj8MMJPNx92ecP/rtiHQRwrewirRho4phdw3HhKn5rL4OBMtkhgnCPeVRW2xZYTD68/UBn62NM/1TwYnKhZefeTLxU4gbmncuGabFvGwMYa2FBnAR3HE3/rsDxCaZZKct+wlfyAD4t2lYPFPBNBwT/E3Of55h++1UeBOZR7viatcPKzpMK4wll87zEU1h2/TjcyNtbZCE1BNFGnikBk1gDYfxNHpMrA1Hupnz0sFw+yjxqQHFYfIU/XvOOjfhCCxHtC2aVxLvsG7hg0S5M9bmt8Hd5BaAFsU3yA1bolTTeR4evnglNRxOENJKAmNu3Eqq4tQs+jHOIBlAnxUHkHxejjtMmioFkd7j55EaXAP9hTcSGHRhDqSTUN+kMWF0tEN6wIrAiQz1GwHMHKnk8FOSMxCxc14TZbLVaj2dYT3zMoQUwZ18EY8VRla/BM5w34rmhTkuqo0gLM6NZM+udvf5sBdBqtOCjXHN36+k4Y53bZqG5Z4xEF8RHREwhsj3QndXI5ISSGSt2zgaPzdein7zVUbFuvdL+NfENRvAJnAeDANBM/KEFqYFTu7MRF9EFKPsInP95RPvSY+REZD058XezDoAoknKQ3gEe+XEsZ 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)(136003)(376002)(39860400002)(396003)(346002)(366004)(451199021)(41300700001)(8936002)(8676002)(110136005)(36756003)(6486002)(4744005)(316002)(5660300002)(2906002)(66476007)(4326008)(66556008)(52116002)(6666004)(478600001)(6512007)(38100700002)(38350700002)(186003)(86362001)(66946007)(2616005)(83380400001)(6506007)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: pd8fUtAo+FeWZYvvnZ5yxBxDePoQIK+CQmru7p1J4K4VQ4ZTMCjkMdnK1ZXtHUlyemjXKQ77uHMfqW6jinsuHRxy6IkBZSXX6fG8g6bYKYMAkZgu+698tbUFMXA1/XfKmnwXa+gjpRv3AO7OJfzNlp0wpcxb4uyCWFBSU51kU6KVwioBkczqN3bmDfGDTErrCNHYRZSvw4TfsXwazvrzqs2ZqJJBvbQD0HDrMTpiuAnDtpOm05nuZPI30A3JeVvgDDILJj6Fti7oN0c6WU59yshxwex/+QnQWb/ydELfrxb1jhTg7wjubqI7KA8ksVWIfeeXrSVpuG1jAPJM3u3W7H5bj2CCxNKQM93t2d6+W5DiOVtTZnCzFL0bpnsLxSbtX23j+LFtxyfA/w3PBH+HFNDfzTPObhrOB63g1UsBzIlWiiAxWYz+FDUCADjexVbTWafkL1HkD2vmTzxhBNVOiIrV/gR5U1aqwbLPz0Td2jJP8aUq5ywd15SVk4d6E8d0slANmrlsH+41L188/HMih7Gy8DRlDNlSZQqISz6WVHF494eNgmY72MCYGq7Bhv8xdAcwmKH6GHpwm7V5ggQ44DSuZXFXjGZ99T2+NOGaNbSdDv4q7hM7BIGZAKvHvIgHvjJV5T01qwxnIuwfcbtN6wEQMoC4LqWUYA6v1J+Bsznqk+4ahyCQi45QyYZuj8sQhATjzdKDXws9iuaXHHizHoPXlNa6pbTb1rU2MRxG8rRuSsACDUEzr4hZUdPpGNaTBzAuFHL3t4+J3M4qgLLwaycYr5patlUtK2064EjyqnaUyoJ/joHeniPL/1IxoAYMVV5lPowua8L8UOc1zhPc9ygUfeCLzZeDsjuqaxJzrZStSbBnsIKF+Qi3pFJVxFAYgp20WT67ZegsV9t4/JpTPm4O5uGhlGbNmXHon/+ZE6s8Ckp7C6BiWW+o09w2Mh2vpQwzfFJutnZ8ThCkVLDM6Uq///DhJot0gWLw1ML/dYiUYIrW5NHfcVJ1SLdiFiDRdDlul1jN8eWwsdpsAuqY1AS61x5uQx14iwC1BIaIB9d4VrFvSzJY2MnTvT+yWUwja+DEn4HWM+xTHJQqMVD0LycPYDEUr9SW1k8YiIBQ5OGhFvisqU8bxApowQp5M+kcuCZWbKRQNqBu27C6mLXZI+zUT47gEbnu/mO8Pit3MkmtwuVOwNLAywJIgbPfn6NlzyosnK8duWu2O3mXazetS0Dz3mvok/DTavJfiqRzCRwfe2eGhT/3NaYXKIXGlr+f3KPRP1b+HXA945d/piKG9FQyvBard4Jr85/czChy+wy8H1+P3tDHhwNXZIgbxTJMAIoo1m8Br72choFWMgOKcFcoYmCoJRfRlNzS8hvIYzfQ58K7HoVpLnuHtRGqaMYkljt28XE0mtCMEiARtTo3qAhVxh+PRVoYA3B1ky3ZUm0qZK/lD2iVC3dn2VxUGqDYZmUOk8eN818IPTRQ45rRnm6TpnjSJU+EfvzTBvYQ+A0PcKgHUVo9t54N7n9N4++gYm3AVWCF1Ayh/bKZIYd4SLgPtRlqFDrncBMhU0WTFcVi3F46dgrvW9oTnDFdkdgv X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4f694af3-16b6-4829-9ae9-08db7d248dcb X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 06:53:35.6345 (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: i3s5TQ1TDQH49g8tYAoaX45iCuv17JLbtcLrY1RDmW0elFW/ODUryZkzemjrCieTEkmpEfbwJMzObo6c/wtUnA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4140 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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?1770563986158804586?= X-GMAIL-MSGID: =?utf-8?q?1770563986158804586?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/clk/clk-gemini.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/clk-gemini.c b/drivers/clk/clk-gemini.c index a23fa6d47ef1..4a085b042d22 100644 --- a/drivers/clk/clk-gemini.c +++ b/drivers/clk/clk-gemini.c @@ -276,7 +276,6 @@ static int gemini_clk_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; unsigned int mult, div; - struct resource *res; u32 val; int ret; int i; @@ -286,8 +285,7 @@ static int gemini_clk_probe(struct platform_device *pdev) return -ENOMEM; /* Remap the system controller for the exclusive register */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); From patchwork Wed Jul 5 06:53:07 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: 115970 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1681911vqx; Wed, 5 Jul 2023 00:07:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlFyqAiPhCt+TN7fxooH1+gnjodntcva645YXqPwuHUnyFYosAyCyrnue84SKSKfvAFPGfxg X-Received: by 2002:a92:d98b:0:b0:346:24c2:4f87 with SMTP id r11-20020a92d98b000000b0034624c24f87mr3148384iln.32.1688540848410; Wed, 05 Jul 2023 00:07:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688540848; cv=pass; d=google.com; s=arc-20160816; b=wt3vI4BNRH8IKgQ67Uh3eX5O6FA09Fhse0CM5261YOJSIEebusVE8yS1Bc0ynMKakK WRjA00bSeoZvLEwkPLS4AjzNqR80OPFaEbWiDM6oxTiE346gHjg5CiXUk3fdD99MROhp g6kxPK9EiDiYWAjQXWB3A9vjTxqN8J3+TelyBajr8Rbt6IYaUNJNnNoSxU3tQLvC6Nrp mNJS3Gg0DSnvcGFtxEkK+HquckYC0/r2IAp2/n2n/y71upgy3+/E+hJMN9I4wrxK1OPR pY0+amTLOEwyDSP9jKnrlrsI7xbU9l+ITrJEfsru12dotWkpO7iboJ/qmITvPA0YGQtx 2iWQ== 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=0cyW5FXJNG/iFIhqwS8xH93Qnj1S+dc3x+b8fe8oH70=; fh=sV4odFpPMGy7lvQ4rsQJgz0D29OoVULI1EKcLAJDfwE=; b=QoRtlUb4dtYwwGYG1qQ2zVFJzuaKYrODbyh8rWrIk/MnnLT5fMmJ1mFVpxmP5sY3Ig ZgRJt/zVbNNNAq3V4/oLEKYHT1lknN2hDxQGDBEYN80T344okMjdOBzyk1EJk6crxgA/ Vp4x2uA9mcLExLoJueeL7JYBH0oTQMKNCVOrLfkQaBf51OfE0IGFSUk6bnV7yKuWVu9U HXcBi4TDZPT3Ya2ad5i3rj9qEtVRnop/F7w6urZSVyArXNgiZZenGJE55jt8hbaCHe3v Lm4QErlEex7rHroh4EcM1w7Sxuok3K7FafGxC36sdoWkNhbBI5RCeK6OjtfBNPzSCVxX UlaA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=OiXT49Ah; 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 34-20020a631662000000b005538961c4ebsi9335465pgw.715.2023.07.05.00.07.12; Wed, 05 Jul 2023 00:07:28 -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=OiXT49Ah; 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 S231843AbjGEGyN (ORCPT + 99 others); Wed, 5 Jul 2023 02:54:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231819AbjGEGyK (ORCPT ); Wed, 5 Jul 2023 02:54:10 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2135.outbound.protection.outlook.com [40.107.215.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99C0C1718; Tue, 4 Jul 2023 23:53:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bvx0dfjtN4m5BxSaQJYVGTnuv3ipGHMo1TBmErXsNoIsXuTuYkhYwhAkIxJMtIsb6reSvbsE+j9xFt27A9mFFkcGGe/V08H7XaMxJP53c7VG6tLEc2RL8I3bvQa6cK63x4b94rz/8bGb/5Tytz8SWW5bdAW84YpRo9TCM2UcC81OzjvcjmzRE1XpFBbqeAkVeP3qbixL7cdkJymrwarGrWXneSiqoxznNckuAZfiYQ3c3an7kWd6gWUUcAMp3vkt/GpoEDzejCK5TE9E225jLFrP+M4pBtj2Oi2Os5JEyRQ26njLXO/7jgXLV9pW+XHPsQ+R6pZZxWvHXKV9B3lexA== 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=0cyW5FXJNG/iFIhqwS8xH93Qnj1S+dc3x+b8fe8oH70=; b=BsG6UbMEhI2cvFNkuSYsmj1IpH2yQqDAwS+RIEq3AdJrgkGyu73RxIj6H1NDo+zHSUkQtSSUfvx06g9JtGZWOYdSVaMA7rFxOh1HdOpybBYbqsgBABPwTMkkoogj2QcMK1mD2GticH4awk8mHzaIKVr2BjjKOsk9fP7LOsGpNn4NojfH1hc/22aCVeCi+dWhTKBIZ0C9XCpcmig5M3h2ZV2k+tTQmvJtI5mx7R1ClTJQ/wHDeFU58mdMj+A3r/FQa1ZAUU4iXRADEDhXrnoSIIKJ5HETzJ7B0K1F20kLxK90lB03e7JiVSySIzxl1gHHz4I/WTsdiPUFWxtK1v9Gng== 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=0cyW5FXJNG/iFIhqwS8xH93Qnj1S+dc3x+b8fe8oH70=; b=OiXT49Ahi73nS1tZ+UsG+TtHZyPW6kpSh3uRmbqaXHDWUch9J3joMFUasP0i7WCtd3vOf0zx3TfM8mdSYThBUOWiuBPAnTiIoZvnepcHf6U5i2fqkejBl60yIAGfAPx+BaNF6BjW0Y1v2ukoqJqsiHdboa+wsN/JdoC/F8rHHP7kj20X8UY98lTN5hmru2KAy5UpIDQmOHw813FHKZOcS7SfKQK5cmEdlEAR9ZUa+lNjr1RiKEnaRaKUP2cbS9HBI2KPXdrD2WLjAXWiE4vvQ8ZS9JwKHnqP1ivjIU+tG0sNCaAY/sNn3euC8sE8zP1iG+teh3AzNDD/EOCt5wsF4A== 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 SI2PR06MB4140.apcprd06.prod.outlook.com (2603:1096:4:f1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 06:53:37 +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; Wed, 5 Jul 2023 06:53:37 +0000 From: Yangtao Li To: Eugeniy Paltsev , Michael Turquette , Stephen Boyd Cc: Yangtao Li , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/13] clk: hsdk-pll: Convert to devm_platform_ioremap_resource() Date: Wed, 5 Jul 2023 14:53:07 +0800 Message-Id: <20230705065313.67043-7-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705065313.67043-1-frank.li@vivo.com> References: <20230705065313.67043-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4140:EE_ X-MS-Office365-Filtering-Correlation-Id: dfe479f3-2e29-4721-9265-08db7d248ef5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PQSyH6NoCC1mrVY3bNA3qR5F5jGdktbrv1pbbHCShWE1CBm4dznuwrweh2MGFV2IisISvdfiG6t+WhT6MQogVV1Cgsm2L2BLEKYBVJDo9HxyARkzB/ojwdREjUlUUJWQVdqdYGlNYc/imMjOBdzNw+kBV6ndieJu0YGysCFZpwpV/NCHzRSmMBmZlzb/BwphyKu1ft04cB52CTpP5Cu6sMwmDqiS9WZa98mdcULoOI5c4/arbJ4i91QkOz8TArjAYnGU5hu9V5WYOWBA6N82XaQ7DxXMxci4v+K9Zx+A00EFwb9nK0e8FdyW9wJuE9NvumBYCELqnN/CC8OA4PvvcCGGlvv7Y4rJ+4a1WUbzDKemlq/jfojkIhcd71XCj+EGWIYTtkuqZRlgsmgJ9JPxTxRZ0Wai/vghkXhlXiDvsxCcqIJsPH7hp1VoMU5Ic+lbcu/NnTj2yUqKj/det/clV5BOQK05xlHxZ2HiCZEtSLGUGT1f1PPbhgunXI7LXFifJ/bL6vr1KiTdKuA9d3UZM0j/KLf8OHYklhlfq7kWoTbgVN2gsdKZyxGmHnmjaiuF7QPAfwZfvzmqlFpGWi3MeoUtDUWpKRwMC/UFpKIOkHORIlQmNaXeGUxffylRu3yA 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)(136003)(376002)(39860400002)(396003)(346002)(366004)(451199021)(41300700001)(8936002)(8676002)(110136005)(36756003)(6486002)(4744005)(316002)(5660300002)(2906002)(66476007)(4326008)(66556008)(52116002)(6666004)(478600001)(6512007)(38100700002)(38350700002)(186003)(86362001)(66946007)(2616005)(83380400001)(6506007)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YC4UFYr4MqDgDh712bFnbm5x0LZRqYHjzivg2a7aNdmu6/QvoaHi1M+9ljPLTLfMr3Q52VKirn/lKyUIuJk7n3aJhhtISHakkOWKkX9L42JvjWqyoZnSxeR4xEnGPPT+NOCVP1BuVESNnqdJeOA2WnNQes9DuF7Epr9pD8PkcN+gEyZUwbGN4YNOo7gNbLRLo8oCERVOcLFtzKc8SRN7x9l1VHkbuTFPt2MHI/qD/3p8yAbxynnMU1/vvpzmbaHAIKZvab+lLJolsOLgnxuRmMhw9qZKngAmV1IV1nSihCl05m5qPf2StjboYEO4yIwPoN5a2cBtBwqO5tLi+iUDUu2jJay+gXzMcblKp+25/JUQAINE5k0uWX4RmxLx5UZ9WgwpinNRrITjA16Qr/KuHe3CO8/8N2QWr6FXdgI7jNmOTjtEU6Mn2deK2FqUSu+SInZxe+tUpn2xn1WRGk+A3U/mM8tPEadBTLwcxkpOd3ba7RA9E7KWlc+9jvP0tk+C5AGsfCw/1DVNpPpp8ACnkrUrUSG8Zxzvk4aYQ1uPP2ao5vwzMow/hUfgXvHKHqKgsLWY04RvRk7BtF0yOj2orUIg5RGufsuk//+vjq5+jZjhBD/fsWOoWdxLZrAsc5esY9UxRu+7+J5gwc2pohiRz1j5GNKg50ae3sux0O1+lbszQhgq6NhUbBsmUWQKmOJDHqenGZXHTDzf/H2y30X2aJRSIq+M7kBKLCN8nlmzHrLyb5NkwjuNKW0NT5NFNA9uxtEoxsRGpAo94Lb6KdUbE7DtptFPd2W5exFCmIVSTjGlcIySkddIt+gePCP+i/rlnVSNu1/e/fjLc7wNgHEa+ll9PGBguAJii9pWCQXZb3Pav0SgCTFwtmlObQT1JvExYYXEvKa4iPmmYlJ38Ni+u/A8T3yoALv8H3JTRmYZmsNxVKtozFDxRErq9dlhl3z4j8Cq6PoDAdU504GOr78IDp4A5G73gwDUerIIVEXR8b/4Yd0aDbUhOIg8DTCm/In+eAMzSh5uGDqvvPPxLP2az14uaaeEFLliKPJa2y+Qr6JlnfjieLsv88FM5NKowKhaxcY5hPExIvw1LfkgAAX7++vzRBgpfCKfZtCIAmHHkwLxbjwGknmDCSYHfek/ERFIyz6TbxNnBsSZcc1EB+bYjvZ4Ki6FhQi+QNanU7rylT/nFQQpi9qKUHnqVQEiv/4zH2X3uuK4jpiJos4+EpFrpveK4KhutTvANnJcdyHM62D9J+EBrp2ywjMCQ+xeKxwevDTcm3eIMwdfuTcA1bG8NBFARlPXq93BzxfE15ZDUz6YSrU+0H3CCpl/Fy/oqmKzH6/SOo8iAI2EWV54pVUUorthuSFJTSbtCd99kEdwhmLl8sI4M28p8gl/5SDHKEsmlz3QTkt6ESqLgEPyvBnU3OqjWZYqDphEUDvGhHApOOF6a4zH9eHB9Qu/dTB3+czj64e2isLVdbcq4yKZ3Uc2fvpqk7mOJB1KrsMGVPiDNENpfw3QfoMlQyBoWTL4VR9tYK2CBkARX4qrxn0RXb4o7fxZBo9Tixy9bxHbiqdYLSRKA0lsO0yAw63EDlkZqlBn X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: dfe479f3-2e29-4721-9265-08db7d248ef5 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 06:53:37.5793 (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: sjo9h+NDTEwjOfCKXDiP6MMyAYwPuA/+puc9TM2zzV50GKUn+7UJD5hXvl9Q86QFVxxen8hlOQG2RX5egVlcvw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4140 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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?1770563408827225254?= X-GMAIL-MSGID: =?utf-8?q?1770563408827225254?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/clk/clk-hsdk-pll.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/clk-hsdk-pll.c b/drivers/clk/clk-hsdk-pll.c index 33b48ea5ea3d..860519152e5e 100644 --- a/drivers/clk/clk-hsdk-pll.c +++ b/drivers/clk/clk-hsdk-pll.c @@ -304,7 +304,6 @@ static const struct clk_ops hsdk_pll_ops = { static int hsdk_pll_clk_probe(struct platform_device *pdev) { int ret; - struct resource *mem; const char *parent_name; unsigned int num_parents; struct hsdk_pll_clk *pll_clk; @@ -315,8 +314,7 @@ static int hsdk_pll_clk_probe(struct platform_device *pdev) if (!pll_clk) return -ENOMEM; - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - pll_clk->regs = devm_ioremap_resource(dev, mem); + pll_clk->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(pll_clk->regs)) return PTR_ERR(pll_clk->regs); From patchwork Wed Jul 5 06:53:08 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: 115986 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1698561vqx; Wed, 5 Jul 2023 00:50:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlHPNduplmeQoJiKvJslfl0iL1nbKwmITZ2nG4Bqo9HLa0/TN6xKkb7WW4qJrpvl5F4VLvAC X-Received: by 2002:a17:90a:d48e:b0:261:49b:d65 with SMTP id s14-20020a17090ad48e00b00261049b0d65mr16922496pju.28.1688543428211; Wed, 05 Jul 2023 00:50:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688543428; cv=pass; d=google.com; s=arc-20160816; b=faA9O+omgPMdiqCswJroS+zDi2kPInrDIZomRMfeT6D5f3Owkib7gkN4zoYLWE3S6+ oVBTeXdYWcFLxQoUZXubn+IzkDvLDFk2LZ/hGqj/SOp3gRvadg6gRocPUKHwZ+F3HFHa iHCOkdM5PuUoVvQKSK4lBZQ13Ab418DQY5saOFinndRjOuy4hxRH/8jMid+1sieRbXgw YpPgo3VfBh8nj2P8Aj3hLS9EMST5cVTr0FK6V1bil+Zi60858gs3SxrOBGX1d5YibM0Y oIn6yzzqcfSC8Zgjm0KU9fp1r1smCFFXzoc2nPZMJm0U14r9TJUzT/r2o5ddynp2HAbd sexQ== 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=+KnpWChdqS1whmGKWMazl9/oJ2x23VzOQ2vXpsgMdXk=; fh=cE9S65RnRprBRPOGxM5aEI0rxiVSLG//Fw6JDDXHJ2U=; b=MKpx9JR4LBx96zcrmW6Fvk/+w/URfspHYD+VBHBgNjkWu4mENfcFfuBWOjuf/WYB87 ki3H5VdP0D5/VG19xj9B8IGPOgFFtfKfJ+KnAcJjHhQa4aPFYNOCzpq6BQOLcZwrIPJO TCirlRs/nTXrMji8YkNes7tUQqFoPRdI4CkO5q9j+GBumvOkEEGC6gj08fEqSruzi1OF 5s+/m+qLAFexk0uzcPRwK/UTwj4uf23Gn+lE2QbKLKASsFOu44uUtcsaD1aU5BPE5QSY ngt9f5U4Xd7l6S/rTdOTY0TCbrmKvSCF09FmmE+8JrKj8/sJGSJkKkRK2DJ+PPU5QBfS u1+g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=N6enRGDI; 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 c5-20020a6566c5000000b004fb8abdd188si20755270pgw.115.2023.07.05.00.50.15; Wed, 05 Jul 2023 00:50:28 -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=N6enRGDI; 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 S231820AbjGEGyV (ORCPT + 99 others); Wed, 5 Jul 2023 02:54:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231833AbjGEGyN (ORCPT ); Wed, 5 Jul 2023 02:54:13 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2122.outbound.protection.outlook.com [40.107.215.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13D701701; Tue, 4 Jul 2023 23:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ke6P1GXbV3kqBT9lHkP3w83j6bBXNWlS0rEh79ayKXedPLwv1Zx+HNw9xMA/hu0n4MczRYfOdsPkuDewscXZ18Z1MSOqXfcobvUcP5/ZfQZja6lp9/sYXdefA6jPoX2w56BXzqByFznNlIwcltz/MTrsQF+OO/MewQDx763Ky7glgYPPqAlMLJXptfEuEZNj5WPey/Yh6x3/Q9575yWONu+nFuLbPbE1/3bnr094F4oIfFEFRARVPKhan3gPqFIzAiQbNHRJV3YrF2myiqmIHmDHdhbfSHryF8tyPAG/64D8xTnOSuyy0zpGzL6Ips3owfSZO2pSmSB0r/sUFeqBrw== 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=+KnpWChdqS1whmGKWMazl9/oJ2x23VzOQ2vXpsgMdXk=; b=l+3x6U9esH+Hdn4LVvzD60wmToF0diCkazgdHDHsLxnfxTQSgqTjdIP7shTeduzzqACa8/ilJIwj9hD7Y8EwODUzMRYhNKN54NQ7reIe72jQpc9EOf73Z03WAzKrI/0NxIw1nBRs2ICsQ8Db2fvg43l6Gih/DXOkeFkW/FICQ7dOQliqidwTQ4LkyiTUPM0n8Sne8qBUYUQ3KzAWXwzD12HVrPv97AAUwwNFSj9F0HsXtwyyqbHzt5f3Q4vQMKnwIEEfbONz90NqRizY+xaLkn14wNsTU/1ffaMfW2RLqottbv8gPpk4X/nRzvhg2aNYgzotErXblG8bNSHEi1mfKQ== 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=+KnpWChdqS1whmGKWMazl9/oJ2x23VzOQ2vXpsgMdXk=; b=N6enRGDI5Q9N+R0S25VqmSWZ3900fXdylc1WOyiF2tIJFYkQvSRQhPuhVJ27dFru9SpGBQF2ZwSVjHL+MyEZHl5RtoMhbLDFgHFYWBoVdeNeA0v8b9LT6dHm9NBI+o2h4cupnU/+O8JwWrYQfVN060/WARFjO01CKWwWz00zaGLenyXUdOTlou1JKiLuu6Mz3XaILWMrpZ5KcfNkVEphnMcNHmRxckEcu4qe0+RvSRILv5J+ZkJMKxfQfURnfpoeiHjMVb1s9Or7zerSEIYlkpc8YFWRbAeW8QvMJea+DXya9C/SeYN6k7HGjG9/Frj1gJmWs+rBINRcHJsTR4wuYg== 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 SI2PR06MB4140.apcprd06.prod.outlook.com (2603:1096:4:f1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 06:53:40 +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; Wed, 5 Jul 2023 06:53:40 +0000 From: Yangtao Li To: Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Yangtao Li , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/13] clk: imx: clk-imx8qxp-lpcg: Convert to devm_platform_ioremap_resource() Date: Wed, 5 Jul 2023 14:53:08 +0800 Message-Id: <20230705065313.67043-8-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705065313.67043-1-frank.li@vivo.com> References: <20230705065313.67043-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4140:EE_ X-MS-Office365-Filtering-Correlation-Id: 180c99a2-8557-4237-e080-08db7d24909d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: px9P2722ZWtpmv8X9et0zhR+ybIQuBX2vA9yJ+MqWUycBDnci74akqh0mHbRPgYhRCBECzrEuZtWU7oQX5ImDUNHa1jLGEG62AS/BUYq+K89JyR0gXsIZSPgRRYpDF2Sz37HUSvAG0HLSFRXVqaHGzphCDoPw02xrU/NtT6EDxO4TpLnD3Kuaxo0LN7y0ZiH/fhhg9brsW4C3tDgpiQGjfiwoAL4vuBEaGMcCnvueK3Qq6Ga7xZ+aeR6JZ7mGb8mhICwVKXTh0lQwzgIUyBZ+8Axvb1NRlXXGxAhb1DZzUklIx7tWNoAiqkV5I+JnXGINDAsjsDSn7kXfedXaHB17+TF2Q0k4sz+0/ppJnj/6884281t5AJMv46SO6aAE4prvD7ODVT8GJ8EWEOEgAQK4mKKRqftAFx1TKHmMqSlsGfOMqVH0QTunfyYYZJOmlfzS9edqAx10DVwomiDU5mdENyfpyYddRBkvsP1no4kNnWZvJyQVhwODGG3LFVgL1bWSFSrEzFJKYXy8eQrMARO4A/ThZkWpjQEA2WzboCne5IHFZZjy9HEsoRLgK7BnoKI35xBKUUT8q5XtkX0MwL3/33a4fKwnw32BkLPUOftJ+ikSpA9eIQ1qaUM7nhj69Fi 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)(136003)(376002)(39860400002)(396003)(346002)(366004)(451199021)(41300700001)(8936002)(7416002)(8676002)(110136005)(36756003)(6486002)(316002)(5660300002)(2906002)(66476007)(4326008)(66556008)(52116002)(6666004)(478600001)(6512007)(38100700002)(38350700002)(186003)(86362001)(66946007)(2616005)(83380400001)(6506007)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TVpe1W47j+LcN/koSW8ttFUDTL1kurGkwEcn/4wSUpyXcQTMiVMac5iteuoN8FCtjn52845aBMn/DfykOsU6plkkSTBGSWIkBoCs0ZHru9nGW+/IqrrE7OD58qgNAjHUO+V8sMinENPm9af7I+i++OmB+uicp+s/BGhpdalt7+lKQF6MJz5T3OXAfXTZjjnqLrDHYwCArpm20YckfRmkyd3TJ6EJTWJTJ4Z1ENbXi94JJLfaiRNdkfI00Bzbo6uUiUpZBrSmt3j8TaYcBR7OTJwOAgAR5y7HNH3nlcon+gmfR/mc0KUpiY86ZWaEfxJLE2p1wW56l7FliTAMEfRQbGUr/Dx124ED+UnnSqxQTZ2QXifxnGtWsIwlEx7Kw1prakUe/esQ57F8Nd3nwqTJeKByLOyOUgnftFwfrg9s0ENQ2Y54pUQT2Uj7IzmDGOigOBuBg7uGNmM7HAzb6LI0H11CBvU19m130nzVqk3Ayu6dDFobVvRpTOCOs0rdJLa+9tf0oIA5YtYJQPkZCxdPPsGfSN9d5jVjXRqO1smxhc7sfpDdEHPoH6opcv2TYFfmlb5UU+IDiDbTICQwO2XiFsCmBzY1e8Ji6sysaId/YqSgxIl4cw21q9VGa5V5CicZDzZgfKs4i2aJq3i6p21M5n2k6cPnosEdfc6EUk2K543N/0tDMiC9maNMOGoAv6e+vD9Sj9eqaRxxtFjjUrfvyzMdk0/iEvZyz5weFGY4mgEICjL1N9N6h8NtYFUKJa/I1bh2mIIsjkv4R1DaKLksXG2qO982hCZcQCHdDWBV7LcdaKiLPd/g7Hd6qjou6iUp2hOe+lBJfKzGKLQpxz7oRnH2zujuEU0sk3XsPw/i8XSIYM1C5hWdY/0r4BBli/0t/u1bl3x0tPCVORTlvyi53Ev/7R5LCsl45BCpoyp6vR70j4UQtOW8NozU76fWlY8pkEoar2zr4EV50cfCQ8agItrP39XFTaNHYu0hW319F3yZVyQxg1hlqrfpKYUrHbWdrDsbzgxkfJDDTZDo2l2ow9sVYcE4AcmMkK9qnRSuJZBLNjKzGFbba5/twV9FiqicgRCoS5wPFTzr2smzLCz3bzss9YiS9v3+nfeA8PMSUrhlnynzv1L7IHLMUnx/V2kl9prMKGNZ6QWManh8Nu3pSp0aN55VxYAkRI+yvBeJm0Q1OYBSVeFTlHNXG3kJ0VK8Z8KPWPpafw7wtg2kQU8Mb3RLQUr9DBhjyo2840ROUqpCYMvvkyrS84KF9FlPjgEkr5qZUVwumvO3rQGSSMmbo55tcLRKRnpJDgTBAEqUNtaVQHAm+pRhOxSS4NQVnDmq98PhMf06sSEGZ32s0E5MZCMGCLxb7C4YMz2jCHs8phFeDMcsa18Z53qttNNigQJYAAesrkFyKeApNKZFdu67US3NgVUCfIUOGsLZvgeo9dY+AK4NNkljueTCXIWq+lqdGPhh9k1iCqVg9CmyOYUG7sOoXukP9UiOy6CCUv5otowuK9uOya9EcPFLYkGRx788vH0V2MqANn/mFnPbMPkJ0/nqEPYYWZDDqEwoJ6uaoi00r9gpVfQxQ4WssJE184IT X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 180c99a2-8557-4237-e080-08db7d24909d X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 06:53:40.3660 (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: gm2gNPC636meavFAOW1dUyYCg+KQfaNl8RRG7+/J6YO7LEyzcwPKdRSK6QtbL7RTyrmTQE/7Du2YRl1+iBPUSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4140 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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?1770566113994936297?= X-GMAIL-MSGID: =?utf-8?q?1770566113994936297?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Abel Vesa --- drivers/clk/imx/clk-imx8qxp-lpcg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/imx/clk-imx8qxp-lpcg.c b/drivers/clk/imx/clk-imx8qxp-lpcg.c index 5e31a6a24b3a..e0ee9a2572d0 100644 --- a/drivers/clk/imx/clk-imx8qxp-lpcg.c +++ b/drivers/clk/imx/clk-imx8qxp-lpcg.c @@ -183,7 +183,6 @@ static int imx_lpcg_parse_clks_from_dt(struct platform_device *pdev, unsigned int bit_offset[IMX_LPCG_MAX_CLKS]; struct clk_hw_onecell_data *clk_data; struct clk_hw **clk_hws; - struct resource *res; void __iomem *base; int count; int idx; @@ -193,8 +192,7 @@ static int imx_lpcg_parse_clks_from_dt(struct platform_device *pdev, if (!of_device_is_compatible(np, "fsl,imx8qxp-lpcg")) return -EINVAL; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); From patchwork Wed Jul 5 06:53:09 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: 115963 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1677709vqx; Tue, 4 Jul 2023 23:58:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlGyccUrW9XcDJyIcDVZfIx/pBlV3fDeLr0qgt+ZBA7aoydJvkp2R98u2b1eYib5KlUE2+l5 X-Received: by 2002:a05:6a20:1613:b0:126:43f7:e270 with SMTP id l19-20020a056a20161300b0012643f7e270mr18274882pzj.59.1688540339159; Tue, 04 Jul 2023 23:58:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688540339; cv=pass; d=google.com; s=arc-20160816; b=ugTkJfB2lFPUn1LbwhbgOHzsITiOgxMCMw7AwSdW1RcdEAyx8fFflXEVViS17qv0Ik AsImZwGXFxCbblpiu+vzEdOey246QkRF4SLI7feG9Gzwtos0+zFt2q1AwcbOMhMTtCbZ NhJqMyGD9mOjvBuHVC7uziez7k+/uS5rcm4GD9mWbVtGf3EB/2qKJm8ZIVY3TBb6VRmB yfn4Ntf67Dg9EhhcK9k5zbSQo4oFRzuhpHMgdcnzV5lBKJw3rfeFMGIbCeZ7SsjGPmlo QiETLFFtHrfZcVL62+Jyk42Z9kXxAeS+W1Dd9RgomRB38CfuR61yfTbzP5rtTcHYNc1L /KmQ== 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=t78Ts2f+ONfhdnmDgCdAXpgNSzp/ttPaZtRAj3Dx4XM=; fh=iP+UxAd0pwuksGdwnLB7r0LzXp+l9ezuaxVZjeXAbHQ=; b=UcfITbO4SENui450V1E8hdHKEzAU2jrihlBtp6mF4f3+3YE77Prx0ivDr12CRQHn+k T5z7LGaGbOtVDeTEkjf8yN+rzHHxsGzHxWtmxkPOxWjwUAbyuPLzZM3SuCcqJW4JQrSJ PuUcEk/Tm1hoqHT8GTtNxv7J9DRtfsIQ/AMxbKgUku59pOOLg5biHr+ySoRpEKWV//rq 0i0QGKjQqXzYlKRzeSctxddYHv1PvYk5UE1++cxfFRgBjfavR2767rojfq3qQrOd4PRC FWnTPLODL6ZFkNCMt7/fLqru3Y+ywzLN8HbvMmmR6s8SigEDzPZryQo5f5GYEpjAtYR3 J0pQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=KJjn9djF; 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 t13-20020a63dd0d000000b005572d25a921si23419619pgg.419.2023.07.04.23.58.44; Tue, 04 Jul 2023 23:58:59 -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=KJjn9djF; 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 S231916AbjGEGyd (ORCPT + 99 others); Wed, 5 Jul 2023 02:54:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231931AbjGEGyT (ORCPT ); Wed, 5 Jul 2023 02:54:19 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2135.outbound.protection.outlook.com [40.107.215.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 517F51992; Tue, 4 Jul 2023 23:54:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R5XIKNl0mVYcYck5FoY97oiem+/DvISqVyIIxhGdPkza0r82X+ACb+GIT3JqJP7lF2hDQIUfoPcrFg8ZLhUeq7ciRGutCr25ozmwxhsXDzYCY7hhuWg4UENPjwv1TqZDwgarYuj8Zn7aiVevjirPYt3Ob6R6JRphiFRZyLsPTYP24PiglSnc6YD9yvXdb9Tz2dY1g5DNnKBQQVcVmStjZZHOr6txM7tQqca8nY58oi8T/9/0kwoom5DdAOt+RDelo9+/75u0vfaecyJFg9tqo/K1OniPY2TuzENooFYLQMkbjqMVUfN34t43kjE5D463r+ubgvBW/6Bhp60JQzyCjA== 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=t78Ts2f+ONfhdnmDgCdAXpgNSzp/ttPaZtRAj3Dx4XM=; b=eMUHKw+yOhng6f59nJrxrqYevlAwoBPf6A/AFonD1O9lietLVjIAfCGOQ1jgmzDkpJFhC9OHv1qqMwePNPJvxkMmMJXFS+pgRNGvIEp0HuUX0VRwEQzr1mRUSjNeE8byoMf4tSohQ5J1aLQcZbnDxNQPJrMixPukzhM2OGXn0end/hGPQXK7ECRyPXVcZDxg3kXxixDcvkRdzyfqsAnIN8PofMDWruqrw394jEkkDbHsU9VkdXN+MXPD67T/UobPYwXhElA36jNBm+r0FgNeWE/BzXwOp0dCcbcYdlku68NMkcDBC3ey6tlCGT8qEzrGN4Zs2x3xl63oA5xi1+fyKg== 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=t78Ts2f+ONfhdnmDgCdAXpgNSzp/ttPaZtRAj3Dx4XM=; b=KJjn9djFz2nq3ZvNbI63LIaOJkvF/4PUPIXV3IkNJ9rCAfhvTpgKe6UVXH0hxjGUnOzxyTq6hrCD7mf/lDBnptiyWWsFoOnD5oZ5GqLKY80ppGYlR0yoOPqAmK0p3x5ZDf+hPuEeLGNabb6zQDeexkJjBnmKM53jJYQDpjOlgxDyjtu/wWmFIoQXEbxBLmwqDqxJ3voiC/4hRpnpxywZK2MiC/3rZ8KGAHR1wgncrx2cv/YY5qRvyghYDEaRLcZ/EsIGVaCcfdPrLPOdcYWAGt7miIEZCeyoHddaVTmQ+tLYYsEollsAYPDSnk3g10oer6LHgbIR46lbvWp1/UKtmA== 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 SI2PR06MB4140.apcprd06.prod.outlook.com (2603:1096:4:f1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 06:53:43 +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; Wed, 5 Jul 2023 06:53:42 +0000 From: Yangtao Li To: Michael Turquette , Stephen Boyd , Matthias Brugger , AngeloGioacchino Del Regno Cc: Yangtao Li , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 09/13] clk: mediatek: Convert to devm_platform_ioremap_resource() Date: Wed, 5 Jul 2023 14:53:09 +0800 Message-Id: <20230705065313.67043-9-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705065313.67043-1-frank.li@vivo.com> References: <20230705065313.67043-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4140:EE_ X-MS-Office365-Filtering-Correlation-Id: de174659-4c73-446b-6d1f-08db7d249222 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yKNMZbEPXnNCTlXCZMNrjgAPBQLPTAOyDPp/s0QE6vFXlXR7ox+KE/dCYlqPY8YSauzBxG0gxIipEI0vLJ1UkVppJCawT0zz17BTR3iojdSwEbh+KZDpKlOVLKQbZe/1nciKOOc+AoB6b++4pVpdXk57HxTiBBrKwlF+67e9WglPZ/9H2eoyFMN8xhDg5zK+NEPmZ644eFd/cmJDXIDpDKhIJOo84Dhqcu4HYJB+MnT5z5N62EYuEGI8t2+qzKkGkzGb2+725Dn5e958q11w4fNquUaL/sN64a0zh/nqPrdmi+wsCNoQ1dAvFTyzGfz4PR+ZGMMSq+x9nat3RNSnQm7mQ/8421jBjrkXxrmxIHnuthQCUitj9KW3wqJFnfbgjgyUUG2enouBWsOWiI6J9RVhcXfg4eOPU389ne09gIGPk05FUcWKxYy8Dfks6aoIErTX7vnDdNkkO9KXW82UD1gla46KW6hbPq1hs6XcYuJZidesQFr3MMuHl0wSKc2V7CIH0Kn5pofuU8SpLKdLq57BqvxpgN9CMAcBk949HxM88OVLQ3sWesl1paN+pjD6VTD7C+tyk+dkZIwatSI9LgYtoS4kkiFABdC8oEXVlahu8IGhWDQgFjoEd6sYO7Cy 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)(136003)(376002)(39860400002)(396003)(346002)(366004)(451199021)(41300700001)(8936002)(8676002)(110136005)(36756003)(6486002)(316002)(5660300002)(2906002)(66476007)(4326008)(66556008)(52116002)(6666004)(478600001)(6512007)(38100700002)(38350700002)(186003)(86362001)(66946007)(2616005)(83380400001)(6506007)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: otlb1vDzV/g0APXSGpLg+VMGlZ6YXZy6x82se0HsRTC+eVSIpK/3kUOa8SkbFfXITTIAE2eZnArLcErRj/eokIPTl/YAZ0T/yeU/xA+OWXvhNh7GkD/P2M/8Ob853xPrkImR5M28pVG2toe0ihoCcrfNuzGcvpP1ULR1KbINjI6ItD+qVnD7jPjIat1XFAXvh2IMDFAHsEe4bNotH9TzQ95fe7QCDb0Y7CeMzQG0ODfd/8XDl4es5ma3x/FatiJDq6ilOfNegwuKNz4tKbFwjdMZAM3E5d+ruLmVLi8eXXsODUWUdDVSFgjnp1b7my3iAF5i9HXZIorPYqMJCwf6L6N5G5KOajk26dHK52TaUojQVBoqOc7YpJzez/SGHwcpJ2AJpQpB5BeqaLeAO3oZ5ZjwpliGYiI+N7OcTBcWopNR7TP5ASJBUJe3mcC4Y6QssW4ZKX/3+mu5hg2smr0M0SHFA2SXEcK/CxTNCroz/dh0cKqgC6fuUsT4yarxgkbNBT9S/VMYXiTabYYv+wVON3zwHcdmDrdRi6uoxSPCScm/wmE5pAJJ7fUdTiPsPOMQAzeZ6CD/Be8wIC8rLppFOR3ShCS1ZcmGCWuB3HcKQRoBRNU7UUb/GytT7E9LKdAwl90H4Up14fuAjAjOG1gF0Bq7K8p2KUlw4TNO4sgJRRyRAVqq6TDbKP0FvBQ3Ow/0A0oCTjVMThF6lVYkf+lu6Gx4P/RRzXaWc5oxeyc+3Br6U9SrsidViAKjmQHK8ojpZLWNlKvQM7cbVK5QAf4mJNedD6ghwpYJia1Xo2YDJpV3Dbucp4oX0BD9iymh9z5/Ti712RcwJM4iKxI2l5bpSlIaNbpFKxdaXE0IkXbgNGvIXSzKL8FEFenbMfMi+Dxmm0V3PYbVxmrMgJjdYbrDBwG0D/J12H4KL4PnO+/aMESaND+F5lJqSUS5Cdob5lijE4mzMVZgBX9pi0dFJFbBlmGAIAVtpWI0gKuquaJJlBibaw+gr+UztNJQdrX73WlBjD8t4CL8dT6HRYkY4SohcGlByH1Yydae5gN0e5GwP6gi3PgdHDd0TGDqp+EB/g2db1tnEtiBjerdeDQC/MBMsbgI5XRWyRvJzKT9RkvkuiK8a9X0PziLou59zwzZ7fk1vWzPtZLTgpNKNszMy0t/Man7pwXvQ1ZKO6rzlx5/VlcBMtkYW96sdymx2OiN5lCISRCscIsUmznrse+3175jd3MIj4IUFkyMhqLU08FV00c0P1+T/bpe1fgeWOI/tgN89gVaBHeYt8vSHuvnzxB2wUYpoRoZEVpBAhsY2wSKRGmkvXpa92cFi4Atec780C7ddFITvG+4IXAMh4vhG0ay8R2Vq8Otz4KpLWr6B/o73Ol/pQ4GyG+islFdYR6Rf78SutCVpXAMpSBDGUuaBNXqbpGFEZuITTifR2iPz65MCUgCKAIQiHimx2X8VEbeXUC9wdt58MxdVgj6P6yeD2YDRA+seqWViBprWObpgdhb5xdgzSysneVkb3xVKArbiFC4r+lyotUykjlQuBwtJFjjkL/hHSXPXz87VaVgHfPqxsCvs2pq5gSMYKL+ngiUFRy9 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: de174659-4c73-446b-6d1f-08db7d249222 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 06:53:42.8527 (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: 6/E2Avh/eC+uYHqptNDQWMvUcTb2FZbCo7EwBqH2ay8T2R0cNvJq/LzpUskCxzquubeMnyCEsgJp6QTklV+/bg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4140 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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?1770562874230394684?= X-GMAIL-MSGID: =?utf-8?q?1770562874230394684?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/clk/mediatek/clk-mt2701.c | 6 ++---- drivers/clk/mediatek/clk-mt6765.c | 21 ++++++--------------- 2 files changed, 8 insertions(+), 19 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt2701.c b/drivers/clk/mediatek/clk-mt2701.c index 4a154da8a543..4269eb37be2f 100644 --- a/drivers/clk/mediatek/clk-mt2701.c +++ b/drivers/clk/mediatek/clk-mt2701.c @@ -663,9 +663,8 @@ static int mtk_topckgen_init(struct platform_device *pdev) struct clk_hw_onecell_data *clk_data; void __iomem *base; struct device_node *node = pdev->dev.of_node; - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); @@ -887,9 +886,8 @@ static int mtk_pericfg_init(struct platform_device *pdev) void __iomem *base; int r; struct device_node *node = pdev->dev.of_node; - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); diff --git a/drivers/clk/mediatek/clk-mt6765.c b/drivers/clk/mediatek/clk-mt6765.c index 0377e6dd3206..bd957d7c6d54 100644 --- a/drivers/clk/mediatek/clk-mt6765.c +++ b/drivers/clk/mediatek/clk-mt6765.c @@ -731,13 +731,10 @@ static int clk_mt6765_apmixed_probe(struct platform_device *pdev) int r; struct device_node *node = pdev->dev.of_node; void __iomem *base; - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(base)) { - pr_err("%s(): ioremap failed\n", __func__); + base = devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(base)) return PTR_ERR(base); - } clk_data = mtk_alloc_clk_data(CLK_APMIXED_NR_CLK); @@ -766,13 +763,10 @@ static int clk_mt6765_top_probe(struct platform_device *pdev) struct device_node *node = pdev->dev.of_node; void __iomem *base; struct clk_hw_onecell_data *clk_data; - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(base)) { - pr_err("%s(): ioremap failed\n", __func__); + base = devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(base)) return PTR_ERR(base); - } clk_data = mtk_alloc_clk_data(CLK_TOP_NR_CLK); @@ -807,13 +801,10 @@ static int clk_mt6765_ifr_probe(struct platform_device *pdev) int r; struct device_node *node = pdev->dev.of_node; void __iomem *base; - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(base)) { - pr_err("%s(): ioremap failed\n", __func__); + base = devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(base)) return PTR_ERR(base); - } clk_data = mtk_alloc_clk_data(CLK_IFR_NR_CLK); From patchwork Wed Jul 5 06:53:10 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: 115980 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1688434vqx; Wed, 5 Jul 2023 00:23:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlFwV3PPRHZSFglK/FKSSSqqbjTl8fss1fH6hOPOs01IMj98N48lzzZnP9l7RUvzBOZfV5J/ X-Received: by 2002:a17:90b:4a09:b0:263:f643:4bd3 with SMTP id kk9-20020a17090b4a0900b00263f6434bd3mr628713pjb.27.1688541797726; Wed, 05 Jul 2023 00:23:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688541797; cv=pass; d=google.com; s=arc-20160816; b=y/zpP3uqqq/81cFrtNHz0ZZMFcnaw4G8dFYdmi011K+PbDj4K/69PR58h1eoiYKe5R IQDTzeK6CUicfmw895rz+nHuYQaiId4R2ScsUuNdI/LEC8Rc7rLTQqPXlPNKjYEs1bLi qg8LeZxpI2B8YeXnOCFgdlKcvIcXDkckd665CcSBx7q9HK/zOyFHVtVgolrlJdg9odrq U5q+34+O9Dh6uuAfYoHN57SjZWQZGoxvIY36Opy1Ld15K5FT5TL6kW0LS5M/XeVFaUt/ W00qA6cHCi1sRhEmxh2rKSLm9wpogaaCREfbzRDlILIPIiDLWufuolw6xQ4Kyc+2gFOY p6qQ== 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=XzfS3PCYSF/HiIVWqi7j0l6EPa4d4rcpxaVuQqonWG8=; fh=eJb9aFMn+zcpugt6x0oxE7SoP5+L+6kGJNu7l9LBjcs=; b=wLFPIRli3eYIoxij2jcGRaY7MQfhnH0UJHWD8y+wyB5ToXkANBPll+KfEuanFE+V0L LVUAUOP2aZ6fbwq9+9+QXekCM4stAQAseJzKNX7UFIzBl4TJtKl3JX4QtU8NmkcpZpLE kvSWILX3f6lzIFhifqjWoUHP77BVXeiOdaoo6+PIKtZJENntqOTuSZU440EYtkPOIqUh MVBU8l3hMARjVrrGVg/LzsMtY1oNsQn9F/WLSjChn/OxfeCO/23+QhYWiP1n9Cj6fkOR xaq2uHfAf1AngJ0jkM5BULnQ6UHCF+tJGbKAh/f203YRCaHHYoJFe7PGe5RlZpEBDGOf 0/7g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=q0Nh2sl3; 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 nh5-20020a17090b364500b00263dcd605a0si1100232pjb.70.2023.07.05.00.23.03; Wed, 05 Jul 2023 00:23:17 -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=q0Nh2sl3; 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 S231997AbjGEGyq (ORCPT + 99 others); Wed, 5 Jul 2023 02:54:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231982AbjGEGyb (ORCPT ); Wed, 5 Jul 2023 02:54:31 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2122.outbound.protection.outlook.com [40.107.215.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FA351725; Tue, 4 Jul 2023 23:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GNX+RK0aNLct8rn6KvNxSJixyyr+EIQxePmfoYP8MxNpBOE/OVb/8kPDCtq897pAHzLSqJsc6ieSxlT7+wwZeKSoPYTMByuHOcHXGdpI4VXTUPzfYWxeoLXEHVEPA0X9t37mpmpAa6eWE+9/le6QBaZMTUKX4E/5pj9jTpvzH0efOXns7/3ZllK/AkDK0VHWcS+sQGdPNPuEZItWEgp7a9mXKb9z1FVvazE5/oiMUzT/kmvXa/gLrInkdsNrh6MsZpUuXbBFl4ZCRJyxR9iDNHkzBlhQ+zP7JaDCb7BM8JvAQmMWKL804AWFZslM3rJwkfONdNROO/rsAlbUgsUtXw== 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=XzfS3PCYSF/HiIVWqi7j0l6EPa4d4rcpxaVuQqonWG8=; b=MlAiF2mZs701cDGxCoAgEhQBh6iNfCh1vulDtjsgUaPYSEOg/smq8TKvGvCOEEeQn/Awrl5K+2fKMc0rM30c1fVjW7mtNe3KYIS062Q0xI1LUfZVdy0LHKomXDzraQ9T7bW3m9rXEzS+096mdhTZAq+2/fxD61SJnZZb8JqMn+tk1ZHjJu0whbPw/qrdGTKdnxJJIR3pf2AVmjaeU2Q1Eoid+Jsinjapwx+V34sfTIeyxaW80ISSVKXaASTw3KjvSR0mBp9vGVhpzB2LBVn1mFV9LQ4VoMiQdvSJQUh7YS7qT8SYkAZnMyWvcs+VW9dxseBZr9p6UGkutGihBk1ClQ== 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=XzfS3PCYSF/HiIVWqi7j0l6EPa4d4rcpxaVuQqonWG8=; b=q0Nh2sl3i8OSTWOwErU6DpXYV4Rmtu4RArjyu2PNyFzX8Lfwaot8G/36BOfmN7Op5jRMC9eQmHLt8taKxctxPdgK5dp0ug4WsV7JFqHlF3siEaM3mNLo0jnrlWs7LS/HtibxBmykk++aUhyyHzCXqEntLG3KMR5oIb0qSRbCQi/CjsfjKHpF17/0t2cCodOKAtCZkY/nMiXi3W/gP671J8sUsZq3XGsiMDODtz4xHDpbrIepYMot8BPWBmWdKI5pVlnYN50dK5CD7XjYcPQ9SavDz4xnUYiHWzMMoE+fvg71StqGQ0jhdXFUoSY9O9Upl37obm15MzSuL9KHxdP8vg== 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 SI2PR06MB4140.apcprd06.prod.outlook.com (2603:1096:4:f1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 06:53:45 +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; Wed, 5 Jul 2023 06:53:45 +0000 From: Yangtao Li To: Tero Kristo , Michael Turquette , Stephen Boyd Cc: Yangtao Li , linux-omap@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/13] clk: ti: Use devm_platform_get_and_ioremap_resource() Date: Wed, 5 Jul 2023 14:53:10 +0800 Message-Id: <20230705065313.67043-10-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705065313.67043-1-frank.li@vivo.com> References: <20230705065313.67043-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4140:EE_ X-MS-Office365-Filtering-Correlation-Id: 34baa21e-9208-4949-4ce4-08db7d249377 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: r+wqAfNorDAhqcoVNHiQTl5wEN8ekyBgwZCJaBd8f8ZURgnHq7vM1n8RyrcneFMiuIf/5v1TFS9W/d84tQg5BXGl6KwWBvBoWC4loDv1YQVUckHtDDav95sWwD8oons0kIBDrfl5jaDosafZxRD26qxHVHIwpdVZxyQKnQ80YavbWkVwmsy1HHvI/o0862ygdb5nIS3aWfOQHh9/LTg86NjGu5Qe0VF6aldFMhOjpbhiRU8Spk5a3riysix8/0HTuhMoXxSeh+4EU8SYzMqRvj0fBG5opaIR+So7v9wMG/8lAjE1WNim/DQr1qmpmylplmeUM50Oxl5RCnhwTUi4yvlQq82q9JZMmIR+OkyrDCJJi/SHby6GQVsx7hB2vLt+/MUvF6Lk19vaZFHXLD1e02uUv78W90+aeltEM89uUkyQoZHa1e1eDlgSNibZFmf3+14LPsD1j1EIu0wlKxJc8ahRdKWLX1E8jKAB+hNpHVt2bmgxw23GxnvS6qQLZVqj7XojVcpBtBWVbP/67s3etrIZh7VoPP2MLn2xoHu8Xa6KhhGzi9eUSltq2k0kbd2bJATnIUEwjSQi6dSMVg88HYMDrsh+Kcu6XGHesVViMNIMXXDP/xQqj8K91lq72JZb 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)(136003)(376002)(39860400002)(396003)(346002)(366004)(451199021)(41300700001)(8936002)(8676002)(110136005)(36756003)(6486002)(4744005)(316002)(5660300002)(2906002)(66476007)(4326008)(66556008)(52116002)(6666004)(478600001)(6512007)(38100700002)(38350700002)(186003)(86362001)(66946007)(2616005)(83380400001)(6506007)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /Cp2jr052hVAHTXgqBh5Q9OWpEUIbPxZ4ccsLWvCt9fAI6/VNa7C/6BUHGUI0z8kj9GXgCcTbQgJWOQXPZjnw+Wm+eCag21pHNsrwXC5SeGv+noQKAQ01loz0U1ScQyviaREOf1AvZHrR9ClOez0nRwh/obxi2Apw0R/4xJfH9TWZ4BNiqs42x/Ev99SADtnofcXHaWbhFWzb3ybHoN06JtEzh1Fhsne/SUW6vNPvNW+dihOdfXbwJleyiSbfdw8p4ewplU2LvpCqwwNit9fNm1RB2rEAxMxAHxftZuzo+khArX3rfVlweyDRrs9N5D+5UmwkvLVd66Nc9O8OwYwlDM1K4MiKYKlj75Um3iHLNe3QS3VwzGfAAf/iVHpa1jh8owHdW7SsT21a6cktnBy0ukzZ1rx3zGSxEDTnSWTPqfQIVCrghJW3SBNUR2cILxxZsDg/cR4sWbvwcD+9aVQoUGgQ6nIHPJjKqvKOlRd6DtyPqnyfEkEgvvq9GGIrhzdUaD488rvcgsDFPVIjf7vPqzwteyOC5CQb6tSsAz9AKRx80iSTa3RhkgE+w7seiTottgcYUatVkQvygrr2VjTmxaCVWVK2GN6zGUzQuOkUAg9mDLnM8tOqgWtbNrwTI3jGX8QGp27Vn10D563y0bahe7DBYrt8E5eKs/LbehmyWQqRjBOjWnSepuNioGJ9pgUUvhd3tmE/ScHRc63byKpJ+hQses66t2M529/i+MhnbDOLQMEHUvsMqe34CqYAzwbaLUchvFqMU0cClGfPigC7TiGNv94DWWJtrBrXkKKfNNf7G15HKa9Yf+awtJyIyGBWc+o8yVumqqNCiRUXekJ/4JUnjIiJMERjj7Jxt2UWSN/6vMgj515TC+0eOxiK9CPXUbFB52GG4CB7MckDgXMw3HVIP01OxWO1D5tmgZsog4OKqEBb9alBZsJNR/V3IJn2CYsly5iVf+1fagD8pt4jonCWtog47cMHv4XLRCo4hIF3ego8KiWwn7W0FtgE4Aix8KMT7GM4iHDKisiamuUN2Db8SUAO1InzZdXYiQ3t7AnsTM4beRXaTD046HUIeLZgOa+d6xYwSzNIGD7e6uykxPnK87L1FvAnZ1h2eqFHgJibUBLFm0TBT8Kh312VmjUpQ6CyRcUiYbp5mmZ8rCCjZXo6eYV02fxBHUtgdo3gN+CnJ3hnnYn+uqbaaJcbX3PefsFnwdHYsDTob7QDZO6wyUwbJkzZgfTqSCCWOvcahcXxK13FnIlehgJueOev56ZXgsMcAGA652NIQt790S30eMm+7kETfj9OIRSsGVcmcM+fSTfHT3jdniDIVadqBmHWOeiHsGELSFpL7WE/+9J9toBtea/FSec6d54KELymXycfCcvzYntlWLys7s1ZeMY5P6k996NttQAoZUHBsWy9/2XjbvDqxN8UnCaJfyATnVTg6cAtR1KEQNdAoEYhrN7TRLW1W4dniBOfI4LeGACZhdSST/D3kKT0c6aZvFXjDo0kFGymMRBriFsRAoHQfUNK80IWE1R1jemxFz25sOt/5v99kvpmww3SJEUZ+y55SSqaA1jsjcQlH5CpWUpn1Ni X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 34baa21e-9208-4949-4ce4-08db7d249377 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 06:53:45.1575 (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: mR6++G0mm18LDGmJ/ej1HiHXiGHnNxiXi5ZYr1+muNV+3Apv9hQ7odYXbx48cGFgjK6skxHOwNCNehadaXnTuA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4140 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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?1770564404154187208?= X-GMAIL-MSGID: =?utf-8?q?1770564404154187208?= 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/clk/ti/adpll.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/clk/ti/adpll.c b/drivers/clk/ti/adpll.c index 6ecbba4342c5..ff42ea75cb43 100644 --- a/drivers/clk/ti/adpll.c +++ b/drivers/clk/ti/adpll.c @@ -881,14 +881,10 @@ static int ti_adpll_probe(struct platform_device *pdev) dev_set_drvdata(d->dev, d); spin_lock_init(&d->lock); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) - return -ENODEV; - d->pa = res->start; - - d->iobase = devm_ioremap_resource(dev, res); + d->iobase = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(d->iobase)) return PTR_ERR(d->iobase); + d->pa = res->start; err = ti_adpll_init_registers(d); if (err) From patchwork Wed Jul 5 06:53:11 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: 115961 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1677602vqx; Tue, 4 Jul 2023 23:58:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5BupKRR3iLQ3cejXAyT+8MlLu11YzBdUAKHr5sCOj9geKHjq7HyScNg2oUTRBqoHQZm4a6 X-Received: by 2002:a05:6870:9d8d:b0:1b0:18cc:d9fb with SMTP id pv13-20020a0568709d8d00b001b018ccd9fbmr19065286oab.24.1688540322883; Tue, 04 Jul 2023 23:58:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688540322; cv=pass; d=google.com; s=arc-20160816; b=CmZ2RjRfSqlyPJZ7QlzpUnzrLbpPGa3flPKC29rdDFicSR2F3QQ5/r3egU9h2fSdKe XadmuD5oe+EpwbBbXymSocC1GI/ZLwCL7YXd8nIr/vkzZoUP7WPo6/4WtlcO7MR+XhAD Q+/AVfPfn3qXIBqG22Ne4UE571gLca0nrOhUhiKz1MBmhwlTgmP2VXjMvTC4oCs4Ldrk Vp2QTXeCX53ZlBdhQgZFzUHWUcLnFib0/1nozrCcsXRCpeghVgEBXsVCjNE9Gg/aj1ML PglszZANWiX8OOOxaXrhwV2kxJDFPb96pN/HsZc1w6qkqYTTeno1CgRaX0zxAnyx7jjS K+9g== 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=1YP7k137/B2iH9EDvN6Wq3AEvFkUfKevE7BAGGMcdN4=; fh=GPthrl2HJeK5T9VpxTXdz1IEqq9N9eNOX3ttWi47Iuc=; b=LuUrlq0ZJ7SU6przXKcl/59sisywDV7V2gSajQT2XUOyvASqQrFZgh8jx+xSA5S711 wp+OBsru7J5m+CJXrd4qqIRjfJT5AJh2kuOs2Yfv67rtqN29suhiBPL3ds43tT/TArl7 YJAYFu4//Ukx7REI7xWrihzh49rdSFuQTbFkitaTt7jc3zXWqnSnfrVkmqjkjNQutDOn A1UR4SrkiD1wSv+zuoh5vJMqHaFYJ7QExMESmAZOHZHTRNlDlJ43ncJQ0W/4TKstjp3L Yo50vdrMffyutcRvRnr7s6UEB7y+kjV2al0gld8TfjnnB9sLvBGhVnQsdzxEL6nm7URj iOtg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=mjt+hGbM; 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 q16-20020a656250000000b005537cbc032esi21830706pgv.206.2023.07.04.23.58.27; Tue, 04 Jul 2023 23:58:42 -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=mjt+hGbM; 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 S231140AbjGEGzF (ORCPT + 99 others); Wed, 5 Jul 2023 02:55:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231931AbjGEGym (ORCPT ); Wed, 5 Jul 2023 02:54:42 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2135.outbound.protection.outlook.com [40.107.215.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B2C01BC8; Tue, 4 Jul 2023 23:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hs9aRLHnAr5nqtR3qwLiV11XDh6DbBD3lb8vHIUA68IoV0bQkg7ajU1A2J1bQQdUTazmID+AQOT1dmjp48pn7uWW5mxhVGk5Eme+vYRw2U9J1y5Q1ug9B9UuP5EM2mLtCMifqxvA/7oFzGeu1XjUCAlNIF5VsN/Qo8rGOIQ40JE6DWH/0gLst9Nm3ogyISEA08vuBxpBq6COIgB+Xi86zfHFfpK7JrG15EmvNZzHyCFjT+ljyatAgZX1mm4UEu2iAcBQ1Kj4Gt1w0vuG/LUAoAG+WEAs5CCaHpPa2zvdCb1feFN8W2aIT/RXV1+GQmuZXRDGgIQblcF622Z+OmgUxg== 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=1YP7k137/B2iH9EDvN6Wq3AEvFkUfKevE7BAGGMcdN4=; b=gXFgKNfDCp9NHmhq+zsJ5v1TqpuG5E6IvGZ5cx2IYQmewMbyc+yq41Wo6E3XHMZfuheVx/6EPjbLkSNxXO4oLBCkH5o6w1wc4w8oZHGhgjI27xX9lnxTqabXzON+GJfTncUNesLEbnMRBT4TNTVyYx9HnKYbkB/hLzfL8Zm2kujSiRmJQKNpKSm5uhORdHmWbOJ2FDSM6lWc8CyiN5jW2W6lkHDjQuuk0j+GJRYus1eCq7ihFHsI1feiAVz88GWKS8fLSc7mOFd28aZ8rrSlLwVcZpk/k6m2uF3nqVEfNq4eKHR1Jp43iQkyuzZSLN4WYkkrWMQgHBGeAjPQcDcUQw== 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=1YP7k137/B2iH9EDvN6Wq3AEvFkUfKevE7BAGGMcdN4=; b=mjt+hGbMjhGEeeg8x5SgvG/mN7qBB1R9yeBzY82FiBOEaQmQY30ZdqxTfbuDLLSTwnCDaOfu/PDg5SAcP8c1C1a7RaGshc1lePWRK9Cne+tp5AKwGa535NY/rV8Vy1SuLFZE5oCZDeTGo8Smmf1NwyeIp2zAE2IWowo6pH2ZhBQsJaEF+I695y6sLkHjsJkK8w4ajJFdJZxWWg/QXZVbYXuXBNtgKMth0gryY4P/e2tGz6qGFxN1W4jXLbaEvuL8tDmIy3cuOFBu5jCvIpXZTBFqPNT81pvfaBzS5u/8sXpstTkfUjK7YYr4TTzeAkgLsqEzqaA60ZwO+2K+ZjD83w== 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 SI2PR06MB4140.apcprd06.prod.outlook.com (2603:1096:4:f1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 06:53:47 +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; Wed, 5 Jul 2023 06:53:47 +0000 From: Yangtao Li To: Dinh Nguyen , Michael Turquette , Stephen Boyd Cc: Yangtao Li , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/13] clk: socfpga: agilex: Convert to devm_platform_ioremap_resource() Date: Wed, 5 Jul 2023 14:53:11 +0800 Message-Id: <20230705065313.67043-11-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705065313.67043-1-frank.li@vivo.com> References: <20230705065313.67043-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4140:EE_ X-MS-Office365-Filtering-Correlation-Id: 633cd278-5909-4c8d-17c0-08db7d2494d8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GcWLqGfHUqaGU4T/hqcfzg8TbyHZx8HtG0tUgNCAI0r5s/eH1qWbPICbNwRWBA4G/DEdrgahNCq/62yRjNhfdfs/J+DZAMxtG/aOxeNgQaqqIsybhEd8d/iS3nWtavgjSBJW0gweHZx/C7bkWKpoNQZ4PtyRzpdkkEvNIz8rw/c1vVw0PixffhovwftNGzxdRGaIM65ZUsRiYpXsWHK+FvKMkPubp8DuJ9/oq45e7h+wzU31bKxwHrNwvGTykG1KcUsxiq+QZESM/8Y2H0wCFhdTcSyupMHGQMBEU34+N1aWpJGOojZt4Fvy2FotWEywmWLt37mMARSDSzNS6mwG/FFjl040d5MjoTOQIUqEFOpQ4F9qgKjASo74IVULsIraX7FaXhoidh0RjIp9gayhsUQPCHPPV7GQ749W8THf8ay7kdW5/0NvX4a9TPk9AWONHyCUih0yKy24g4ueEBeMYI+NOddtSzYC8SRMbUP9jwbFsmg0bIfmP1qHyA/5Cz1XJos2NfBNFjAn2iMYKUFylq9CucHlfivisQwXxESxc3ncH/PxNL9EjoxM0bo40HUPFl1n2/ZIhg/oyjpkJqDr9INhXdFucPfCVNMhHX+Pu1OWLvUIUZL4pXkzezOsQzIl 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)(136003)(376002)(39860400002)(396003)(346002)(366004)(451199021)(41300700001)(8936002)(8676002)(110136005)(36756003)(6486002)(4744005)(316002)(5660300002)(2906002)(66476007)(4326008)(66556008)(52116002)(6666004)(478600001)(6512007)(38100700002)(38350700002)(186003)(86362001)(66946007)(2616005)(83380400001)(6506007)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jV+FLcIF1FF6KPaQlowEVhW/m2MR48cy1/ymK5Q/RUDftexBJA5DQJjkxZ+yGCuHkKc5Oc2Z99rh//4nYW/uv5G4FvzJU3pBsylKSXZXghhvO2dePSlLLJWRB8LYGieHlGF6RjAPsXPWMOaAWBfNg/C4m/63wesTbwyTkRb38Q1hSfjj0z817Wi3hTE1SauGEqG66jRxraKrf5ffSi80l8jrOKd8IDsaFdkUtsfieWYNTbvOidxBcnUi4WaPUzCRkxP6dCGxXotP5W3yjCn46uZFj3El7Jl4H+hifnzOK56b0zOA0tEFBcYoGP8SM5TtivmCHjm/47cKWnfwYFmjVDD8cB7N5TEtXhi7l4Z7y0QGlkFO1qsmJ3ltH5vsiu/N0GwpwOJhcjGHLHBbrVG5j1V2itY0R1V49bcZv1ZmJkHN7rUEedxXZXFftXySnOF9Py4WETajue9qV/RepJRkyzSwcWDlMjepIBZopcsdLa+Azymf/6DFL9T+P8CaveVHXqicaJYKh3HBRrsh/f0qVF6Rfqiv8T+w6YdIfw2SAsGJfRUe5E5EHHothF0WkrrQOniTBVIROk5j/s6rvl159Z/JNg4NM/qiPX0eaXjJ8sYuQMQ/tuG+278lLXTFAJ+a3pywwXixuazud6bprKh+UMgPGlEgBXVodd87hqNNLll78vV0KfgLe3YmaZyOAqzCtx7zkB2k1ysjBwuDfiW0ibZNhW7uWspDDRPYf+we2qjTVSN7N5uCU8cZMBY3+fTHll/4Fr/tXVpCGjNiB+u7NwcW6uMvMP9hRUfJpjklWGB6cQk2ToqF8lMesrOtps5wK8vbH7mqIXX22br5lHXaTphtKHprOnrkmG/iKAuwGrxGRsHm7A8wOydS9lpr/dqsTfOxRhATF3CEvbJ3X2qqTo2DUA41PFm37Qfb3sSv2F9q1TDmDPfxCc5DiPqfL0+KJUNeEeNjUTaV6W7CRZB0c8CX/69sbc5JN/0xNfjRdOuYA3nys/R3lAc2rcPVgc1StmYrigunKBPF2oAPid6QtfO1Jf/k+e/Kkg30j4rn8/cDHjr/WL3Qu9uHBgFH3y4DSokl/857pOD3+EgOzrMaa/eLq0lto5xzmkGh9rTZSPCG0222gH4rUD7D7vDug3fzZiwMgOHqdW1GD1sNt+GD9j/YiBMcStOWzDHjw6KBtQds83K2MB78R2dVVf41H96kjC2rA98RZWgNy+JobyBzEel6cK6cozDZzzxDRuhy1Z8plub1W11huZ2RFmLSNou4AbR7OFaKU3nrEWZInOuB9RfbnvdvV3F40xVaLltGONFM4bRK5OlFYcGrhW3iNc02QJuU7vaYCPiD3unjp5jsD0FHb8q00KcML0GyzVIL0qavQ/snfDcrqz6aNyvE6WaWKRawUx+VmMesQkFUJWXLsUL1ZnifIEVoFt9Ivkq5OOJK6tXtstUTtswkX9cffDjbYTPw90RCv4ISEkOy2hrCFGqszMSkRf2bBt308/zJq6aqCWlUTGiwyWAC9VxMMX1uBJe3vwRC9aCrUxjhh2+E37P/miwvBU/hUbLa3inEKoA8U/Wwa9uVE5W7Jqk6l+l+ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 633cd278-5909-4c8d-17c0-08db7d2494d8 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 06:53:47.4508 (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: c0ZRcj/Hujr3g7P2a9+UN/DcWhLvmk/UHF8xtONdMPbEbcIH/m2I+wZR8VWPsTTZEVrXvWyTuQCcbrU8jw9m3w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4140 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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?1770562858047558044?= X-GMAIL-MSGID: =?utf-8?q?1770562858047558044?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/clk/socfpga/clk-agilex.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/socfpga/clk-agilex.c b/drivers/clk/socfpga/clk-agilex.c index 74d21bd82710..ece4684a5fd7 100644 --- a/drivers/clk/socfpga/clk-agilex.c +++ b/drivers/clk/socfpga/clk-agilex.c @@ -458,12 +458,10 @@ static int agilex_clkmgr_init(struct platform_device *pdev) struct device_node *np = pdev->dev.of_node; struct device *dev = &pdev->dev; struct stratix10_clock_data *clk_data; - struct resource *res; void __iomem *base; int i, num_clks; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); From patchwork Wed Jul 5 06:53:12 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: 115972 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1684154vqx; Wed, 5 Jul 2023 00:12:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlHp9KXSqxj1nTQiw6YwCMBiNSTteIIJp53uitrr6ROoB39+ApxgdP0AQTgijBCt37Vd/7kc X-Received: by 2002:a05:6358:f1a:b0:134:d07e:5145 with SMTP id b26-20020a0563580f1a00b00134d07e5145mr11099200rwj.6.1688541148665; Wed, 05 Jul 2023 00:12:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688541148; cv=pass; d=google.com; s=arc-20160816; b=yIugOTcPPpxC/QsdF5053gQpZnaIU62/fltjQ99dPefyawNyCH7dvO7AMEw5drALbZ wuBf2Rk+jhJD4AYy8le92ZiqD4zxnYHA4dWoi97KEXVYPmFA1nHCV2271riOexH4WH1m PM+ifJY5C8zn8Ga4rimJEBba19G9N3Sw+Pj7H/Am+SHp5ssrBR3wc7iy2EDGAzX8UWi8 AqLB+mHZRe5nA4gN5kNhHKEKQu/d21e1JhJGoJm0Ya3+scjpkIJjAjjxIST/rFTQchEP aopF42iwCBAouWTnZnB8RQtPeRvcPBcif92aACMZmupiRmTZcfDBcoXvP5FGv+6MCU1/ vzZw== 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=Dq/ZVYgUXKyai+HzK/Dyb2odRZZrBRdAg2o3po8nnUQ=; fh=CQzEdrUSe+qaX8Cum37/3hAZ5hkyeCHF/61KYBGEYl0=; b=z17CHII2iwkGZdf0dqYUn+bIsPRg42xrDXxRIqcHgjr5M2C5O3arZvfIsvrio0MuEh vCgQTA5ehgEanZb4OQWZkdg/nAzNT+gHMeN6Ne4ei/Vrj93EAHLzyqB9JqM1fTAJHJ2H JUDFJY/yjIVtDSMSKtZrXT4oXmjpVkv3dI0EnN6l87ukHoGfbV+23HLmSlKO3ledw2w0 VaBN49bKxH5kYfnjjLT2EAArI2CKrvgd1jPK5FBDU0y0FFjG8PwUzCwbqy3xM5ATJbYG JDaE7/aRqXmHsef38FpnRhFEF4rT9gwFuHK2VGcL18ZZTl1PIuAHu6p3hOpP1zaKPQiR Admg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=CZBqTRO0; 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 v135-20020a63618d000000b0055387a764e9si1717350pgb.307.2023.07.05.00.12.16; Wed, 05 Jul 2023 00:12:28 -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=CZBqTRO0; 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 S231932AbjGEGzW (ORCPT + 99 others); Wed, 5 Jul 2023 02:55:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232045AbjGEGzB (ORCPT ); Wed, 5 Jul 2023 02:55:01 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2122.outbound.protection.outlook.com [40.107.215.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D751C1733; Tue, 4 Jul 2023 23:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qidn11MFT0kilT5OoRgQIrq0kcsbLAP3BFd/FELD2KMau6sTrLSrFcWGLTc07vTUVayDjqbxLKwl+Z28NGmcmWvKrLjHtXha7f9XiNshviMrJi33X1wQD9bVKR9EDbjQl9qBZgOqVug3wD6vQt26Tvp3qh4OhKZqKJG0i2sI2n036Kb3SOstpR0Rc5xN8EuAn0aC0utCbpPo0sUsut4RCLq4mkftiTQR8KswX3n7kXXfdSco5upUo3J/fPYhtO6BZKgzYcBdmPUKOM9/QjjX4UADLrKkfThXC/kR/w701V2VX8+pYX7tvfkIpYuzrPeoD8Elm3rsPvl1yWND2RdpHA== 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=Dq/ZVYgUXKyai+HzK/Dyb2odRZZrBRdAg2o3po8nnUQ=; b=TdcQeNJ6pXpQ0uT7HetZ6q++w/30DzRj0eFez6UN3jeXSRZBR1TCHYZUqDWSp0ptGcbs+Yh6PrvN1crrfRm25b5sU12+cb6Q+hGjgVkYACbhZb4RNgoWWIOydNWQGyE/lsWYz0psuHC1RW+iKU6XH2jcoqnfrWr3+/j6f6rMM0pmYJ98R7L9zqG6qvb3KD1jFF4+h1gq0FVeBGxXQSVeqXD/yuYIBlS0jX5tQ5fonbzsSMQpia41yqpJqhg92PJpHZqlIcHW1yVU0jB9shTsKQsQgDmk20WJxDM2+ySlStCWrRuUPo7HEccD05TbLxYtSNOV9NpLztG6XNUw3Ly4eg== 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=Dq/ZVYgUXKyai+HzK/Dyb2odRZZrBRdAg2o3po8nnUQ=; b=CZBqTRO0aHiiVyWfOIBhOIoBSS+O3YOrIlabVSqefYkD6SS+oaFMkx0Kkzw8voRMyCsz8O7nCzsczBQabBgXVONF/i8eV39X5d0BtwCf/Luj3Fwj5YPGHKbYtLJ0TkunkctvfiS5IcZOHshVe9eAzwR6QQvO1wBpIzItV5bcF24GH1KcLvQj/1VG8BgCbDZ9qujSKx0QW71JVEv6Lx1aRdrfXqsGX1PbOABnyXgE/idQYrM5GKrPSvhPHm7ZdTwyCgvA0xTgjwwEikH437hQJdREB8Vgm6P53blWrARdZrejbU+/aQBHyhuUJVptyyK40U/jdMr6nm04UpY7Tym4QA== 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 SI2PR06MB4140.apcprd06.prod.outlook.com (2603:1096:4:f1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 06:53:50 +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; Wed, 5 Jul 2023 06:53:50 +0000 From: Yangtao Li To: Jacky Huang , Shan-Chun Hung , Michael Turquette , Stephen Boyd Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 12/13] clk: nuvoton: Convert to devm_platform_ioremap_resource() Date: Wed, 5 Jul 2023 14:53:12 +0800 Message-Id: <20230705065313.67043-12-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705065313.67043-1-frank.li@vivo.com> References: <20230705065313.67043-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4140:EE_ X-MS-Office365-Filtering-Correlation-Id: 8a6ce61e-dbe2-4496-dfe6-08db7d249657 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JH78alT17Zw8lH1Y/RrqN2X2Oe4zG/vv23LvPewBWN87weuS+/QqQCLYrqAXPEKQ2GoO/VZLwvyDAKcNbrYkV/aQ8ngaSddtO2hH1/rD5NgRRV6JJcvbh7qAIieQUSUVJjHiC+MESuRUSHWvu2YsgJ3UW0P1znwAFohYpi30Sp+EoIplcWgVyMLj6ZfGIsLwIbq7Xcn8w/2/K8MNUevzKRO0j01mbki3dvHCQsFNiLbm6c/vxH+mx8rr1FFSDAay/K1JxapsBvP1lUcWVjbbHLnE4Go4Njpog68yDxJxKM8rFznDeqp1GkAA3lBCClg2n7mmXCP25qlIGHhpa86+nNpOY8sYqX9m9r4QL0O3ruEI+KzAe5qsUww8d1I9m4khSToeH7inuUef2xdNQT3WDE7Sccbxiwc2Zd+FkcYflQyjcZU7auAom53DE1QG2+UP/cvE9D7OWSjNlcAJbLsscmF12B9oe3gK+jKuaIh/aLnS8OvetWTBcO7pRgTSOeoc49fMzSvjocw3MsQ5GImVsXwQOzd2c933VhB/TUV5GbC1bXgAn0aH8NJMa8lMNQoJ5tM3gHkSH3t3W9TKvculF0m9eu7cYFv/Ux0f2yEUq2RhSIgpvb7vspPHNditttei 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)(136003)(376002)(39860400002)(396003)(346002)(366004)(451199021)(41300700001)(8936002)(8676002)(110136005)(36756003)(6486002)(316002)(5660300002)(2906002)(66476007)(4326008)(66556008)(52116002)(6666004)(478600001)(6512007)(38100700002)(38350700002)(186003)(86362001)(66946007)(2616005)(83380400001)(6506007)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VMeS6d+Xn+YLovHO4rF6c5D28mC8x8wNdOkceh8B4rLPZwcuPILMorLIs8herZm5rr3R8av+FJvG4hemeEPxTrQB8SF6yv50EQM9y1W8TVH/aN6/quueN8vW35hZeQS/kodyXY/w31Mo+g+BxBROHMtOp0rzt1Ikr8FB9G2yJbffSCM2GAcouof7xTuIwLS9E5cDUlVAJbylP8LkAwBHy+Q5n922TepfnJ3MBTocr+3LHfQVE+zZbH2Be+qAsuWqNIv94cgUN0EbnWTICo7GPtia7FNAHwcMKGdhFlaC1KpU+iVvu0fLjnMhoJC5pnFMtTrqZc26WC44RimUDDRmH+1tIbJDs8KvufPEIFW+a1sFPgwd8IDfrdOJF4W/HRXm2A90DkOjbUd83G/6JsT0PtQ3B4uB6GX3wrau33gWnnyaAOZuf8Rjs2SGg4xYMhFXRHQoF02Xy/sTpdeA345c6EKh+nau8BtQvY8uwsfLDBgvnJhWbC66xcU3QfNxE9palXKk8JNI6LJyBIpDeIyWMGk9sI9XUQJ4F53wGwjoK0KpOjnMXNy5IiG0moX0HsuwlouyK26v8nT0SicyTocdJ44MYj7CSqNvozqxOfTPBxX4SNX1gNKDEfLBZJEAU9ZoC2syVRJUz8I86UISE7uXC7x9W+fSvSuNWxDaAuvSROtUkmGwKvN8tPGaznngtUd2knRV/LpkcL25SW4jmQ6P2D3S8MoxX+bjkJDVW507LN6OkI4wa6DsaWw9+AyA37uuuqvKs3OFp4Y35arx8fRv9ZkgAvyWU/txNEg3Qm1qNbCeTxMN0aW/9Tu3fsRwPUZknNwbkJtdaOin9pjU5UwgnsvJCPXaPdh41Z94RKd5usyJTZbhSzgBKQ5lgEk74U44OyItMxXfTuz2n8BNCKe821MU1RdLzvNYw6DurA6QHRugc73OItKV1IWpWXSEMP6MgAj9EdKaO8tU4TW7iMFfPhUotL4XV70j6HI5n+T/uXN3gfKwwtbIgpCuqyhNdvHP75EbN6DFgtQDa/vi/ovYLcbaSBGNj1VL/q+94SuiXd6qG6tGmrspcarJ1Q/rEYmOW2p9767QXAbbmYU8gahn86qHt5J3cHlu1HvnH4OKLDjC5atMoZ5NA4Qv+ouRvVZWFwCT6LPq/BhPchUuGz1PugqfFdFFWBq6zrTwLakxWckzp21nUTkuxdKyXico8PVmqqYffx6ROk/T0K6Zp9R3sz1LUVJNptX/41AddMu9iWS+IWPHWYDxsW5LgE6wMA4rr0th7PWsJS3ywnwgWSgKPxy1gnlvyw1eZaoKuO7PZ1QLRZofJrYHsWQAOPxR25PwAAxGAHyy+s+zGnLtHKLg2XVLnUiw4OtGxQc7V0nzFkpcFLguePRyAJNW6hQrtCAlWnSjWtT9I2TlEmYGCnclwxbT2DvqBex9DQVCyecTOUsOlQDHC24wue5QO9bj7z6bnt/pxFPRX6AiNVnkH6NtdzGbsdn71L7szqpAriir+j1CeBO/JqInyQMG3F+4OY44l//9cBk6EPwHOXCvRdhTTGCe8rJyaQUeq4h/eHRBntjfx4wDAg89UA62JvqBsfPq X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8a6ce61e-dbe2-4496-dfe6-08db7d249657 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 06:53:50.3741 (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: cz8iJwscOJbvwtz4CMdamYxqpWXlJoUMoGz4nkMaF7QJ/k6/qevMBc1iJZQ2JA4EguBT43TUQ8OUKVbis6UuGA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4140 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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?1770563723336203811?= X-GMAIL-MSGID: =?utf-8?q?1770563723336203811?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Acked-by: Jacky Huang --- drivers/clk/nuvoton/clk-ma35d1.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clk/nuvoton/clk-ma35d1.c b/drivers/clk/nuvoton/clk-ma35d1.c index f1fe7edd21b5..9f65d0623517 100644 --- a/drivers/clk/nuvoton/clk-ma35d1.c +++ b/drivers/clk/nuvoton/clk-ma35d1.c @@ -460,7 +460,6 @@ static int ma35d1_clocks_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct device_node *clk_node = pdev->dev.of_node; - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); void __iomem *clk_base; static struct clk_hw **hws; static struct clk_hw_onecell_data *ma35d1_hw_data; @@ -476,7 +475,7 @@ static int ma35d1_clocks_probe(struct platform_device *pdev) ma35d1_hw_data->num = CLK_MAX_IDX; hws = ma35d1_hw_data->hws; - clk_base = devm_ioremap_resource(dev, res); + clk_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(clk_base)) return PTR_ERR(clk_base); From patchwork Wed Jul 5 06:53:13 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: 115959 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1677582vqx; Tue, 4 Jul 2023 23:58:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ53uQ5Lml5zoEvoFQOjgj2ipZ/0XFIYOIvoogyOX1v2mlufHkD/7p+Yd+0JOKF8zA1IsMkm X-Received: by 2002:a05:6a20:1586:b0:122:de52:eaf4 with SMTP id h6-20020a056a20158600b00122de52eaf4mr20494299pzj.22.1688540320061; Tue, 04 Jul 2023 23:58:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688540320; cv=pass; d=google.com; s=arc-20160816; b=ueSAY6h/1lP4KbmyChqEkVE39Hv8L9YQsC3U0JcOT496O+SLxxer2PFLZjs2ay2dA1 5ZUwZbN5lnX7h+5FJcdIv8yiffqjBax6FuPUbcbzD8PL6y/kVhsfjbF2tvLuUJf4frwO Yn+T3BTrgACTBw9PQZyPckKtGGe1JnxDPwLlGtod7/vFks9ZHUoSw6zORwWL/mW5fZJB ceGtIgy7RDAs0YRe61RbzX6Og5v3PfZ7Q6x1fYIN0DrwQ+xkvdhZfLV0QQu0ucplaNgm YWiwkRfyf5+lkRMWPioRrxPiCsdk3+TUvP9qoBeWJCzq05DSU64VyhgSy8xx2DCEYf4M hexg== 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=xR1DL/vFBmz0SgAEn+k5xGVjFO5PdALrdwptsjpJNtU=; fh=npY6cvXfPHQAI4TVn7q0hvpf2eW6KD+JZXaw5Bvh5EA=; b=FVwAk4S8bfnpde7YxCDuHBTKzO1dM38FfT7Rn6jheSivJ+YJLNFAhz21RrGqHYI7LP fe+24Kb6qvyDyI3QPuvlWPsr2WCiZDrcZ3HkmUg+fDhXlhImO3K0lZJNpkLH5t4sRCNH ffBuTaUo1gxQisgDJ5DoFeJyLO+zLV6zxWkGNM9c2nd3sLVlWtfvPOFkZd9gRcoYIt2x oVJmd6+HEfx7YRNwgOIYbGzUMwRP0fByWJsuRaHSB47hHz5E4qaasTWxYcR3U5dnxdyv tFJdyQPa53oN3Wc4qQ9SqOIX/iS3r7cy8fjU+4fpF+F5U4iSciOkSZHyz6EgcfAOBayt wsPA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=UfAuSfjt; 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 p2-20020a056a000b4200b0066eb5102060si22370377pfo.165.2023.07.04.23.58.26; Tue, 04 Jul 2023 23:58:40 -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=UfAuSfjt; 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 S232073AbjGEGzS (ORCPT + 99 others); Wed, 5 Jul 2023 02:55:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232029AbjGEGzA (ORCPT ); Wed, 5 Jul 2023 02:55:00 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2122.outbound.protection.outlook.com [40.107.117.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8CA61BF7; Tue, 4 Jul 2023 23:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZuqpYIiG4JpunWOhXyuvHsj87/TJdnZCAHz/UzC4bsl1QUjZNm9tH9lhJVv8B2lRZWaLHK0gefnNWVy6adhPVzZkXw2iyoB/oLhx+H9UjgaDRaD/fHk0D35ek/FZsyusgq9jPbWHxjzMqpS7daraECCgwRmypCD59QWC8olIr59wFSxuQi1fBZNVPopOZg8kuJ+C6ioYc0aC8ICloWnJoy4By/bnFwm9SGV129S+icRUjgZwGJa4cgAqsHDWmNtFqpp0AHIp1ufuWUs8k4V/qPvSrNyCgRu9plmgvQ+86L0MMI6Q0NJBuH0UpdMtx7dO4rp1qJ5Qoi7kWF71mincTg== 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=xR1DL/vFBmz0SgAEn+k5xGVjFO5PdALrdwptsjpJNtU=; b=G6zzd/dKlFhTMKOHJ3Iu/umwmDryNy/UsoaVjXuRMLn6hLjDHNhI0j+yTDUNwWcj80YqnOD7IxC3zt+zcV+tRhze4PI76VYhqjnTCuomWMjQxtP8+x67qY+OBigMaGwRHSrOJA8I4FNU+e84UksKZHC79YkLq5IzSgpZD5ZbCWKxqvOfee4EUhYAfIRbPmG0amQiq6VKa74+wR1fm332oBjt7TySzNHCx95hjvO5YGK10FRWUtyYIGKQwUaCVCi6NIUvMieCd4PSWYXAQ5I6VCxmyNsF/PDfdVrGiBVtdDE1K1PXeZJOHe8wY+z3KkaTfNY9IqnLWYJWmQ/qE+4R/A== 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=xR1DL/vFBmz0SgAEn+k5xGVjFO5PdALrdwptsjpJNtU=; b=UfAuSfjtscQyB/JUrHW1G2p2tHPpXWKY5IhYTX+0B9u3KciXY19SgU4COE9wka8MX93//D80lU/fLtYo8F5X9QsVC1xz2PGNCUB2EqFg3s87apAfw0m579xVtTVX+WqASU6WIgWOnwKdU+J/PDrSNnQnJ8mrd3BLm4/TQliIBzhIKENjR6IqL//m4JG19co3BouINjVOsSYdlB+b/zvjH79xxP62hc+1SAzra5DYFeuKRw5ojQ59CEi7Zh0qKrWprKnRlErQh88KZ8RTnZA9om5H16HYY0v0m83CczKOwLLETbijUtuuUncRVeh7MynKOV6yOqBKmAmj5+9qul+7GQ== 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 SEZPR06MB6087.apcprd06.prod.outlook.com (2603:1096:101:e7::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Wed, 5 Jul 2023 06:53:53 +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; Wed, 5 Jul 2023 06:53:53 +0000 From: Yangtao Li To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Michael Turquette , Stephen Boyd Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 13/13] clk: mvebu: Convert to devm_platform_ioremap_resource() Date: Wed, 5 Jul 2023 14:53:13 +0800 Message-Id: <20230705065313.67043-13-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705065313.67043-1-frank.li@vivo.com> References: <20230705065313.67043-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB6087:EE_ X-MS-Office365-Filtering-Correlation-Id: 556d5df4-4567-4b78-4eca-08db7d249845 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tb+cPK3c6GfOY2uNgRi6ob+tAWXiAzJYKfv8RKVQpMkTRp7tBfIlbCA19PHGMfhAubsk3sJlMX7qC2yIVYBx9zrwvOo7ho5gEno4xTjb0kteiLVDfMve8j70Ts23qAUSofyKKjq9q6fTVHHkhuCGOuocobUnD9hLhN6EQqeg3SYlsGYnRGRR4OBfWtZv1NG4gV6NcQqi/4mT8i913E6UOg8WMkQcxSkyBhyWugLp/Vy6Esfv+7hlyJJ6kXIbzftuJKAFJ8JKHVpS/pmxxWNtkY/HFG5euwIioS+axXrtlYj+iCHB5TrlUOJqPsGa08rIWE+QiAJniPznSjdx0dP+FOItxNJzh5yNAFfYYaRnmjiWwC4q+h8OlHgFmhmhzohzhe5olRMkM3LENvie2C3BAWPQ9l/4hlEWR1XOQpW52EXtAwGSdBUGBWZ86iXJ+W2uWrIsvM+PPKJhHI0v+j8kJy3Fgq3btxzMuSEA2K7ts4zAiWC4QCU3zz56/0l6iQATcpRipFa1kJiwOzmHzQamMmLl1UqzLOBVZxAVoESKHghoapNEH8FXYok78MB6sPP3gvr54YXVI54WH2sO2P/JKfljBb1jUIaqFnmV2GDmxmy+KY80R5Byh61b9S3kETY4 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)(39860400002)(346002)(376002)(396003)(366004)(136003)(451199021)(41300700001)(38100700002)(6666004)(52116002)(38350700002)(83380400001)(2616005)(186003)(6506007)(1076003)(6512007)(86362001)(6486002)(110136005)(316002)(478600001)(66946007)(36756003)(66556008)(66476007)(4326008)(8936002)(8676002)(26005)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Dib/WJiZ0QOnoDmFlm9YVSz1ujazJCFzIedOe7I+6rVfO7BP9JMbuDVVn52on0R/ffdP5P8zKHFa9/SzSIdycBo5P4YtuEYeWz1yK+FgPFKXfIiOSDLrOAOpnYsT9dtQrW2FMKxiHicToRHBlHJm7elJtB9Rgr6l+9/3wve4Mz7dKL8JcpAvSZJzzt+duDG7axtZSwWZ5pkyC1F4npPlYWuq70IAJIF0bEUy8mCYinW7rSrK0CeODwVM9p0K0qVh7AD5ZWlZs1vpsNFBqz7KdMiorgRyAyXqHIxjv7K2p16eiF9IjUvoo4amwSJKzJ2qVsUjEHlRfX0s6MrdoA8trW2tSOdNcqyu9Z0BHunWGPTnhOQiyXxLCbLtliwKkgrFl1Ox+v7+T4kRF7avycapprEIs9uP6heWPVw1GWAP95uovHcAe0YqoZ6mNWZyedumFWvPQBfiDyTBF28UMWgmDdqgPrHe6kdddDPKkgRgvjVCYS+jcQv8KlRcTsxgT6mUUQ1WFHbOrdlcWt2v1JZ0Kt+c7bcFru7wBl68I6R5+9tVFta0vajCdLs/nUgdVlZLHhfh601Bpafhq9svFNuefYTnoCnRflLBRqqKTe/i8jNHz4zoBXO9+tF7/IOmfMYMj2Q2KLHCBw1A64kFlyOutGMW4Y07bVQts6UTpg15EfX6dbCk9aU4Jth/moTBYw2SjsXE6wayv9IqLHWCXgNNm5HZSAkyv6u4I9Lqv9uX0jzJaXy+gMySWT4UaPM7fEDD7IXTfGZYeugWkjKHQa86wSoIGuwu7nRzn5Ia1qrfWiMZGq+nuPHpRwJU02nw69apClb+H5Z2FdYq47AbV/tcnjWBQF1K1pNjOjQq3Xbu9tv25XrzmRM2jjwTcFHRLOCy2DQC3sLcWFX6No/+ntus4uhAov5svHXlwqRNreRE/+nzlG7ynIv0UVkV030v7T9Y1PYCK8Blt5vAvAxt6OAYOQrSfBnefIiWLvHaWiuX3pcceyS/LqaPSEjOQXFkLUdgwp/xMMUUSzvTxEI9pZc7hUvmNEgIXsJIM0eILsZiWHZ+l+iEg13carBOLZFsV3ijbrNFkTXOpCbLEvmQohxZyhzA/ErE1Dm04ChPa99mpGsXik3z+8MSMxA3aY8FOHAx/IBKgPbF0eZtTkndH/4gZ7ABFJ5TTaYvE9sQr7g1PG2yoRzIeRPwE04sUWX50NknBMh/8Vhr6SrYUa9FDscNZzswBt0JT48x6mRjjOQRLCrrOV8BCzVYufLjxt1GyTDfIB57REGCBHMD/dcYv1NV139lWN4RHkVes+GyW1395mOy/OAJ5LETeZm8v1k6UPJSJHnF+b2mCYjjHmhKmfSTWv5dZ8JJxAqUuHzFu4cFDQNKsNGrErgjN0Xgf46BQu1037fbapTuLaVdCN6gxRC+O8yCL3mNajx4Ta6arHtrWgygfXz3cZlK5X5s702GQvhKvHyY/Lotn9PH2PHyPyqSIlT5x04BaDdAaP1h6CzKr1t/GKtsw5TpulsI4yDVqL1TB9+odSXFinzIOcEPJHvc8vKMnIgCcTL+TeogLxoTjuIh/TDG7XhGLUWZiuZPXfWa X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 556d5df4-4567-4b78-4eca-08db7d249845 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 06:53:53.1557 (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: 8wTPZcZCxL6KYMaCKugLcU5voCpJgga51XpBrSop8Nb+0lvH4vOhmoM0I+XWYm/t8bU50r0GkrGY/48SiR7dkA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6087 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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?1770562854360711371?= X-GMAIL-MSGID: =?utf-8?q?1770562854360711371?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/clk/mvebu/armada-37xx-periph.c | 4 +--- drivers/clk/mvebu/armada-37xx-tbg.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c index 3ae6078f6ff7..b576766e67bc 100644 --- a/drivers/clk/mvebu/armada-37xx-periph.c +++ b/drivers/clk/mvebu/armada-37xx-periph.c @@ -733,7 +733,6 @@ static int armada_3700_periph_clock_probe(struct platform_device *pdev) const struct clk_periph_data *data; struct device *dev = &pdev->dev; int num_periph = 0, i, ret; - struct resource *res; data = of_device_get_match_data(dev); if (!data) @@ -754,8 +753,7 @@ static int armada_3700_periph_clock_probe(struct platform_device *pdev) return -ENOMEM; driver_data->hw_data->num = num_periph; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - driver_data->reg = devm_ioremap_resource(dev, res); + driver_data->reg = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(driver_data->reg)) return PTR_ERR(driver_data->reg); diff --git a/drivers/clk/mvebu/armada-37xx-tbg.c b/drivers/clk/mvebu/armada-37xx-tbg.c index eccc1aeefbaf..e94c336e0f1c 100644 --- a/drivers/clk/mvebu/armada-37xx-tbg.c +++ b/drivers/clk/mvebu/armada-37xx-tbg.c @@ -84,7 +84,6 @@ static int armada_3700_tbg_clock_probe(struct platform_device *pdev) struct clk_hw_onecell_data *hw_tbg_data; struct device *dev = &pdev->dev; const char *parent_name; - struct resource *res; struct clk *parent; void __iomem *reg; int i; @@ -105,8 +104,7 @@ static int armada_3700_tbg_clock_probe(struct platform_device *pdev) parent_name = __clk_get_name(parent); clk_put(parent); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - reg = devm_ioremap_resource(dev, res); + reg = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(reg)) return PTR_ERR(reg);