Message ID | 20230705065313.67043-5-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 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 <rfc822;tebrre53rla2o@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <frank.li@vivo.com> To: 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 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> 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_|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/KTYpHGMeRvEus7du5ClfnHFbub7C8tikhYh7g5F2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+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: <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?1770563302300511969?= X-GMAIL-MSGID: =?utf-8?q?1770563302300511969?= |
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/clk-fsl-sai.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Comments
Quoting Yangtao Li (2023-07-04 23:53:05) > 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/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);