Message ID | 20230704120211.38122-3-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 v5csp1166667vqx; Tue, 4 Jul 2023 05:04:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlEUCwElslKu92iqY8XbLh3xrIYKZxNt0uj32qhPQHYzus1QCnAfAjQ60oadU2lMumF4g0HP X-Received: by 2002:a05:6808:10d3:b0:3a3:95cb:bf2c with SMTP id s19-20020a05680810d300b003a395cbbf2cmr8797162ois.4.1688472256934; Tue, 04 Jul 2023 05:04:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688472256; cv=pass; d=google.com; s=arc-20160816; b=nMQ1u+sV6gFzTc1XencGOT1GnnfzFvAsjnz+RGQ1rUQr+NBDNN5S4Fx4OSjzXaAb65 0iBl2ngu6zgGF4IfoNv3YsfIa0/3ZWiz89rnt0gwzmdBMTOFCa/mB1OSJaO71tcnjotv d3OHMYm52UVrDojDqjWiqkuHac7YZ1sRzHhiqWvj/nJ9JRQi9Nnnxff4Vo3S9w0gfVvx Vs3dG2Dek/hdLTFDuwZO6MPkmvIAfpRhwgtWX3KQV7NgztxSRK6WzZl/dRS+IUnP/7aa MqN9WThzHm9bLTsgPR47eDhLEM/j2RhSkLJrreM94CS/M0WcHnfYXiCDmsW2G6WsMjF+ 5wyg== 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=GVrBwZBniYy3cx6EBtbxfzPD3+zks+yKbbat22yW7FU=; fh=QEUE1GJF453d/FLq7q7FjWtj5CMT9Xhcq4HzkUVSxbQ=; b=RZlFAe2T3Do0F+FYU2A2L3PZFq1JaeBYm6kR2/Rc1+d0AanFMX2jD8c2B3t8/ddZ3R ihC7f2fwjfpUQ7kuteAZrlfXUxtIm2WmpmzFdL7uWeZflpFmnHbxKhz29X+mhrN+XCnn YRemb9aJVB2s9J+QfialH1bTW//EsC4VbrqhzXE00CYnNqNmDrH6QkRct17CvmFSjFlo wDTrRn0Ak9QMmgX9D6isOz9foE1+itYVGT9LTinSAkJftNj4MVT9RThAuxtvDLjidMn1 OzorleAuAzZJwycaY/3GSL7hRC7PA3QGAuUJxbZUxMI5X+HOU6Fu+9BHKdqZyX2tQIN7 IDQQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="VdN/VS9B"; 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 p13-20020a631e4d000000b0054fde1643cfsi20777581pgm.127.2023.07.04.05.04.03; Tue, 04 Jul 2023 05:04:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="VdN/VS9B"; 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 S231334AbjGDMCj (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Tue, 4 Jul 2023 08:02:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230492AbjGDMCe (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 4 Jul 2023 08:02:34 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2090.outbound.protection.outlook.com [40.107.255.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F4023E6B; Tue, 4 Jul 2023 05:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PC+F9bmT0A9VWt3nbRO9XNFG3+MMnS8DkUgpuzLpxxahedcboXDfIkY5GZCQ0187jdAmokIfLeRNJrW7FIpbkR8glediELg98f+0QNfsP+HaFvgp4MiN9xlio93Q/nUNGvy5FxP8dFoMgQk2IfksYLfS2BoZ3Z6dvNAResJZ8kznTbwSCJ+2F++yiTPQt1Ezy6zZlCxMtlp4Vk2gE6C/3PifZFaEY8WJbzYGGntSAgW3pojDxgNcn2XgWBe3HGGhWtjCbJmCw1VxrzshwqoOLMJBCxdQlbmEHZzFrn/LxH6b3/TcXUsuVZ1WNheMLVZfNTcpjy7RXC1VtG647OoB+Q== 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=GVrBwZBniYy3cx6EBtbxfzPD3+zks+yKbbat22yW7FU=; b=QTKTbARYcLRVkKcdZn71NFozdrswilFa3EyfVyaCwFpoDiS9EQ7RKVvyaO0wz3opAFz/Hu0oMrrHlg3d/BTdYweFjN7HZ8KgIc7ajqOnfmPhcGttALhnePoO5CX8uSakmuiXBVJfOl/GoP5OGIYB+wp1XKl8mJGzoPPxcPGitK6GMXvIq/Yj6MRmZcmvpT685IksPnFBIXZ1ng3erZIONsePJv1g/vdfp653i95aDwfVz9gWjSPpvtGhUc15TTEDKYSC+ql0TgLMq3ap4WfsaAevsew82OkGdwMtZtHZHu1/Dc3Wt7Z/cCXitxxCm4UlHbbgSuVxpkGan2191IaSuw== 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=GVrBwZBniYy3cx6EBtbxfzPD3+zks+yKbbat22yW7FU=; b=VdN/VS9Bcl6rb2in80HSDuszatbD4tFW7bOxtd16WKQP2oNYjMpKQ6GoIIltn/8rImdOYPzBEoROQQxxyELT7tv7d/7bXAWWRl1YaSLNa0GxjWqXNTfKKslg36AFwvkdpDGup8zrwM3Cb7wWC/mHO8tcOc5jwTrI+ExFwytkHH99Ryn1BX7PSzS2fS4NMXy+HAk6nqoriiAmQ+EhdYFSF+lnkSfNgTpRAijAtO4DiayEXWa04fSmHS1ekWkdoFMGRYocQa+2p8/iFVm1cK4mbOt/XEMsLbvYx+wBFgCpD8eNvI1Utai7//wz2iDSPbs3IImbR3FFkLTanEATaJuqwA== 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 SEZPR06MB4999.apcprd06.prod.outlook.com (2603:1096:101:4a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 12:02:28 +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.6544.024; Tue, 4 Jul 2023 12:02:27 +0000 From: Yangtao Li <frank.li@vivo.com> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Philipp Zabel <p.zabel@pengutronix.de> Cc: Yangtao Li <frank.li@vivo.com>, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/7] reset: qcom-aoss: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 20:02:07 +0800 Message-Id: <20230704120211.38122-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704120211.38122-1-frank.li@vivo.com> References: <20230704120211.38122-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0144.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::24) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB4999:EE_ X-MS-Office365-Filtering-Correlation-Id: c9d5b579-2373-4a6c-2cf6-08db7c868947 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 54ZhvwdXV4RktlJKZsxcw0lvclZUiPxD7NYUfzAYJYwcV4wWfkkDBIvISk1HwTmtUB7m0jazunMqO4vwrK5CHf+EuS+vR2SCOYVNz5CXkZ/wtjONrHPkkW/+2+Cz6b852SKxKOgg4enS7Jeo1TVRUAq+1kM3jL+ceXCrHkkNC3/X/LaJEcvsS57kEFJBj+1gYTT4UwVbzOJ13s67gaAcwLMUiWvRlOzdck+y5y2J7E3ketcnQl7NRtv5jB0H6wWVx9LZYljJ4u9qooVyO4u41B1zCZ6A7PPMYP1MYGGY8OR+6fyFEcVQqaZNu9fzWnCOxeUHKg9euSS01O/QX9Gwuwm9tAyeFOo9Mp7TUHIGDt8JawRePxhnTLHIT5xYL/VHZcCDKjfcI9alC5yV4jHYfy3rtI+Edu4zIzwJteILwndSegeXcwBP2Tj+F1CrEJEPIy4Ttt+A3LuAWKJgohY2+hR1sSjY8lS6uRnHZIxHbCYnyiieLNRTit+ZfT2IZ5mhOlz1+/w5bjq1TMEbB2If2n8+cgl5+tiFC4T1SYuqeoUtDBpbt3FWTJw4KffZ4xQ8np/P/nz5Acu+NPr26G7vQcwWnnFO50p9zVrrH3+b4muUQrCACim2qy4pVqaGfgZc 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)(396003)(376002)(366004)(346002)(136003)(451199021)(6666004)(38100700002)(52116002)(38350700002)(2906002)(4744005)(6486002)(8936002)(110136005)(8676002)(36756003)(41300700001)(478600001)(5660300002)(66946007)(66476007)(1076003)(6512007)(186003)(26005)(86362001)(6506007)(66556008)(316002)(4326008)(2616005)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wkBgN1gGVKrDpJ0spev9XOrbiWTu15XjMpNTdbrkBFssa6jUZ56SECx25lrgbtq9HCoGs4J7O4rOIuahsXUj1cZKi61B2RxZVhZVxk/i3zqCyDmw4vVDEC5+CFfia8NfqHZaO974dBBTtpS6wbDdCBogeBFxlueEcXxb72d+kWlrCpt39jpxi2NVpW3qGF05HPqIjv/yYMaIQ6W+U/0uCUBy4pwVdqWgkDla8xLe2B1VgCs6T0mY7+Xz/cRfTLVZQTwxdf08qmhcg87aIE9peYyguQQu5+3FYDz0n1fhiT1gdavrIRB9Xu8XkZBIakNQG6fObcHS8CnMmfEJOb/MlAI8JsqSrnHz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KHCYU/XPLBviKAmBWKI3KRcsu8R7cYBEf05mM7gPT1CtfuS4GZt9mGIumoTBQPXCk19F16HE0kbrVhH/V57NjNmeGuF6UqSz2ZuuoPNLkDuwv5BJzOFtQKpZRkbV5iVaOt+1E9PWdngy8OLLbKT6gM8hm50Ag1x/Isu X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9d5b579-2373-4a6c-2cf6-08db7c868947 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 12:02:27.5694 (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: JuIgtaaEXMDU3t6R1DERswPDpkz77vFFMUydrCf7y6AFTaHjXOvqg1WtozH1QGwFp0wYInqubnTr5UXueqyXpw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB4999 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?1770491485260336323?= X-GMAIL-MSGID: =?utf-8?q?1770491485260336323?= |
Series |
[1/7] reset: brcmstb: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
李扬韬
July 4, 2023, 12:02 p.m. UTC
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/reset/reset-qcom-aoss.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/reset/reset-qcom-aoss.c b/drivers/reset/reset-qcom-aoss.c index 9333b923dda0..28151cbd30eb 100644 --- a/drivers/reset/reset-qcom-aoss.c +++ b/drivers/reset/reset-qcom-aoss.c @@ -90,7 +90,6 @@ static int qcom_aoss_reset_probe(struct platform_device *pdev) struct qcom_aoss_reset_data *data; struct device *dev = &pdev->dev; const struct qcom_aoss_desc *desc; - struct resource *res; desc = of_device_get_match_data(dev); if (!desc) @@ -101,8 +100,7 @@ static int qcom_aoss_reset_probe(struct platform_device *pdev) return -ENOMEM; data->desc = desc; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - data->base = devm_ioremap_resource(dev, res); + data->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(data->base)) return PTR_ERR(data->base);