Message ID | 20230705122644.32236-4-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 v5csp1835145vqx; Wed, 5 Jul 2023 05:34:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlG0c5c02yOel7Eq+Zk0IaT89r2n8AHUxPHJoDzxvBjREdIHJsaEJCgUPr23uDCjyJgHUwlj X-Received: by 2002:a17:902:e5cd:b0:1b8:2c2a:9629 with SMTP id u13-20020a170902e5cd00b001b82c2a9629mr2858092plf.19.1688560450734; Wed, 05 Jul 2023 05:34:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688560450; cv=pass; d=google.com; s=arc-20160816; b=pnonnAB05UcgXGnM0FX902ELERGXVuxP4pOHgvZ1wyCS/ZWDeC92rI3Qj1HHWzqwP9 WnsYhDMqpFccohhh9uM5H2F4gUKu87ftjlh4Q0u6Y+PkamsOTD2dmjaPbK1QXE6Hn6WG 8R2SPk8tg4DLyuSdHzJHZHOp6PEAiwVIJJF99K9oTbuq47ccGfEmTj5Yiv5sWl1Z3Lwc o0tXmEKQTeKGQvJS0w0Rsk0vRrUebJMukznOzPsoE7cqDS9x3JohHG2FUDA8+hK0Xzer CLMrzvme7goo/pv6NfQzyIM6iWx1lMjEwlA+6FlV3CuIwUKzFnFYfwG+4yh6frYlwdri 3O2g== 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=u05gyCUOW398OdPt/Q3aD3BuXhHxCsPGGMQs1qlwebQ=; fh=QqyH01Mre2/K9LsbGqGlo6T9ERFX/zlgWLNRfBjjS4Y=; b=OpfXCpfMSB3nys4FQOBu7PULNfsFXbNBLDh4lAONvuHA36MVg5MYGuaklFRyLUo6jl dTtz5jSHAl2TjXSN9XDXkHXtzVuUjrdDShHlCkGhE18Oiqw6s5Kb4P7yjG0gTFLhf+eW VcaXY5i+tD3lj6lKwZBt2I0Nqx4QRPVaffFM07dle4424itM4RfdTnuuXTXSD+xraJZk +q8vjeYK7UKWWmU0Gm6Zo0h0S5gxKl1fvlVpPtO9HfArjgMeSyCKIGt4oZKLPPuWZ/C3 mxJVzMDxuCwXRXgG3HU4h+LcxnSgzA5nH8dpcmaiZR8UkxMkDhIrSOajFE3brRJYynOO vU/w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=KIxVBIVt; 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 w4-20020a656944000000b0055b12486641si16338531pgq.186.2023.07.05.05.33.58; Wed, 05 Jul 2023 05:34:10 -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=KIxVBIVt; 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 S229697AbjGEM1M (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Wed, 5 Jul 2023 08:27:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbjGEM1E (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 5 Jul 2023 08:27:04 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2123.outbound.protection.outlook.com [40.107.117.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4E97DC for <linux-kernel@vger.kernel.org>; Wed, 5 Jul 2023 05:27:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bZVOwBkHE7DUAZv4Q2uVnkxbGBHWOxbqN8xiwR1Fotk3E3Hjjw/805HD81bnbQ++/Q8T9an3jQMThg8wi81bHqVCMe2pR/nlw+aOwP23IoQVaoU1f8HITSxZRliOPK4WqUdf8OBtlZ99zqfTKbcCHB/FAz2MF8vMBwSuBvY8puQaodFqMLdSRcdx7fS2Jqs/MsLTXlBWiw6dLoxbMdcBR0NzNkzv4kJRHWFDSbLlydAdKs8nActhi6/kIilceUURYoR3q/FBUCJ/v0524pIzeb++smqFYBSoKMPDdNrJHk1/UucEf6r3bsh45qHtWWLGH1obtsZcsqcOhCi9dXCv4w== 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=u05gyCUOW398OdPt/Q3aD3BuXhHxCsPGGMQs1qlwebQ=; b=JgSBwm5sxpFQCT3AVLPP6V64EGUYbYO3L9l5lTfIPMZgXaLzQg3T9/mLbZ8jUsnUkDki/UpogM/gkbwyKwdbi0lgd0dQRiIKhCZwlAo7u8rp51NTfl8y/GToAj+Z7TT8+j3cLa1WoXVb+sHFqbqmlUEZDTbw+58ojtumeRW2NKzdpnUNrBF9iRaMVBkH9XHM5SrzOf6pzK72CGy/2P054maOisiVSkIJo/Bt/cOFWzfUNueDJg/UsiwKIVTfCUe924MHdTy/e2VZ7v7jpWVvmL8cqjF6LA+/0NV3g+8xjb79RyxFHQc6tHL+ysoo8Y/m2H8p2+miwNWc5X/bPtho8w== 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=u05gyCUOW398OdPt/Q3aD3BuXhHxCsPGGMQs1qlwebQ=; b=KIxVBIVtNh/LZIfIzxBWtDerGUZlFvmX+IzQjcr6e2Op4larsZGRxiZqmqaPio+YX+DeMOJqmUJwbZ1qDoPJAF2tbl0Kw47hoFXIdaIUFiWJAFVOOAIGOnh7LV9nPR7+qGLK3yF7hIp/w/NmG3HEd2+cbmDCgj2C8VeQFOCwpkct/uOj64k/R6yz66IDUCq7t4Qw6F6fsYtr28xbigZBcyuImRqbumfnbiALWsZDKcEjMy07Zdtw6/h/y+lZUhADOlvfL7ngYfRQ2q0QoE49I//JbUtNZRPnCVdwMQgTCSy/iioBGJmG8LBvcQKE/zpJj65iSx6mgap5+w+C531MNA== 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 KL1PR0601MB5551.apcprd06.prod.outlook.com (2603:1096:820:c2::13) 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 12:27:00 +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 12:27:00 +0000 From: Yangtao Li <frank.li@vivo.com> To: Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Cc: Yangtao Li <frank.li@vivo.com>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 4/6] soc: mediatek: Convert to devm_platform_ioremap_resource() Date: Wed, 5 Jul 2023 20:26:42 +0800 Message-Id: <20230705122644.32236-4-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705122644.32236-1-frank.li@vivo.com> References: <20230705122644.32236-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR04CA0001.apcprd04.prod.outlook.com (2603:1096:4:197::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB5551:EE_ X-MS-Office365-Filtering-Correlation-Id: 7d4d442c-0109-428c-039b-08db7d532165 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HtSbna9pVfAcBL1Fm8yGYCntQzKNc1rQc1L4DV4Upp3xL1/rUwQOoPQwO4mCe+NpFUvl5SSeH/LsZ3aGi+rGLBs0S8CUkqBVG/7u+wH2pglBB6kIfUi2unQiO/I9oyxlSN+DZU9Or3LUefdPJDEHS4TW3GM0MK6fSxQyKiZaowGIUEsLC3JtDTvvcZWDLS3QOVa8ngxxLlRy3mLjVYCuW8MPDbeJ/apEBOmcmJ1PVju51DLs9ltpCUfWirqyzsu5evla9q4zgwiI2UjdjIkogEESGrfBFqUq523dHuJnBLCUbzHC9s+0xw1X4g4FDQGnQ3OsGhZQ+L4J4ygKvxTjkFf2w36Pn+nMrLtV3NrPNNR+SOJOmFHfSdle0+/9s/tnPk4QFwPR+fSjDqqL7CJkUs5MfEn29nfs5Xrlw/Xi/AyCxyNwUDI7U7/fLFzWAjcKkyL6IXh3zAx7zgDFV25eHJFpN/mG12ddtXWoYy5TgXnBTItButml0DVnDm7PKwznw6lj0jdvfjqFqJ7+Vuw2vU0DIfFA76VhWcBfLVOAUR+cVdcb5AAyltvTzTS9vqc9PMWrnRKIYilKuetVWnpwJVEekCpPxTuCu2zPimXDeIU4xicLXQmKTuiR5osZjmQu 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)(376002)(136003)(346002)(396003)(366004)(451199021)(4744005)(5660300002)(8936002)(8676002)(41300700001)(316002)(2906002)(83380400001)(2616005)(66476007)(66556008)(4326008)(66946007)(6506007)(38350700002)(38100700002)(86362001)(186003)(478600001)(26005)(110136005)(6666004)(1076003)(6486002)(52116002)(36756003)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AqQRwkdaTB/yTMP2lR8pOmGGOEXN5fzvlKt9c3M6PJlpf5QqfZgk2u5C7Y2xJfQ9Q4fTMfEapDqIR+TIFeDUhCS61ApnSLNsq3CI4z03GUD1koGzIL8IqPq7EyVprZs4Xs03LB6IkvfgQ1QA7KiKddEomhHlkSzNgKOVvXiHSY0Yw8J2K3liAERVxV7r1ueQFQXgTEpzSiladgxiX6EC40YQB/5uin7ySpyeeyH+T2JSyr5FstHmzRQO1eJVo3BxXhmjLkKNmKMIkhU8eznLbmbbnn+RjUm14SMug20H0frO+LkcXOW257YqJxzm+IvByg9RDqKQDSU7DqNqf5toZ7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DSpLbNr77Nsza/xT97KqZDAXj5/aGVQbmhfp3V185XqCqNA+LWS1iWYlfXjRBviweCy5+VnTnzRu1PSmhHVQp0HjeV6UYLq/3pOsUnZq2zUTERwLBYQa1L00vllk6iOL8HSsUgjsQlpEuaa5y+u+Kg8xNl8ZI2fnxwQP7hwpFndDD0A X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d4d442c-0109-428c-039b-08db7d532165 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 12:27:00.1190 (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: 0ivNx2W6+5qkTd2mf/R3jFbHXg4HdcDLdLa1myTHkC8DqyHB2011k1iij7mjhIuV3oyqk7YIC0OUS4F3rhWFfg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB5551 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?1770583963011192309?= X-GMAIL-MSGID: =?utf-8?q?1770583963011192309?= |
Series |
[1/6] soc: ti: omap-prm: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
李扬韬
July 5, 2023, 12:26 p.m. UTC
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/soc/mediatek/mtk-scpsys.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c index 7a668888111c..4b5b972a6b5a 100644 --- a/drivers/soc/mediatek/mtk-scpsys.c +++ b/drivers/soc/mediatek/mtk-scpsys.c @@ -425,7 +425,6 @@ static struct scp *init_scp(struct platform_device *pdev, bool bus_prot_reg_update) { struct genpd_onecell_data *pd_data; - struct resource *res; int i, j; struct scp *scp; struct clk *clk[CLK_MAX]; @@ -441,8 +440,7 @@ static struct scp *init_scp(struct platform_device *pdev, scp->dev = &pdev->dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - scp->base = devm_ioremap_resource(&pdev->dev, res); + scp->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(scp->base)) return ERR_CAST(scp->base);