Message ID | 20230705065313.67043-11-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;tebrre53rla2o@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <frank.li@vivo.com> To: Dinh Nguyen <dinguyen@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org> Cc: Yangtao Li <frank.li@vivo.com>, 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> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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/47cKWnfwYFmjVDD8cB7N5TEtXhi7l4Z7y0QGlkFO1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X9cffDjbYTPw90RCv4ISEkOy2hrCFGqszMSkRf2bBt308/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: <linux-kernel.vger.kernel.org> 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?= |
Series |
[01/13] clk: sunxi: sun9i-mmc: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
李扬韬
July 5, 2023, 6:53 a.m. UTC
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/clk/socfpga/clk-agilex.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Comments
Quoting Yangtao Li (2023-07-04 23:53:11) > Use devm_platform_ioremap_resource() to simplify code. > > Signed-off-by: Yangtao Li <frank.li@vivo.com> > --- Applied to clk-next
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);