From patchwork Tue Jul 4 13:03: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: 115762 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1213290vqx; Tue, 4 Jul 2023 06:14:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xVy6KEOfF8humo5xt3eM8rMSIcJwMy03SXZSiw0OMfQH+Sw6wPu+k1FLbJtWzdrzBQJem X-Received: by 2002:a05:6a21:6d82:b0:126:df8b:e822 with SMTP id wl2-20020a056a216d8200b00126df8be822mr13263642pzb.53.1688476467511; Tue, 04 Jul 2023 06:14:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688476467; cv=pass; d=google.com; s=arc-20160816; b=qSj8pUWsTzRc6Peef3XiANpbiT6jyk0DP6GKtCI1GXIJP2EgdcLXbolQpnPveO1oEn H5J7G05A5F1jTO1yRZSk73FTxvwHmjKtO4mQveMrx+3P7mPCqJraKJPKdhVS7aXiFZlm 03YZG1ip9QKdr2knhqKhG3ZHxearwP78qTQUwKVn5BVcmZrgfhXx7IISBSVMoMiIcG+n 1qHpYD4gDKXPBkkzJwTOCb0NRbtfmvyYU6g3WAmMqc0gho2i9Bq47Hjd05FqG2oiiYnw S+en928TYAuh93x+Gz7AYJJussUp+bG8oluvmjlmWQ5MpD1coLDLshUJO1IEwL36vdgI e7CA== 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=K1H4QRIw5THNFCCruk/I7hsZLPuqOLJzaUmubmAl4Ls=; fh=qDkggboYRaP7+roIKGs9xCMSC04vxbdxGWqa1JEU69s=; b=a/ZvvAg/so45j31ULCQlw+jtnUJjh2aozo6AhdTku8y6+GUnBynANYDac00QMqVCik 2AY13q58XL04KN+WieOcmD6f0svuK4dqnzMNa/8r0oSmGm2dp7opBKNUTA7klbPljG+I 8GZ635iNNeOJxJ4hHpRCKrKqCn74faBCeYr0EF0AoKHzXbuUYjGJC3ydpkHyzdSNA7wC qKJMeOS7kFPbcaLMaX/mL8iXCHks5+rchx6wP3/7uNGlYbF52U9MaXWhZgHfdVLvr09H 1uZLUVOJQQQnPBzKaEE+JkBfe1ZsDryQrIAJc+WLwgM1CoW3iCT97VCZWzqLlv6DGaj9 aqxA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=E4ErRDRx; 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 v8-20020a056a00148800b0067b51fca490si16867170pfu.248.2023.07.04.06.14.14; Tue, 04 Jul 2023 06:14:27 -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=E4ErRDRx; 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 S231233AbjGDNDf (ORCPT + 99 others); Tue, 4 Jul 2023 09:03:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231211AbjGDNDb (ORCPT ); Tue, 4 Jul 2023 09:03:31 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2127.outbound.protection.outlook.com [40.107.215.127]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6923210CF; Tue, 4 Jul 2023 06:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nCaN8kBdQlUdU4lGhuEPuUWSyIWzDxd3H+8YnnM7nE17BKeB71asibjc5x+yVxTsUjKhheNb4iSW70vnyxGFITboza3JYwVIZSHHwtOgAB3l89jqPAsQ1NbKAYZJWbtxrZBoYxVHwW1JJYwJxPn9plzFuYrlThaeTGegK+UwTcdpXI+8VWDCIzJ/AV7BAGbjF+G9ge6WgLhgYGtVM1olBBg3BHKUmpvroS4SggvIOKgezSJPWrKxXSJ7An0FzkEu4InDBrDIJO0HV2WVOM3cYPC1ryv//EL8sEvqzedaIcGbGSGi2qY7QikBbf5F/njC5pstCUWmSXnNFGLlGuXVMQ== 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=K1H4QRIw5THNFCCruk/I7hsZLPuqOLJzaUmubmAl4Ls=; b=Dx+FPXMH5J67qMRA+E5MNz+OotfcL+L0wduZLAjhwDsEd14I+MizMGkDYUIPYBH4bHAq5tWaSXU+bk9orfpdsIJ0QefM3tMlek7beWw9aZixAhucV8Wp997qwfmHf3NY941ewRnWhm5PhgmkOvvxNkg6Jo34Pb4EqvpCo6tNg3HgJEaI25XGjAqZhC41orIpfnpDuxeab94JqSl31IAXxh9ZMDuS0t2SWIJgrYVU9vHWfojhrdxh9T+Uskrof0g3ZPXOLa45lXD0TrJ8DRHvq4BaW3RldOLhCHsNBLtn52KKBc47y3AegXYx09v48/ENmxOXHNZMjI3aJz3jBIYGWg== 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=K1H4QRIw5THNFCCruk/I7hsZLPuqOLJzaUmubmAl4Ls=; b=E4ErRDRxYswtPrbFSrkenR918OxjgydQt9j2lIl0wD+WxOQ3mdOFzc4IiMSoclzU6N47sta5Y7M9jn0lZLMIsV5fylP3LQuqCxpSdG5bEyZZiBApiKDCJCfDcbsArsza/IbRmeI6zYxPtYD/EjVaK7zca8tfcDfrcfd1GCqxXNZGFhBxSptOBNOTiFCjLvl50euwFY+RlwaVTRQq2xJLV9OVwPb3FbaKS4FoCsbDr1+WCPKyB9PE5D3q3/VSkXX6X/NepOxx4wbv2UCP/owOB4ib6DCqZn5mAEEStxIuzAvY7GILY/IyUPMLyP4Be3uVsUY1txkX9MFmRIzJ2zc6GA== 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 SEZPR06MB6198.apcprd06.prod.outlook.com (2603:1096:101:f1::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 13:03:23 +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 13:03:23 +0000 From: Yangtao Li To: Sebastian Reichel , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] power: reset: brcm-kona: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 21:03:05 +0800 Message-Id: <20230704130309.16444-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704130309.16444-1-frank.li@vivo.com> References: <20230704130309.16444-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR04CA0209.apcprd04.prod.outlook.com (2603:1096:4:187::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_|SEZPR06MB6198:EE_ X-MS-Office365-Filtering-Correlation-Id: f33b1ce1-0290-4b3a-a2f1-08db7c8f0c54 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /0sEDedAkFLmrAv0oLBeCiMzgj714hPPJ5uUU2Tlnej0CUsXFFjAd755jWLX6oDmaW6/auDGrCCpCXTf4+Sbq7OW3birW525M4AWgsEpq09mZqbn8HIOKVsqUNqquehJ8blv5L1oR26f9MAu3pBx3nbUSEMt3V4MLZtqRmnGi6RYmwTuFN4ExocN55QqQpSz0by8L79EdBbOVG8n//xF59UVMpLWSvUP9mbb9YSOFvBZ1D6tr8uqr28Z/dJ00z8rhfv5W07f1GnH60P0BjKzxAUOh5c4S7vlIKCW6mNlpaeS+4ZY7oCMJph7Sqa+8ZlhfxAFDuw0+oYiXwsmP+e2HcvduTJ9nIplh0NMZnXOTvcKEhSiVyMj928fgGkpC1UlqIwUTfXgQqJcaFVIOeSKeiFQHZ14sQkNUXtRFe8fwjN9QCJ9r3m1OxoU4leZTA9IsM2V121sS4SUpDFefJtlHJqKIHt+T8W2P+aqaqNuOhKRTcpKaWanCl7XBGUSBMeEspDAg9J8R8jP6lnrC1aTvIQ8RycjuCghC/8+1e/iKRCvVPDgFWoG4JY1mgwP0xxoZlkQDty6ykpsX+dd8HpQ1wOGgumDhK5GvGLaP6g4jOeoOKFobTDhIlZu1foyEbpP 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)(396003)(136003)(39850400004)(366004)(346002)(376002)(451199021)(66556008)(66946007)(4326008)(36756003)(66476007)(478600001)(316002)(2906002)(8676002)(8936002)(5660300002)(41300700001)(86362001)(6486002)(6512007)(110136005)(38350700002)(52116002)(4744005)(38100700002)(6666004)(1076003)(6506007)(26005)(186003)(2616005)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vpWe9DLR5+TYEvwSLoBPitchb04MLKFODN7Kf4/sVhNiU2j5YIRcEqo6Dzx62RIsUmhZ9Y0LHDP1qCkH9wzanq74x+BqeQUKWP7YwGcY4qI3AhLwil1t4EfR7HBJE4gT8oEQJ4siM8xv89hJLfcm0TT5qXCnhz8R6FP59CJD2tR9Xuu8VFMkaTyiFkhyi2DKn2sDi3SfIdhEzqCQv6L2PuUC/fij4aMtKaH7W9eD7lXIIy3XnfTHorPrMxhP/97iyw//2jFBxkn3a1FTV+Yi3UftGIvuB4Ny3MMfOAnJPk3L4dEJAWDHcoFAYiIneWJHYrF9tzxG0eqdZA1vvtQV9T+DuLSxMGh4jrFxlazlMylv6HeOGB8nOqjAM33SYji/WM2Gq4A3ngD1COBVqidw36LnAl7LW23bPxB7+66FBKxFsY0mi+K3gytBcfEuHlQZ83ijjmhL0O2tpJ9CE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1jkr+ch3vc1KMCwAnAbwNItX7VbzcM7iaObOs8t+0QwRl2wMHPJYV73 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: f33b1ce1-0290-4b3a-a2f1-08db7c8f0c54 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 13:03:23.4492 (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: CFNAv96d1UFeTKKRwkCf+NzUD1TUxiqGTFWgpDdvbRocZxpsWn+PjM7xQpx3G97PFDwVTo3FyOnJu2YoHoa35Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6198 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?1770495900265252772?= X-GMAIL-MSGID: =?utf-8?q?1770495900265252772?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Acked-by: Florian Fainelli --- drivers/power/reset/brcm-kona-reset.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/power/reset/brcm-kona-reset.c b/drivers/power/reset/brcm-kona-reset.c index 3de024e3ceb7..6444f6154761 100644 --- a/drivers/power/reset/brcm-kona-reset.c +++ b/drivers/power/reset/brcm-kona-reset.c @@ -38,9 +38,7 @@ static struct notifier_block kona_reset_nb = { static int kona_reset_probe(struct platform_device *pdev) { - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - - kona_reset_base = devm_ioremap_resource(&pdev->dev, res); + kona_reset_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(kona_reset_base)) return PTR_ERR(kona_reset_base);