From patchwork Thu Jul 6 11:39:33 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: 116642 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2497415vqx; Thu, 6 Jul 2023 04:47:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlFCihVaDqXo2O1mtu8vI26tSO/AFEzbzvwbJupEULyBjCDOdCePUse6vkEPLyVlqdTgypw0 X-Received: by 2002:a17:902:e54b:b0:1b8:8dab:64e8 with SMTP id n11-20020a170902e54b00b001b88dab64e8mr1197641plf.36.1688644027481; Thu, 06 Jul 2023 04:47:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688644027; cv=pass; d=google.com; s=arc-20160816; b=GCzmOJxOfsT5uS5ahPRDRrRBwDuUHoQoRHs4SyUfzpqpRzYHbuwKfNjYCIjsbFTivw Fg1e2Bs+ujpyPEE/waRg8BfIy0PguNGYtpI/LT4PC83wDlDi/nekMdVA8boakEMJ2xuv LAirvl5v1UGdslYHf0uFglk06iD7Vrv1DJa0oJEpfkgWt0NHx9JgAqtBIjwYmkSQ/2Lt KepQKIV5UKLE3k+MVhc4fBkdEeFw0wfwwpoh7MYjAOTwmz9WAAXFxbr3WznRlebKvq6W qeQyZWpf1e03RVN6ww2nazAjF3Hgel4LXjlFhz84O+vTMnWIBEt6Llq02NCVkR+QL1hx nqtw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=yK9EleEj0j+QwSZkwxKUGLRKwRWew9Aw2iOcxvDynJA=; fh=5bPEgbqKA/qejtQhtymNh2KnqWw8w3+Y3vE4Jghf8tc=; b=ohQnddUaAkJn8kjmiKd8C6yLVY3OATxS7IUXO4fKUHQeSlKs6nQK000LQTVMIecmAK yFbRn/ePsrQpdcibXC89scoWmtESjyPJAbQrOys/PiTuVgpj0pFuwrBUNguoPfU+M0sC QPWv41sU50AjpoLVW9KONTSDq92fnxGQQNjkyqtZMxxv1TjO0+px7SjEUX6zFaWuwCXb leWN0vdYyI+u84iVAkkdR8t5JzP8iG7aZyXNvJyA5R73MHuXEG2bQG9esBB9MWiiOBgT XurnbclVeurCg/HZJPLfaPCAzKYyUXgSslLrvjI0cnjexcZjdYw9gVc1lhgVQaLx7xvb rJIA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="mgsk6AQ/"; 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 w5-20020a1709029a8500b001b0044f186fsi1106876plp.41.2023.07.06.04.46.54; Thu, 06 Jul 2023 04:47:07 -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="mgsk6AQ/"; 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 S232394AbjGFLkC (ORCPT + 99 others); Thu, 6 Jul 2023 07:40:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232103AbjGFLkA (ORCPT ); Thu, 6 Jul 2023 07:40:00 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20715.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::715]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F0FEAA for ; Thu, 6 Jul 2023 04:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nH6onbZ4PnehlCnqh/GHTB9p2LTWSi8DzqePV9rINQ4V2Da941YC4FrK7pPKYjpk+7BZgiR0CJ9/ts//KsIcrYWQDeLsFY/kq4N+zUbf0rOPO/E2zhB+yv4MSbrKu82X5Ohh/hstyC125NFGyutQZUZimcdhk658lzbUObIQ0FpedAG8dywsloBYsjwn8LL1rGNa7btsZfLqRsqoGcE6FLxl1X3JW+ns/WQ5cJToYBu4O2pQgntEgLNuDIHPIJ8RFqeeweH+lKN2WS14RP7GzUn+KoAUEsJIk6O1VqO6seA+8ZfAxUCTzi8o9YHF4TttaGRN/RMuyAEgNxyIBIVKdA== 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=yK9EleEj0j+QwSZkwxKUGLRKwRWew9Aw2iOcxvDynJA=; b=RSeS/OuPmq1qL5GE9G4RuD/0B/PENdiPVWEOYvSlbk4nCwR52+EtmQDRJTjbH/N5YeJopEyMVqyskunR/blEEPfgvDEk4fQnrXsaHEYJffuezVUxOjRBmaOberS2kqtfaFxlVf1JVTBafIx/O5UCR8yAJHKTO48ueiQzehL3IGg0qhw5iVEd8N1xwy25udmnvfkicoRGbz+knVIm/XkJg5mLzgH0n0Pqu7bIdzDPW+Ml/3PnK/zbKaDEG6V5XPaKHFOncFhUlhcf3gjiEZz7A5HLsqGeT/xuohhfaPIQC/F3s+INKJ73PTgZv+/VbUmvMQmbcyAPsd4bq0+ADZM9JA== 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=yK9EleEj0j+QwSZkwxKUGLRKwRWew9Aw2iOcxvDynJA=; b=mgsk6AQ/3UCKJxa1GjV7Jc+6nNpCEiQh7RmjKr5QHUedI7D2p1zClj8VAPZiQ68s+5fnCAucb7LkjIwf7tU8Z9QoVWEhb5esJFcBlQ1tbhEaDkXOUGaddTltlFg3KCr4NrnmJRRXmBiBI7PhVw/ZCOnk+i8y7AvpQeLl3tRX+oYwIEa/bdoWwA8NFcaz1DVvQQ4YzkaCfmS3ioAzRiyM/lSaAUQMf/4Z5CAe18FOnTP3mYTsCNFteOqnFEcrXXTN7Kvip8RnUqVbWYQ7x8cu+gWkW7o6k94uj1k9b4NYBTwWgAIbrm6mv8Zv4o39mjmtGD10XTBRiUW1AKFMDfZbsg== 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 SEYPR06MB5889.apcprd06.prod.outlook.com (2603:1096:101:d2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 11:39:50 +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; Thu, 6 Jul 2023 11:39:49 +0000 From: Yangtao Li To: Lee Jones , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] mfd: atmel-hlcdc: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 19:39:33 +0800 Message-Id: <20230706113939.1178-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SG2PR02CA0013.apcprd02.prod.outlook.com (2603:1096:3:17::25) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB5889:EE_ X-MS-Office365-Filtering-Correlation-Id: 27b40156-4d71-4c19-7b87-08db7e15b4a4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2wCMjNROu3ahzNKeXDoCcpHeiOR9DM850Z4K93WNkd5EzPs97dDdGtnl9PGE2siktoPz6rEgXl+BpF6AKsj8epOHs3ra2T1/A0c7QU2jJZIDPwmA8wW2pdnpibd1P4wxWxM5Hg44Knn7m9IkN8T45HVR+GtPfrP4D+eYVqiRdfSouNy6GHCEDgdNLW9cCENLCqlMqAvsohud1zz/D9UfFD1HMN4SAdNoesx011OqGKbKlfFTjmB6HafV51w5bC7Zv3AodOcL/43XNcH22+Fyhtm5R4WoGpd0TowysArN7SIn4VzM7LESi0IcdwJ8YDrsP7auRnu08Woif/jQzxpAcOy+Ghk3J4z4Lvr1VSUjta/8uF3r02FQO8xS2AS8JKZR7jNTCBhi9xm2JKtQSXsZW4dyEnMcFxkJs+6x1Lms+clwsAUqTdbCgAw9eyeG6KEJc3Irq6guUtkKyBRq83lDIlOYT064vdlzOG1yzno9QouQj6n6lOfRNzO0Dd4UqZCEQUJ90noI61I229yx+KGQB14Gu1udKjrAG2agQIgGLUlAJWwR4lR8tCmTpsiFs0l6ev6rTLuNLvibXvID6ikfMbWjaCLcFc0GnKkIXC4r2L1d/RU+3Izxo4h0wuKuCBdt 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)(346002)(376002)(396003)(366004)(39860400002)(451199021)(36756003)(86362001)(2616005)(4744005)(6512007)(6666004)(52116002)(478600001)(110136005)(2906002)(38100700002)(38350700002)(26005)(186003)(1076003)(6506007)(41300700001)(8676002)(5660300002)(6486002)(66556008)(66476007)(66946007)(8936002)(4326008)(83380400001)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TQud9WsfRnDFb7mKrYPPkPUBKKVYUqRWmrLyM/AIkQXTFWu5IIKrLDEYCuHMb/tnr7MAMCwI5mgrTzjFrKbfxAygPEZx948cbhW9gJUFfX1iluTgotcKnat8SUISSrzBaZ3KCRVlbZMWhCjBf1WRRPiUFdWL7VtYp/WvhRB6NMwaDNiz47y08c/UBTza+CzVpcnQetzjKVbfTRRkwMpp5QMm48sConrU0NeaHt91QZeCTAC+5mDKxf+btl6NnfVtWHvTfRxik5rgniyq3iNd4tACMTmdn06iQt1i4XYY/kBuvBuzNfs/zg7/My+WaGgZ+jYa07rC6rP6Jj27TDvYp49t2zF8kjdUFx8XbsZTaNwq8fd1fYRxOStcSc7mJFh7rVPwUqdvIMNVyEBarx6enoX9blaJs10+DdXm9zsz2u48teVulXTh3wJKSnRVhQslqvHECWfQZ4CtVX0OGTHAfAmocTy9QevCtsaUhXyZV2vMPIrpcamvxmUZ//g4XW7Ye1ilth+Og/Sk9X98MF9dLnOlldx4zD9TkUWBHKgpSQBziMjbAWKemeCCd+2aTmZGQBT9nqNdJ/9LMWP1poL+VW9nNc3UoPaOaeisLB7TA3h3+NxpelDCuYcliv/Ffzkp2ga0vNW4ng/hb7WOz12ykhpkWZpkKGmGXl72LsqYM8zgf324qkA5dR9K8Ume4PIULGHNQMYSoNEfH5DT4VWEMlbd7nLp9WQdsPBmYAqiWw+ItuIEQnka/wx5wfm6xbuvOtp1ykJPP2Z6bVpCkNtSisPTv+AKnKbJnZ90tTutAQgkVRNivrDNepbsIaiqcZps75rJ8lvqtB10BDO1OH68TxWiF+57NqIzWkuZNZ14DdQK2tKW6y2stRL5LuuDXabE+qBzsuzDgPGxYjwvFjwTvatSbPg3V7lJUW23R+Beh26TxtOpdLRb6jVo7gYcEA31UsTAJWu8cauSv8B2K0JRRpwNUJqCve8JTwHQuvmTvoA0sSzc5ail1QCqsVHUpaLwT5bVt9pSPPej+4ybStIqF3Q2JqxoEYq/g1DTjzb3NRRnVVG4r98l0CaRKabrkipUw+jgSc/sSLwv61RhO1dy5px/zL1M2IZlKKOaauNzoD8INkZnZVwbnawrgcuyREOVAz5HAgOOEc1lI3Mhuh3Ern0bV6T8+o3qUnrC1y9TtWSQ/Rw3SwlRqZ0YEONC6OBC2wm3cnuIhnUT+NOdu2+t117LM8XGhl+3rmiFonXS8goRiIMzzhsaxkNBriR9Phq61jS6LCKmDCL9K0f/KS7MM5XxD2K7QAsiQF1uz8SzMPIrU8mHGKbXGkjrX20Mt2t7mA8fmdcuvzY+2rkUIDaCObmy5lon8TWfEToODSp37C0RfVIChRYvRBHnsRk3e5Pi4HHPt8+gaaX/JXcBg0SdX8sIJqSK1xFURJ44R6l6LhSum2ybiqCghk7svEICPSgYbFz/FjiarXhErs7pbJTQAEIvUJk3YOMaAPKxL1WghDvLrsbFdI/906kSCxDZUWV35WTnbyvKvQSB58xmI6f9fMcqnZuPyF+On+U0amuL7LlaEStWqWmq8vKNlrNL3SXp X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 27b40156-4d71-4c19-7b87-08db7e15b4a4 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 11:39:49.5792 (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: wH9WPLaWbQPl3Tb36aHnEwy90g41z8bYXqNSpzQVNDdszXMhn2/Igo2Icz25Tfw00e414f7Aj+UcFHJf0+RZAw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5889 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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?1770671600201088105?= X-GMAIL-MSGID: =?utf-8?q?1770671600201088105?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/mfd/atmel-hlcdc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mfd/atmel-hlcdc.c b/drivers/mfd/atmel-hlcdc.c index 3c2414ba4b01..20de7f49a830 100644 --- a/drivers/mfd/atmel-hlcdc.c +++ b/drivers/mfd/atmel-hlcdc.c @@ -83,7 +83,6 @@ static int atmel_hlcdc_probe(struct platform_device *pdev) struct atmel_hlcdc_regmap *hregmap; struct device *dev = &pdev->dev; struct atmel_hlcdc *hlcdc; - struct resource *res; hregmap = devm_kzalloc(dev, sizeof(*hregmap), GFP_KERNEL); if (!hregmap) @@ -93,8 +92,7 @@ static int atmel_hlcdc_probe(struct platform_device *pdev) if (!hlcdc) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hregmap->regs = devm_ioremap_resource(dev, res); + hregmap->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(hregmap->regs)) return PTR_ERR(hregmap->regs); From patchwork Thu Jul 6 11:39:34 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: 116643 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2499102vqx; Thu, 6 Jul 2023 04:50:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlGXkorMHOIHbvTTzlIF9ZFe6ug7I/syo1VKEVZnaWaCviYNFZDi/sdc5cKWtS8oaTTh4ZM7 X-Received: by 2002:a05:6871:827:b0:1a3:16af:56e2 with SMTP id q39-20020a056871082700b001a316af56e2mr2023871oap.19.1688644236000; Thu, 06 Jul 2023 04:50:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688644235; cv=pass; d=google.com; s=arc-20160816; b=EFDZAqh06eSAyHDNtRndl5YgbE2QkSL3qW5dPGSWIN44IBmrpWWVuFVWkn/xQ4qNen vxV9gfk7oC0++RwqVrvNrWBR1Kz3kbaFV6NRGNt4uecUcE5XetJyAGw6LHlUHbILZhFW iQHlFbqlWWjDI7K0CSQ7F84Cqze/O1/w1kZSobT3TlQ8gNfwjZMVEa85J/GkbCe3Fh8k R5MnGEN4OvlliyBDqppB1P5ySYlUcKRtKLK3fytaaQoQpucrZ1OHR/HzC8r8YptxFOsL 97Lz/6JQVzn6TCbUieB05HzaOy90E+JdcHow8NzKBHH0B8j6QMo4V10L9rvkDQ4sdD/B De9A== 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=g4TibxnPfReehNeHPaLi5eW9sZyTCC7O9nyfb5qpGRk=; fh=/dLJmsZ/no0BDuGWXlC3gwaSuTIyuj5MsXsoNdFvu8Y=; b=K1laZMA9Hwa0R19vBJ1HuYBAenKLK0FoQu6O6HiSeDD3mImGPatrwhFg83ZmDAHPbe 3YPaKB5iper4/hdGeuK6Ko+RGthEMh02MwmvFjy2lCPO3XAZFaKoEqumCIth7cFlCXsr MhySNpAbzgQlMA1znDFI6r6YNM037cVSJdnkSGYfkU7PtQb+I1TFBhmFTNsJR/NCwn2f Muk6cug6AfGAa64fODVDQLkKV7ld7TJARcWU529kalrX4cNDG3QDv0wHqqSaTGHAHvsD dU3S/L9Qgztm3fjlFPH4RA/1OCaUscpwvoD1cKmqig/WFAWu1T03W5CWKz71jcpas3KQ V6nA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Iog4qEBJ; 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 il7-20020a17090b164700b0025945de4165si1549730pjb.141.2023.07.06.04.50.22; Thu, 06 Jul 2023 04:50:35 -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=Iog4qEBJ; 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 S232590AbjGFLkN (ORCPT + 99 others); Thu, 6 Jul 2023 07:40:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232380AbjGFLkC (ORCPT ); Thu, 6 Jul 2023 07:40:02 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20715.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::715]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CEC8AA; Thu, 6 Jul 2023 04:40:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BFKk19ezVHfz77Vs5KymfHGM3ukbjcN//oy/+xE6jJWHIjy6PtxOQq+u+20jqn29tKfdaHfPC42QtIodqee6dIYX/ot9QsMajBqWfvYPuNG7xeHvEeMyWt1Hob3Cn8bUdn1qtbyHFstKAe3IE6bJxvV137TKJp7wVwlYKM4eDkghz5UIBq5Z5GHt//Wi0hteQKZlPeP7JB1kkOA63lmSf8rA2wjRIlCnpiy8ARXvheW+7VHk/ZuukYzXosGTA+cCWv8N7vuODf07xaQgemJ8tAoDiKKUIrtMuPUgzSfD4+ea9nAqZJ1p4o1QDx37yzQAs553sTNrti2pJmWNXM/aSw== 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=g4TibxnPfReehNeHPaLi5eW9sZyTCC7O9nyfb5qpGRk=; b=BPmfSNAdOzHZGuNoJHyDrw6rwaCMlpsI1dOynO9UYlXAsg0No0T0eFWac3GYGaCf1A54oLXC+//qwqMrz4A7P/kJMcJh26UBmrj8wu3oJ/BavWI3izdcUFtog2B8XBYISchxCEp9czcj8wDT9DnksP6nFDPP66SabAXc+E/SZrDgil3tP78Va8Jb1kfyP+5lM0LPcz7K2g0RpQizEFCPJW3ictAfnHSvIp03TX2mJvDPrPJnMUEV9ddkl/d3jgL151lv7ZxatYWllnfoTfxx9NS8tqiBun0fIDtZNDIMDEKoGOhXQwbJs5Q2LVYT6PLuWHmeBNgV4NOU89PvUuXSyA== 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=g4TibxnPfReehNeHPaLi5eW9sZyTCC7O9nyfb5qpGRk=; b=Iog4qEBJpUBGx3/u4jZlAc3QtGQBgfjeYa2pB5wuR8eHpUp1KTSBgtQux/yAl+94omyk+zqFXB8V3Jbgqzqd+Uyee1/dVy8wFXIwgKJAzmi59fEVpWpV6UCtA5mqNISc4lxpivhmSIfP8+qPfPf27MJ52UeNY78wFf3TlsFDcsGjiokgouH47A1j4oVeBrHGC9HGu1IepBXW+aS2JfjoVxdZy2YmKJKVMOm+srP0Yof00p8N0qmZz3xN092CdZOgveh6hRr805PC2x9AqO+Htu+4Q0j3dUiTr8f07NzVi8kvGjEuCJqkAT8MpKP71mZ5saz6+sZeU7kqnkv/wXgkzA== 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 SEYPR06MB5889.apcprd06.prod.outlook.com (2603:1096:101:d2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 11:39:51 +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; Thu, 6 Jul 2023 11:39:51 +0000 From: Yangtao Li To: Tony Lindgren , Lee Jones Cc: Yangtao Li , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/7] mfd: omap-usb-tll: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 19:39:34 +0800 Message-Id: <20230706113939.1178-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706113939.1178-1-frank.li@vivo.com> References: <20230706113939.1178-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR02CA0013.apcprd02.prod.outlook.com (2603:1096:3:17::25) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB5889:EE_ X-MS-Office365-Filtering-Correlation-Id: 5da967d2-e179-4eec-8849-08db7e15b5c2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XwDKGIEQLBSny+LY3j/FzJQ9wwFUpdNjPpzWdyxn8TkwJcgZ3deuvL6O1eHCgoBeJnnF94FAQMAmnkY0eOFufHT8EJreIusWeX+vDePEkhtX4C3weWqCWXzO1wtFoUQaa5q1BQ8zRX4ySYbWxbbuTZJq6zXfj4jiM+kH2Gn2hHikerIbbIcieBajrtQ/4UQc8RKWEfbxwjB+Urz+RT2W35jz7wrp6qUZlIdif2QWARbVzR3jNcXnCONHDrjmfdawUzLx0SxjcvRv/l+oaXxH3nI4PG2CYEeRZ6VXcn0jpn6OW4WJ8pH2HFiZ/w7KPQlJm2Ifn2NWlRzynoPJIIcTMIV3DE8AzHqCSDSW5ectT+vlEyTQftDKZNvp0g9urT8FZXOPiwg0qQRcMVPDoW/K0gdvP/OUV80Z1iW2Oip+WsAfEJYRMizWqySewE8wMxfd6tFVqBBOT3ZtzP3sdmu/Fo2P3Eft6GUoNDPIlDI0OF2zFYYHUclQv05a/Oy1XnioDHfOlYbkagI0fTExG1bDH1XRpJaT81z+ee17UT2mP9O/rt3+uGBVvU1DzbNoD3zoKik1BMzH5dJNAdrJqJJ0H9RVDqFQR7oHGdjT15Ql9YSmioyaWqf7eV1vVZmyAMco 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)(346002)(376002)(396003)(366004)(39860400002)(451199021)(36756003)(86362001)(2616005)(4744005)(6512007)(6666004)(52116002)(478600001)(110136005)(2906002)(38100700002)(38350700002)(26005)(186003)(1076003)(6506007)(41300700001)(8676002)(5660300002)(6486002)(66556008)(66476007)(66946007)(8936002)(4326008)(83380400001)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: uuFANVTabQ3HkUoALAYBlnlkGbZMFHbV+Iv4oFxVDvfiwJ0sWs+XyrJ2qf5MU5urgDLf/KXrfhlqvG6kmRXe8p2To31HNAy8N6/n26w5JOa7OQoyFM4PbX9hu4LrL8ElmcnQiQDix1bjZuDRCJSsCJwb4E2ZA/TjsFS8p9v+TkYar33dxpeM9FuYOwaj+1z/K/4VnKTxCX92r/k6qzHX6hU+15cwzVXimmR98QRAxwGNY+mKRROiY/ZgE1tY4eS0589GpcKaeI3XlS9ENtITzICWuBPLU/hTC9wAdWIlR0/3ulwTuWaqKrKLi8dxOAt4nOXssLbuK1hWzZwUpJfybhKNr0bzcngzEsCPjHUZhKA8ycROqC7VgcDTHYGLIAVxRMqBx6nzUAGhaqDeepNPmJgqOUb3xqAzEd0rOTqwmIq44QwIvIxbrRZnhlc58IwZlah0AB4A+cpLbxFsC94bgYwttrzO6xdFr0V2PO8LzAMyH4VeoW6rVDlbs7+Nnc+esgxqdBGGho9Fj+DTs4w4npw+YYt95RSWzGiJ3sCkz0vb438xyCY26W/dxQlnaBfV5kHpJS2bT2UIh3taY+YoumMqGcms44e5yg+Ab7mcqygyENQMAdy20hTvT+bTGL+iZGRWxo6/28LGHCeVNHt9/sHUbeDLtL2V1aQbibCPlGG4RFwkmuteRQPurfzacfI8s21T2CBE3s6bxy8yTJ7Wgs4XICtRlSUt+o2WIGSlTN01gw7bOEG5AQzqcWo83gTWhJYzZKHz9FUHE1grjS2my+PKXwUsACUO8gQSk0COp4N5Pi1UnYQgTB1uy3lmKXW6cbTiRMEd0iuwezjD6+YGA5440keo+eyasUumqzjgOhIn+/mDCooxVPKvXDuETVi++xAuQcI1P+4KrDhYo69h4mhmPwOR4jUPStaHgMPPqlCiF9CXUgQMTonxkwqLSP7j4eEiElAPUzxZK9feN8H3Jt0OvmQ308EJO+vZ8p+hza3i49yJcRrL9+KCTjxxg8BkjLmCl0t5KZVHBzE3QiDNtqbO30x6uhG9K/E/m9ZmsXU/9SCU8HpcYNf91FQlm29Usa/GrVAGRAZAQB6cS4QeVL3ZE4wQqOoxwENBLSLAjm75mtJfgQ/Q06DFDwZeqOnBo+pAR8rCj4Iz+5pmDUUZ+NtaoejD6r8YdREYIt6I/DG3QyDgFsAIUNRkeIG3yY4oqal6Lpd4J1Ff8u6KiuLP/VDZRtUJhqNTC4MjFLCaP8TJbsx7y1k88jE/VTbxiaOcFmYHOh3kaG6EDlSSYdxjiv5EDEC3knJpkHpoiv2WnvSTe8BSdoO3SAiP1H1wTaaunH/X4hFzGxwR0VECJo9vl2G7AoM1kurIvDeo2zfVoZTh7vj5uff5wUwTtzpLhm04lgA3M82LT6DSnK/bmRhvRGUkyyUWLV4oTgDaZkDu7ArmGijHeAtnLms+45BI08LtceJACX2C4w+Cc3qp5SVdMG0wP2ZMkUP09nMkCPYDT+jwmgoX/FF9JSJGGwHz/fUwuVfjXpxMgZQRyBoHBm7gV9e1kOJ63TPTfvjytajq/S+hcpcPXAQ9sdjxjJalfnd0 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5da967d2-e179-4eec-8849-08db7e15b5c2 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 11:39:51.3868 (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: bln/4Ra4CtWYzhGKBtVODk27U3WQYtC4xrwLZU7JMjQNiB8Wg3tfhKIMAXvqwAaNFFh/hwhJlenLVZ/9USCAyg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5889 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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?1770671818253384942?= X-GMAIL-MSGID: =?utf-8?q?1770671818253384942?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/mfd/omap-usb-tll.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mfd/omap-usb-tll.c b/drivers/mfd/omap-usb-tll.c index 69cbc2097911..906353735c78 100644 --- a/drivers/mfd/omap-usb-tll.c +++ b/drivers/mfd/omap-usb-tll.c @@ -200,15 +200,13 @@ static unsigned ohci_omap3_fslsmode(enum usbhs_omap_port_mode mode) static int usbtll_omap_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct resource *res; struct usbtll_omap *tll; void __iomem *base; int i, nch, ver; dev_dbg(dev, "starting TI HSUSB TLL Controller\n"); - 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); From patchwork Thu Jul 6 11:39:35 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: 116645 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2502918vqx; Thu, 6 Jul 2023 04:58:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlEyQ1cl8XPlUoGZjqGTULo8hEZQJMi09od1ivbgRRGpmEfEbhMwmHAik5PplKoyzlczmcFR X-Received: by 2002:a05:6808:2784:b0:3a2:1b3b:494b with SMTP id es4-20020a056808278400b003a21b3b494bmr1265639oib.45.1688644737473; Thu, 06 Jul 2023 04:58:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688644737; cv=pass; d=google.com; s=arc-20160816; b=GpyMHUmmbB8qerpyz5WuEQbSaCBs6J9ROE9mVnWb/iIgzlZioQniGeTxL61/fpncRC XsdQ1IQhowElJzQMsdx9+n96icZ3H06v3Y+jV479v4FxJFXiZROvZ0YgtmU41tbLXyp9 MtVR69rsYUzJnZTKD24eN6QEoOsVHIfT3rPRqASN9+1utdiKtBEaYfvkUAjq7JFAA8mO pLAiQN+bcttitEpu1iEHmUwWjkL0yTh97vLtzc2fcHmuxooTuOmhSF4PATPMLXHJ4Cn1 zoNOfLVybrEvc8wXTgbp45UGccyxlJCAnaeHLkvakxPwXE4DDVe0KkHNfMUQ0V6sOIEP 0Cyg== 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=roBYzc1yLKmrJuQyZPI3AB3Ts7ecD4YcbeZzN+6dOLU=; fh=aSD6UxuDyA/Hq55xDxAH1r0SYhPB+aZLcPQnbuvkfgE=; b=meIwcffBayIF1Xvc9SsHqqXRCSaPO0t96uahPnoJ+K+CF93HyTa9esk8a9YpF0gPR9 b6YA2YH7YJApk2l97M7l7JZicBAgCStVyYJMzGjEp0/acfNx7D8Kz4VFIf3/3GbgTIxW 2LcEgseMkWuaKznAoIDFanPECgz56KzcslqT22v0lyh8rcfxa8rjfnxJxYL0gUvbEN9o 9ZLHbGUOnthPenymdLBl+ttn3Gz09pPurCZQxPB5C+H6Lh5YGYt4t7CHA/7PtSr1CAWr iOUDjvbNFyFCbXqVIeY41EyM3WidE3qd2MjK2JwwQ8myuFxrIX0wDdGdHHXe2tnWU4pA zVFg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="p4Ofk/kT"; 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 pi6-20020a17090b1e4600b00262d692db39si4066408pjb.12.2023.07.06.04.58.44; Thu, 06 Jul 2023 04:58:57 -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="p4Ofk/kT"; 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 S232117AbjGFLkA (ORCPT + 99 others); Thu, 6 Jul 2023 07:40:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230504AbjGFLj7 (ORCPT ); Thu, 6 Jul 2023 07:39:59 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20715.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::715]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D3DCDB for ; Thu, 6 Jul 2023 04:39:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LxvznxlOP63xaOzyGxK18qfPvccTZIQL7D8HpLp5LSW/bobjvMLbFN/JI7t6nsXWqTP/P0Eq5msg3YjJK/VbfRF3C4wtr6x4tAHrDwjaqWPZKkO2CzBGoRCaf2WZq0d8XyY7oj+oLeZuLX0oLzMPmhQMLVernNI0iKSpXS9YUPUf4X1iafTTVHaWLRm8KnxV91boiLljrNAt7PtS9V/LZEXA3NkvQvNsiGjUzsbQGdF3qrIn9Z2LAJBwrpd2MXV6cKgr9rbUdbKdmR/RBZiJBjfyMgdIUKyAZhwcDBTS2YL15lVcNiLkH4cuzJDuc081kB3xEHKzgWyjM8RXxgxolw== 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=roBYzc1yLKmrJuQyZPI3AB3Ts7ecD4YcbeZzN+6dOLU=; b=Z8BTASVWIk0F9wbD9qVZlOzI2nw6O9Xo7e4GqdBYgvlffaoK4prFzPs5FpX8F3qdRcRmMuHEmaWiDrsg2764WpLZ8jnJdARW5Nke5AvC3ujoMQ1c1sQGR39kqTs2zMMzUhTMinFNruEyi+BoE4ZkjjUg9MOtUxe0XJAojvb3KkFKQiqV2k/FZWgwxSdraeTU6vPA6opxwJiw97j2o+vGIYxUHOJUrIKgoiy7UtRnBm7mABJbFVO4hfYkqjaYW/JSUmPX4Z0fKGIyX2poOGdNc6vfmS/nkNCoq97Z8JWuRQcYz3pXhmoe1gYT2l9+QKoTDsuChXM7mZjrY096+tr7Lw== 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=roBYzc1yLKmrJuQyZPI3AB3Ts7ecD4YcbeZzN+6dOLU=; b=p4Ofk/kTnpPTSNLnL6kWi1N+vvMj9ZRm1sf4Xhq+eG8qWND/Tohz8VwzWGSVU1bDXqcWhUTEfWSnkSWgSAPAsO8hCfNHmacSYQTsfYEkd8MKEaTSUb5pzR+3NPecsw3jSZzvr+AVwA1gw+a3x7K7a14xkXSCX1GwIv0xZ3BSPQHBkNqL4dSLOvdepXBmcFmAKRVquEr7BNCc68YhtkdQrZQezpjHGOXuiTieZxuSew2Gak9eXflp8+PBbDUfJuo5a8kZJC+xlZu8fbFLIKYafbCEX60+tZ8tN/Mk3TvyHagdCe+xzQCOcwZjqDKR+U+fommcQTZ8+SgFL64a2TRZbg== 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 SEYPR06MB5889.apcprd06.prod.outlook.com (2603:1096:101:d2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 11:39:53 +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; Thu, 6 Jul 2023 11:39:52 +0000 From: Yangtao Li To: Lee Jones Cc: Yangtao Li , linux-kernel@vger.kernel.org Subject: [PATCH 3/7] mfd: ti_am335x_tscadc: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 19:39:35 +0800 Message-Id: <20230706113939.1178-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706113939.1178-1-frank.li@vivo.com> References: <20230706113939.1178-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR02CA0013.apcprd02.prod.outlook.com (2603:1096:3:17::25) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB5889:EE_ X-MS-Office365-Filtering-Correlation-Id: 90b57402-aec1-4502-23b9-08db7e15b6ac X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nGKBQzHlr3vwlXbmkIvWr12l8jxRO1F1GCPQ08ucE81eQpMBbXRU12LRs756EJyOfwYhqL6fbGUlgI0DHvI2vWsIykhynecyMJt0pboJEw31EL7WoMiefwPEsCfO++Rofsg7X2M+G7wISVC56nxh0YINm1pAeUiCNi7yCQzeO/2gJix9IvLfVioepjBxTVWiyQN9Cib5Vgx6+kl0ZLg3IF7HBc2QFjdHYn6zlTdSozdHK5g3gsDKTRwHoixTRLMwa5dTQ3oKTXAU15BI8QjEUoslJSAd/xxxzQGsu4dSZ/ZgQY0LOxfj4+5gktEWT98Wl67czxWxdmQGCElWzLc6gV26SRL9taqDhfVMPFvYIYqzY0tkgqcG4ZVS58KFeMPU7KcXGx5VAGGvRaGMOannoISxAWazpfiCjATxHhdf/gRMBBDblRYeqrzCCjaFMFyEUqsWsmrZqYQ9sPa04x3Uv7IqyZgvGtlwCEAcKrmHke3hUoMzAXeY6a7SYZxyUvWr754NTX4nKDWDwR1WGgvCdirH39DuzvQh1K928YhBcyGdf0jOtAV26k14jlfdEcQm53EUWOQAy+FlgxXzCeZRJqOpFFSFIoqNsgLDLRtnk58MGdolzGgf20FVyJZhDKjH 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)(346002)(376002)(396003)(366004)(39860400002)(451199021)(36756003)(86362001)(2616005)(4744005)(6512007)(6666004)(52116002)(478600001)(2906002)(38100700002)(38350700002)(26005)(186003)(1076003)(6506007)(41300700001)(8676002)(5660300002)(6486002)(66556008)(66476007)(66946007)(6916009)(8936002)(4326008)(83380400001)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eeedIOwJyhPn+hUxJtTVgVwYOMlhT023qOLpRz30Dx7gMGSUdZtj7xIGSfHz8/CQaBBjyqCPDolSQIe8zRX4psGXR1TEop6hCPNFEfS09GhzbI3nLoKKRYIKKF7RbLsjfkbM8qltdTFrSJtjsT9lZTy5x5EAu6EC8h8D8pMipA7M3pQ76MwqhcI6IbP3nAnQGJLIx3t2oqd6JL5WK1h+3EBRuRN2FN8KaOHfzUuUAG8lZVSP36RV122IhXWtQ6sCSIu7GQBihLI/OMWXUElWPhU4rUNmmGfNRfpDc9kWuet8yS2uDCwfdgkG/k/VYY3UzmZ6u6/4fcpdchf3bCyNFaClJ+Ri4hHRJMNkwuFbTAuwwAdfcNSlarOS6TNFqVV8cyvbonaHwmAw3DcY4NY2h0SPM3TKYIZ2LZsS/Nu2ybKG5kvEfZPLGrufmXWYx8KKvBJwahCGTs6/KGb5Xh68xWZexQHoQ/ttn2OgVmVenphE4Siqa/7vi71YzaPpcv8VQBip66z8/wc4izndB7P8cgbzR+Su4lELCYof2ETxCtigeJifNJEb6HPnLbYNao41WlQ97AxDS+9+V0215VsMLgMFXT0LB6LECbAN9zXv9MdSmZWh+oOnRaFWujQPI952OGtHTcitcVGLYYqWZr5cjAzrCMQny7uNufKgi/dynek1o1I4VDv1HWrPIAWFZ5pAOHuE8p9t1fz58Wrn1LIXe533P0fU+rfhVVZed/FElRfis79KkS3dQGVAZyu2oF1HrXku6DmxYo/fKb+ytkJT5xb4tS+1neDD3RDekAHWbsXya2QYiYcn/X0tltS116u4Ag9W1Sd6pJ1JeJHhpnc+a/2I4vsn6n4MC/B0jA0jGeayCUSgi1gFpxQLVknVRHPFsRFL9+kXBhXxbGkV66OGFb/Bx9ssR2wxwDHW8DE/cRXuwgw7AtDlJJ4So0Lqmg8nCA5Ssgm/TzcUYUzD7rioZSEuvMuxRnCSr71FrCPFiS0B+cPZyEWeBm2n6NJK1WjGU+9tL4W/gsIyUFwRN1o3rbjW92jH2+dV4xkv3tqvsG2aHRNjl8ydv6x1GvcPBIa5uYvhnY7zSWuIszHwjvYmGCeU2i0EE9tdzsb/ggMOwQf5N2B56efU9kvVQhehgBh750z67aiunS0amHMSSTigI+9+hwYRT4Ywcg25ud40glaxQ6ZUnPf2O7bT/GyMd+MF+UO1nwGniVsakX61Svru+fT/hZ0sLLQTsxy7dM33Iv5sflp8Jgv3vYlTalt3kN4TKF2HqwjVgsQ2puQubg82YZCVybiw81e0eYYANNzEX/HGWEab5SLBzWPHsxa53KVGyOXN9Xlx2SvMwXkssqz0pxn0gWPorIkyDLhqEeHMm5X0ayR+xtpxzh/Dkl624gYSwsJwFKlliuHFlFZHUJ/hD6a4ajr5KulLFpyphaG8iPCykIaqK5VYn6PwzJ2QOP7TFCfvCL2KPyjD9XscaJX6ej+f+BiDH09Xxn4eVgq0whEtWQqfKtvVfaHmXP8VxtsLkHWIK6dho247Wa8cwHqWsALYNBruGYZWf5KPs5l33dpwPmEHZ8SuRnYYxiE4UtYM X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90b57402-aec1-4502-23b9-08db7e15b6ac X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 11:39:52.9176 (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: jQVIYLlC4GHCyMFqrQriJtjOV21DA4Y+7a0cdqhkjcpcDpEasADQTDY/kOQOaHu7/t7E+ou6L5lB5L5qQI0xeg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5889 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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?1770672343936174196?= X-GMAIL-MSGID: =?utf-8?q?1770672343936174196?= Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li --- drivers/mfd/ti_am335x_tscadc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/ti_am335x_tscadc.c b/drivers/mfd/ti_am335x_tscadc.c index 07825cfd8aa8..570bc2d33e2b 100644 --- a/drivers/mfd/ti_am335x_tscadc.c +++ b/drivers/mfd/ti_am335x_tscadc.c @@ -201,8 +201,7 @@ static int ti_tscadc_probe(struct platform_device *pdev) else tscadc->irq = err; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - tscadc->tscadc_base = devm_ioremap_resource(&pdev->dev, res); + tscadc->tscadc_base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(tscadc->tscadc_base)) return PTR_ERR(tscadc->tscadc_base); From patchwork Thu Jul 6 11:39:36 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: 116649 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2508835vqx; Thu, 6 Jul 2023 05:06:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlGhV6/FTGfe4L8O0qWZzYNVMBD0Cg9PiHBi8r2j4AR7Qj+fH2EnWizmx2W2wiS67cMITqOq X-Received: by 2002:a05:6a21:9983:b0:12d:cf28:3bc7 with SMTP id ve3-20020a056a21998300b0012dcf283bc7mr1316707pzb.11.1688645206047; Thu, 06 Jul 2023 05:06:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688645206; cv=pass; d=google.com; s=arc-20160816; b=wHwbwjNU1A1VnmFILjG8cZ7fVqqtz+0MVjf0X/QtY473krIf2XLiLCzAU2a8Ru0005 rrkyeej2CJOp4ufb/XTg2W7e7QVKSFeBKAGz9gbdxchllkeIMlEluCRfBiaKhECaYsmj 3CJNQPvIfvuPr5l92y3jY1vfoTXHM7P1qUgypdUHtVlx5Ww2ebkxi/G7RFfKNEVJgRhY Zn72LoOWwZZrd+i2d3NUly+nDmczHPYXqy/cY5mBvDhnNxJtvkMCJh4St/kTRGxG30Yi BicMrAe8dRod4p/egnMpe39gQy2d13CU+vihR/ObQlKbVNE5s0WUMeKxYo1RMVDtJ0w5 wajg== 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=JMp8IXemTEd7C932HIINWu+QIi0l6BOly5jVd490whg=; fh=LrElCaqzuWWbDfGfdY7lNP5/KVv90VcG991qljHVJac=; b=edlYhqAYreB2LHRUC4cPHeXCn3dcMIktea6TuJ2i7HlPJCVHYGOkyt1rFJdgH5NUZ2 HkvVXgP4EeZptNB9Ditvky5qi/QKUMcOTwtNguiX2oF6hSkx+0b+vPr9NsAw6Qol3sY6 3Cd1AUAdG2aAhaWnyR6+0qRHXBWboVEzGy6trksqIh19ybOyJjqgu7bON+eU6qKmin+C KRIRHNBiTWpq/lQqmHSISHRTk3pQSkiyrL1pNBf/rYoTl1L8QT1JhBEw8enwAV5M0c+F /QykDvo3Rzc92aU3hVF9z2gyOv3Z86ud2eDtAqwQfj4VM2u779xLgekCfRv1jt7yZU8v Om0w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Ru2Uavtz; 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 u9-20020a170902e80900b001b84c7d4716si1339637plg.32.2023.07.06.05.06.33; Thu, 06 Jul 2023 05:06:46 -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=Ru2Uavtz; 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 S232308AbjGFLkH (ORCPT + 99 others); Thu, 6 Jul 2023 07:40:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230504AbjGFLkB (ORCPT ); Thu, 6 Jul 2023 07:40:01 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20715.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::715]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69753DB; Thu, 6 Jul 2023 04:40:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=imWndILWou4U1SuuooIH9K6JiovRv0a7zANoTPB+Kg66ewMClS1BQyRZl7A1v2u+x56kldEoQ5fGeDXzTm+tV+hs0npRU+NGAfgAR2QiZDV54J/vumjfpo2pz0gBKDHSZDuDIM5FxB0Z7RCtkQoyCO2d5bQp/wikC3b55yHaUGBwvWBP8y3Chdz/odZ9jzllX8Gy37nP9VxR0rsX+V8D1m3hvRaPrKcoaa6K2P4F+gPnnjv3p73H9AZsJkScoSYojT2LjfMN5MhvPtBULfkHifRTJdPjPrZrKu2Pv5n+nyPqLxUjaDVBgJtTNNNH5de4zwxtMsWUDfK7sqk+Cd+tyg== 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=JMp8IXemTEd7C932HIINWu+QIi0l6BOly5jVd490whg=; b=GsOV9IiQMt4Ziw8s5RzCPFmP4rFmj/ptSPVUIRvVfilxWIGkFo3DK5SGCL3lUCWbaIBzlPrulThtKmvs6R3E57J/dF+RSyxga6y6kD497HatBrJZsaBEfh+xic/liRHwk7Z0xF8u1vaPOq1BT8OyDPbK9LlYrwFRsvVumqTz3U/LBf05ucS9jLxkEgLRHsYLzotR9QHJ1O0pr0MwC6oHxEKw0tHgTN1oFUZxLzTg4QRX27062+L3ctEoMHZa7VJHm4OxL7QYf0FqZyhG9S3Um0OezP4ECHFta7orcd2bztiAecjBU5WOH6+q4DxdpShyVxLowkdtbrLo/SVZV5TW0g== 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=JMp8IXemTEd7C932HIINWu+QIi0l6BOly5jVd490whg=; b=Ru2UavtzGi35GR4n2sVx8tUB+j0Q9+0Mp/dGE60WgGiawzI0AzRPOMvvQ6QbFjoLS8KuvH8CBz7vsKJZm9bCqoaf1YsfpIG8c4DSItgxwd5xv6YyVk0oEMqcr+E2UKKAunahmwEVC1lFpyJpzaqZAPitYyopBMl5+W0ul9NIvcQEdvDEa8Y6HAT3+ooLnYxMcT+c1Uf3gRSinZVSa81hN8pc0vJ7D4u6TFn21Gjr9QqHa5rFHkpPbVh6IR0qtIKHVkX+wLFRF/f9C6xvc8pwasQ5Zb6ZARz8uHh5JnICln6NQIBzLA7ykGNZ+bgRO0b6i4imPGSLGnPCGOpL9JQI5A== 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 SEYPR06MB5889.apcprd06.prod.outlook.com (2603:1096:101:d2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 11:39:55 +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; Thu, 6 Jul 2023 11:39:54 +0000 From: Yangtao Li To: Lee Jones , Krzysztof Kozlowski , Alim Akhtar Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/7] mfd: exynos-lpass: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 19:39:36 +0800 Message-Id: <20230706113939.1178-4-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706113939.1178-1-frank.li@vivo.com> References: <20230706113939.1178-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR02CA0013.apcprd02.prod.outlook.com (2603:1096:3:17::25) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB5889:EE_ X-MS-Office365-Filtering-Correlation-Id: 3cffa873-6943-496f-b97a-08db7e15b7d3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ul7YJJzYfX28CCVyI4M/UFp4u5TOJZ3njU2tDAszHvhpfFApsHe19JtAuZAU9dIKuE5Z+ID1vV7H83qhbdO9nSU8WZAbFTXYDO/y32LdqghNIytehRhPpPTYO6as0P3d5ne66nBobsZCaX4X/zXeYhdpS4sbZLvnkmuEZQorUUPl7WUZ/L05J6Yr1QEP3L0dTGIiCeIX5n23ICG03vMcKmSq0pkD/KDttmOR+Qb5N5fnS5hw7NCKMESAqDn9lzqFt9wUPB5exQSQRe+jilWQk5Eo0eMx5YFoDlHSTI0D7OZ7B/DoiJawkTzNS+cOu9LuHuyF4RG2ZEF0uFzr6fB0LYrqZEIZvJTbwvIpHwjCfbDf6tH/R0RzQ0kLFSaNZqwGP5s/siSTHqwoqng3QGifq4Es5+mSgxvdyhB5i9cn9g+7NIJrqREGK3LbCldSeXlzb7slRd7qXiEk9oYCIVKCLOYVEfQ6QNBv8sQm5PGixLteFuhITGv6/PnEkpIVXuZl0xGcnvJPjMnlZa3RiNm7pmtO3m+rGB3lkJIgghZzbWGTRu8gbWJf890lRSmhKJOScjfTCKmlTpje6uVtaB+HpsqR+ZzZbKeBG3xRyzLeiFc5CNoyYFqm4G/fz4ZmvBFG 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)(346002)(376002)(396003)(366004)(39860400002)(451199021)(36756003)(86362001)(2616005)(4744005)(6512007)(6666004)(52116002)(478600001)(110136005)(2906002)(38100700002)(38350700002)(26005)(186003)(1076003)(6506007)(41300700001)(8676002)(5660300002)(6486002)(66556008)(66476007)(66946007)(8936002)(4326008)(83380400001)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tnmPv56IOs1FIZC7IFaKSlA1bseWCPgVrW8VYr4tc0A2MCgPwbMvwmQsZ7rCSL8XG4l0aNw9eG/ZEFtiZCTwgeI/0hw7CU0OkFKal2SwPjMJrR3HawygDxbA16HO1v/ozxMIBeUVvNwwll4R/ojkr70mMw0AaEGUaPB4j+Aw5Wxf3PJax19amK9q7Em75Zjuvn48ZLu2vZW4QEXMEIknljt012DxzMD8CDhhuZuIyJgiLIRgaps6HjV4+yTMh8a921n5Lb44fRLBpabuXi4jdEjUGNGvAZkyYmeVJ9F1tB9MA23N8Sc3OPNj6luNoOux0M4b7kQ+lGIo8WIi5SMWY3g8V7N4PI1J4d+rK0Sh8TuDSrjRbX/WlPkGYq/DUkWbMbNnJG9m4WIUne4ef+adkXT7DqpWx128Q/XT2tFTmeMFZl9dem5VDBg1HQJw5gh/UQWlqzxf4AKQAUjZvhg4IEYBkGV1PsXEoUAO6wInoSjihpJL2zrSv8s4mKiOdtkZziKAY+uWWxOUVI1Tx13eb2KT9R+VMFvmnoBI4qFnnSrNOH3HKJrq9L8hfRZAgcJIhX6pJQTsNjV50W5LKTW/qdhg3ZRLRPuVv///WqyIbitUpWea3TTZ19dD7zaEWVyMPye5FfPKDB+TWS8PYdFaZUfPnhIJT53Nb4Jnp6r+9/rZdWA1u7tZxm5gecCPVvY+cMiwo/ZdMJCLeLo3dAC4HqEWTQFjmOiij3OhZU+oBsbMigzTLOFM5efrdWntSCgq74F9TmlJ34Sk88Sz0lUNy3AWYtTasXvfvydp34HLkmtJAzjnETZSCWWAIVxY9xEy0+ZCuOJEwh4Kxq97eF+twixjIyDHAD5TUWPDQ725Z8LFSGO7kM9zzxTDL0AlJmg3b0DnDZrovaxfrZ/KGOHifc+/wyAf4O8LrPrfiEq1FYPd6DobwFttT99aph2vnuwY1v2mZK3AczGA9VCyWbHIog/D/SX/jM6txjrCQYAF1eAfUkQZ32hiVPpVPVzl8+5uqqu0cApnT0Ykzi55I/lxM/NDb93PGHeV1+CeAqpgqaTGhCx1H5PTUkzXA2r1/qFICwnU8jEzfJYx254PC4M1MzuuJKX8IRTT2XxeXn2amMa2DuvJxhKT3uUoP9jP+9Fd12EfpmKlQjCQjDRQ5fisFPt8fHkDp/hrfrU7Fague8Db/vTUuOF+XgoiAsl0qMX146aURCrsT1no1lilOZTCXFMBC7uiD/6UEMLR3A27Kx4pyfagaW1Zs1H9Kod0O2vWb5jmuG7NlqBn8dVmYMjEstjKucJsPQcqUMWtmRfTiIT5XUFfqXDnbrwccohpUaN9t05L0qAlhxF6g4wwSLssphMHVRQoUDvSdxAbSgFbuFvBCU9lsta/Ksi7+ReugIfKuPsCJxHcV9/okJ1Qs0Q6rqCh7XrwSrJjDGVIgOf4Lvkp2mp+MUWRvqQUk73kwigy2tTqxQlKNYtgpMPcvpPfs25kpulHhzSJYAC8AhxotzNEUwroHSVV6qgkyC+FkJQdt76u7lMOO+y+J59y302SdjD14UztjNmisFFhU5I9aWIHumTnPzhD8Q8ObCrn7UW3 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3cffa873-6943-496f-b97a-08db7e15b7d3 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 11:39:54.8832 (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: mGU5gyeLnIqyzaQjRzSijphl3waVtbJF8OGsDHfMZrH3pNgvZsAhFLNyUkvFyEY78bsTz6VRZ23+Ah7SvIPDCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5889 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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?1770672835685133991?= X-GMAIL-MSGID: =?utf-8?q?1770672835685133991?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/mfd/exynos-lpass.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mfd/exynos-lpass.c b/drivers/mfd/exynos-lpass.c index 166cd21088cd..1506d8d352b1 100644 --- a/drivers/mfd/exynos-lpass.c +++ b/drivers/mfd/exynos-lpass.c @@ -109,14 +109,12 @@ static int exynos_lpass_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct exynos_lpass *lpass; void __iomem *base_top; - struct resource *res; lpass = devm_kzalloc(dev, sizeof(*lpass), GFP_KERNEL); if (!lpass) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base_top = devm_ioremap_resource(dev, res); + base_top = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base_top)) return PTR_ERR(base_top); From patchwork Thu Jul 6 11:39:37 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: 116648 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2508741vqx; Thu, 6 Jul 2023 05:06:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlHPOhHZ4CcjSHB48juwWOM0RitTJ/b0t5RjazFXMWniRoKzZL6/IjQIfe3fEStLNivNR3CJ X-Received: by 2002:a05:6a21:78a6:b0:126:42ce:bd44 with SMTP id bf38-20020a056a2178a600b0012642cebd44mr6849026pzc.17.1688645198822; Thu, 06 Jul 2023 05:06:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688645198; cv=pass; d=google.com; s=arc-20160816; b=fbL8Ch5uBgHyvVAM/MCIguZIrfF++k9ERzcIddKzZM7qiyPQjYwy8FyNgSh7H1y2Pm FHuscWI2Gr3jsTIUD9RF6cAFusHKwH8FUCeX1pp62OsVaJEi8iH/hXebKMoGyKG+6wKB E7Br1RCRXlB4a5kZSBYbm8asOYZD3wt491R+LM1aOGGIQH0Q0DE8UE2fvX3Tvka4oXyl LajNGbOfrgcAWQ/pUAUv3256PZ4SfoPv6RTjzdp0nlgiaHAOG49uqCP7IfM1Cq0Rw7JS au8AgG9p+2u2lsFAgaALsAG0etUbMX43DrMl3NVT2KPudeSnonhfDCmeyN0//werwLfq CSrQ== 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=ThPm5jzEawEJeAbP+7o5YKLL9542oOzZ+0WLNtEnRNE=; fh=/dLJmsZ/no0BDuGWXlC3gwaSuTIyuj5MsXsoNdFvu8Y=; b=1I80ooiJSXJx9bZ+HGUV7Tr1qEvmW/3+rEh1bLQWo42PGSl4k+IFJaRAkG0FMPQvWI /Z8JtqyEfEwhC6iHNDVMEYEiaF8NX1YGcWKbOlCcsB5oyVRIoM6fzbf1M/ZEJ63UCV1I noyHElWHoht87nk13qgUOZWHWgUxkqTCgplXOSiORDWUXyclXEgduZHV4GMVXtJbJ+BA g/8hJMeiA+/crhH19O4l4o8oaK8dVFVWNh9py4YV9b5kyZPZfqRZsgKhcefk1TjCAd47 UBgF7QjrQOCh2qdH/65MSlkXv7W6CJzv7EjEGK+6OecC7/hohLZiVP4gFAgv9NlP+Er8 gUYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=RpgDqAPJ; 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 s7-20020a634507000000b0055af072945dsi1300274pga.812.2023.07.06.05.06.22; Thu, 06 Jul 2023 05:06:38 -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=RpgDqAPJ; 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 S232568AbjGFLkS (ORCPT + 99 others); Thu, 6 Jul 2023 07:40:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232408AbjGFLkD (ORCPT ); Thu, 6 Jul 2023 07:40:03 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20715.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::715]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEB6A1992; Thu, 6 Jul 2023 04:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dEMYPYz863/C0LSyaBXhqJKLNasXPCsz5afuJKu8+1iCXusSV7P+O0CM04JMGRrsbWYzXDXMSpxNWm3Wl/0HvIzeRSR6JI1L/MizTw6QPlfIstRYrRKbMTV4WFMeIUvwGG0lU7xV1YzeDzq8Umlz5ms/h9S/krhHxKlYjzQ8s5TBxpj0DrxwFUklkN9w0NBfvskHQk2WmWdc5bQQXj8Uv2T6CidsCgEiSmeCpBc03dFRQSkzKfExN2uIL6EBIBBf8cbM53Pn+sT2mu9U9XIl2+CKXyHN7i3vx5tw0MHxvke73zEvSPxSOjfVnpUGUVKRO0MPAsQoJ38FWvcrneQHYw== 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=ThPm5jzEawEJeAbP+7o5YKLL9542oOzZ+0WLNtEnRNE=; b=GMikXTNlxbT4HBxpaJGYCFIf19OGFPfynDKDTZBwoBMofmmNdk6KIAemzTTox/0qycVlFKvo1T3zKjbC4v8Pi0vyYgO14ygLHKOj+rPcb5fsDE5G6ihYZUq6s5T50ea8wMilzZp8ZkSKci3h1bj1lJFgptSyAg+kfUWKX2nWnIdMbdn++mec7NlJ6teICxZaG7gXiriXnC/9uM9YSPiQWhbbsgznI+g3FQJJ3JlCvK9gQp36WTz9df0GRpQeLilAwkuL69ionTvhqoaOOlKejJu5AzOlwscf9CGmvhytMVqs1LM1PNvo/FZOCm1W1WvyfRvSyaxwIb++b2jfjoSSoQ== 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=ThPm5jzEawEJeAbP+7o5YKLL9542oOzZ+0WLNtEnRNE=; b=RpgDqAPJ6LlkME81QV8FwqqJlfBuYy8KpMtpsJhLRn9YH4GMk1LWRYI3WwPtKwGKfjKcxDcK44uX+OnASdKWgMldJYVKEtwSwsSh83mqtXf7ekZIFxVF5JpRZnUCwTAQfOJQAXxdKukssw9Ff3qlRCLRE9hwbqfCs0+jbDppzr2CiFFxa6/yNoYBafDYtTJZZ6gj0jSb8/d3GAjLbsEUeNh6GI189qtOrS8VqxDbkAfHkEzjKddiNIZBFxy0jd/REkCLTOHFhLF9Qhf0NBXIVXMpBfIBXdox6XMJyYcso7yOPcLVNLE2IAtWwEQckgepAMA3PVDx3nkw3zcCAMvGWw== 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 SEYPR06MB5889.apcprd06.prod.outlook.com (2603:1096:101:d2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 11:39:56 +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; Thu, 6 Jul 2023 11:39:56 +0000 From: Yangtao Li To: Tony Lindgren , Lee Jones Cc: Yangtao Li , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/7] mfd: omap-usb-host: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 19:39:37 +0800 Message-Id: <20230706113939.1178-5-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706113939.1178-1-frank.li@vivo.com> References: <20230706113939.1178-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR02CA0013.apcprd02.prod.outlook.com (2603:1096:3:17::25) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB5889:EE_ X-MS-Office365-Filtering-Correlation-Id: 6452dac8-ea58-4309-2b3c-08db7e15b8d5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NjDyeR1NN3PJJ3NHVY5h1T3glGDbQVZKGGAzVGvIQsOSHRPblmkUWzP8CoZTza+qDKMxtLUj11QVSKuXyhx2jBrhoLyqIfQFnDt862IhogLhZJt2CX6ErflB6Z9zYeOK9BYoGrg+UC4SJXxGGPIeHj/m9JU9PKUHNzfixuWH8a6O30lHZ0dSwrp+x5ud254KaCzuI+4uJ0NWR2oj1mqdFmg6DQSkvhD9PWiTYs2C0wzCgtiLyuXh9CbkwbznfanihdgUxQlr0xX7Gwdpr9ITpEoL/FVKZqkuRo8cmfpJCC+e/ZJ5NVKttjNQnetgeuCdR9Jkf7IYpf5D8Qen7FWhGmgcC0y/ycp+Md2yoIZUxo+GgqQHYbnrPJFApr+TTHq4xjMS3mJMp+JzlCvJtFwDTxyxTeDia6gRJlkWOeUKyG1tDvk+4E/2dsdfQyJiOn8+I8U60537Dcan5o3iHXlovOyOC+hwaK3e5SPlF/pn9Zu5shjoRMLuTg7T7sOW85k+ai/vjale5mXonzxAV8V6vt0STzXe0kWSEQrnk276FcxjuofV9jmMWLiKxvRQfKctVP7+yLxFJPQPBCVBd3jTIfNj6r8dS6r1XzNGStRTOoVLzAXXAnE8aXwoFL6iVwJN 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)(346002)(376002)(396003)(366004)(39860400002)(451199021)(36756003)(86362001)(2616005)(4744005)(6512007)(6666004)(52116002)(478600001)(110136005)(2906002)(38100700002)(38350700002)(26005)(186003)(1076003)(6506007)(41300700001)(8676002)(5660300002)(6486002)(66556008)(66476007)(66946007)(8936002)(4326008)(83380400001)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EFjUeBH7GccWJr3UZQ5Ci71f2iDATNY/S6rnM2kQ51PMIvE3GRjdkNoufnL4YHf878EiSze0gh/cHHwVt/jRg9yWyqUDTQUNgSyXDrxMoAX2V7i5mcJekEWrbdfxIXUh0HYo7JD1UclB0EKsp7nwmyy080E+2LYekMJrGsutSdU0sGLAmbL1fhf7LfoQNIyNebHsjiOkR0EE1Qln0r+7CCcsHlHLCDRqmn5/FgBXbsqVB/CF9LznL65GpytSYI2cruXcKlWquNeQ9DPXOa3/S4I6RFqJMTAjMONF93Z/8OkretnHbLoWpQfUmHI3Xwg1W9vZJgCKP9/kxYiBkYV3ikRHRjvIAKgNI4UVzhTe1NovGi9GJW5YzY0oJk68d11kNk1UqRqRotcXY37ICuQvzA5NwkL1xelsZv/zox8EN03/LTm7/C2cKs1rTltVFdAZTjVDWDpwGXsORdzhaJzLOYkIfGq5K1vliizGjhgELfzaHgf5ZiFpzrSmxaFyMn2NjgorCByiAWeqtS0kWnohMNJw+nKSh2193pTMiYU7VpFHxf1IRGuHLsKAnKeQGkSbD1zaUhDBgTEqTwwi9KsHNhc6wmlq28nwU50lTkySOh2I/LPfHnBYtHP0ZFsHFY8eMRqd/aUTXIdC8xUKory25C/3WMYArCBPzts5lIQl+NLNXQe9nu3/h6TuHCaN8FWDCHDbfEQCmRfcw2VlkP0SAQCtYNVoGzACeeOPQwV5oQt2skA32amQmOAuULuWbST1o3LsCkPSbvPqktafTgiczHk3WzK1+ZoSp6JIqVwuhVhl/yCrgYzHqIUa9UoKZ7nWzxPy316cJp54+/Iv7QZQ8hNxoZjWnGAk7TIhpf/qZyq2AiT9Tq5G8LEJ9y1nMHFhIQg4Y9s2lRSDMhiTnAwIROCYBkCNnYMr/8r8tzqZMwf6kcoAeJ1yAN4WBjAvHWOWMgOCn+PHnmfYyWoRE+81eHvpHXDqvU9tShu/j7tkdXEDlZEwPGv91ojvkyOiEXjLRDj4VLAkrmmOJW47iZ/gHcXIWr+81rKMKQZmZnwDDjFmFF5I7pvecbnkra84Ougd9dWwhv2KXBcrQPivRO9ZunOnyQBMdhWzGg0DHq6O8rrjINFjAQTA3aBxwU7TXCnlKvBX2bnlTshI0xZkSECGJLx274TOIpvUpA7C1PK0K8hCrjitnB6dfgbl0SZUnm3M/B3Xcq+wMt+JFpGiwcmzj/1GSqy/45ER3oB5pLXpOOZS5qIIwbmpGb5vQhg/Q+68Fgv+7e3pdJgGZ7eviM9yDprH2S6/MkRNMchfMfJWN6VzUJ4lBJ+sTDFQMlT4fxBByD1+LhghFrwuHEb2u2mQVhRZmluza5Zn7K1XZv7gmTyO7cH4LPxvXvmHN7GYSVFaL9JkZ/Ux6VMhVCUI3hr7Wb8DAcxudgYaE6e1gTRYjPLooyyF21KBW2b4nkQE+lXhaBb0q+W1vpgroQKWfA9Ll3EQN8SX/SQsEnCbaeBUF4B/2JPQItV41mu2bYw8tphs89yF6Jq5WqF81F8FFDmb8UHBimNHLjUSpP/lQNfPm4R89L3Si3b6yWPmIdXJHWlW X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6452dac8-ea58-4309-2b3c-08db7e15b8d5 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 11:39:56.5422 (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: mCXDTjfpXF81v0WyQDWnOb+7S3c7FyvMqQT0xWCYmUDlqc8uG6WyMj7mxhiyOojG6pLjr2yCHwvJmxq8vIHnJw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5889 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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?1770672827770399643?= X-GMAIL-MSGID: =?utf-8?q?1770672827770399643?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/mfd/omap-usb-host.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c index 7f5775109593..78f1bb55dbc0 100644 --- a/drivers/mfd/omap-usb-host.c +++ b/drivers/mfd/omap-usb-host.c @@ -534,7 +534,6 @@ static int usbhs_omap_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct usbhs_omap_platform_data *pdata = dev_get_platdata(dev); struct usbhs_hcd_omap *omap; - struct resource *res; int ret = 0; int i; bool need_logic_fck; @@ -569,8 +568,7 @@ static int usbhs_omap_probe(struct platform_device *pdev) return -ENOMEM; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - omap->uhh_base = devm_ioremap_resource(dev, res); + omap->uhh_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(omap->uhh_base)) return PTR_ERR(omap->uhh_base); From patchwork Thu Jul 6 11:39:38 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: 116651 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2510926vqx; Thu, 6 Jul 2023 05:10:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlH/WGpAcgjmwWaNkMPfM/K5L62SfNxKS6ceGYJoDo8TVAWaF+8gs47S+A4CIpZrkk+ly4ne X-Received: by 2002:a05:6a00:2da5:b0:682:57f0:7c0e with SMTP id fb37-20020a056a002da500b0068257f07c0emr2035264pfb.11.1688645401991; Thu, 06 Jul 2023 05:10:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688645401; cv=pass; d=google.com; s=arc-20160816; b=HF8UewmSd3gyXgk6WPZi2Ng+mkh52uyCKEvBv0NJSARRPVTqBL1kqNzKbYtauX3I0i BBdRaYE/W3ZMg+c5qj1umL6Xvxucc74swRJVwWkhTJ9MqRcYa8F5Mwn5XaCm2Cr4IBdD LuPx4gK0ztF+GyJN/BPjE/AqtAZKv2K2/nQ5i8mqJ1Vb5HQT1FaWSpuJxzQJ41ZIP+nb DBBKQnTVxif6W9enGDQS0PqKqxhOsTUIwjpmPdLQICNteELzLBpD/oK+yVGFgCbYK5g2 ICHL29txeOqVRvKwLos/hBv4RQZYnKQbXzqaSHHc870dw5qTsC6wOB0m7K4+AMRuptwe abuA== 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=lkkgF8YHddSyx8rnTy7lYfUam+fBm30/3EkM/GLn1GE=; fh=btfPkD1XjN+kvCOkIBGi0ZUePnclGv93gAUKocmumjU=; b=HiH8PFUBGKsPq9CUT3Ppn4gc37hGsx6E8uIzaDqH0Q8a5jPeUtlGkPWgo6/SZ4cEAN 6/nZwEYgE6ujIZpxUEJIKHgII/QCkwT8Eg8yOjbzWYm0p3G6e0t5A00qwFijgBSRpk14 eH6reZbuGNhGBlPKfvU5Ps0I9xbofew+wN9vUaXzeQn8a8U0m9G/Klzb5UeKUYiKJwaT jUuExJPrXJOCH2LitD43g3RZ9hQ3cjVDRSYfGQ+zhc8FaPI80IYiwlJWy1TGozTApCs4 zhMYxADve3xsbGDMugVUZHPsGyQQcMy87NZDZChPKxVDwY390KtJ+A0xj7lEOADG3RtE usGw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=iwvJX045; 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 t23-20020a63f357000000b005533d6eb7c9si1343945pgj.284.2023.07.06.05.09.49; Thu, 06 Jul 2023 05:10:01 -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=iwvJX045; 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 S232617AbjGFLkW (ORCPT + 99 others); Thu, 6 Jul 2023 07:40:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231860AbjGFLkL (ORCPT ); Thu, 6 Jul 2023 07:40:11 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20715.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::715]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC92A199F for ; Thu, 6 Jul 2023 04:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JaRZMWzSsDKTVv9EACZ75I94nR2zhwOD+LDOU4A9xG4+Hmj1nlCdl/NE+ed1haBODN1N+onogmVRdrg4oCQDg3ld5YJIasE9qp9Aw1U6UMTOUmlabdZhL071PPFPu4ahM1AwEAmCTR9OOgKmX7EB7SYl4iIvEtWmom+zQMQKpJmErpLFM4reweosN3nx1b0ZE5APCKbKM/Gv5c0BSUTwB0ak2NbtyOdBmXAypJKZ0B5UnNb0MJ1bwhMYbn/a5QXb19ndzOnZmFleI8P2/pkzOL6hDIWAsL/FnrLbv77t8OoD4zsFKuoKFTAxRIINRC749uG8qJmsATzSEajGAh7GQw== 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=lkkgF8YHddSyx8rnTy7lYfUam+fBm30/3EkM/GLn1GE=; b=PZokQ6oFmbg89zOVVolPORUA8Pyblpg0ip+5P6El9O1FX3emeGGE8/xAIfo0XXKcyR6HtmGTuyixQGUPN1AkKwRwAQUanvtXJIKXY0CGrnwCkFh5yKpiE6mcDC2KLNCzy5y8QgExTUAQnBLpBWrlb4lgvOjXkcuEoiqFsxAUOoSY/CXpvqH3R4uBVkzfDqI2VjNr7IU/+j2ByAdVxddsPNAQjqdxb1ZTxBcpgknk9AXOt7ryF9xILic+q2Pvhoc7Pfb0RdL2wrY+JJJdYYP4KJkuMkZ3xLImoHiz+lRXBgXqJsoVB4878UOaM2y0E3B2mczQZKdbYzbj5NIUu8FgeA== 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=lkkgF8YHddSyx8rnTy7lYfUam+fBm30/3EkM/GLn1GE=; b=iwvJX0453caonVeRj+y7P4toQ6Ya6ZUyVuTk3HVkte5wzLZ3j5mYCtIAmPJpR/4VDXw+9BzyrJHcOdZ51+wlGGsWT5tfKGgbgP4rQtM87u+LHRyARATs600ofkY75pVkrQfNVTP7oXRn9femVLiyfKqTRRpIE+K7SMYGAlRmFw6XJ60K05hyMRMWRK+e251ovQbx/YnfAXMrAY3iMaacTF1qHmtsS5uqMSlQfhNQ7OnT5dxhPHkZQonKobNuAVv+OwERJ/M6WQMgq36MB6EdyoDmgzvoxSNKeQ7RGdFpoIitBxeJ/i8JU2MR8/WQBxurrv+yk6ZhvN//QFRXDhLehA== 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 SEYPR06MB5889.apcprd06.prod.outlook.com (2603:1096:101:d2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 11:39:58 +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; Thu, 6 Jul 2023 11:39:58 +0000 From: Yangtao Li To: Fabrice Gasnier , Lee Jones , Maxime Coquelin , Alexandre Torgue Cc: Yangtao Li , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/7] mfd: stm32-timers: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 19:39:38 +0800 Message-Id: <20230706113939.1178-6-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706113939.1178-1-frank.li@vivo.com> References: <20230706113939.1178-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR02CA0013.apcprd02.prod.outlook.com (2603:1096:3:17::25) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB5889:EE_ X-MS-Office365-Filtering-Correlation-Id: eba0402b-fc3e-4add-fc79-08db7e15b9f7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IxQ0D3szxE3i/MbgvtIZlAxQj4YVaZaosJwPivy5h2vLo0bAMeZcRJJozNEjAF4O+nJzdnWp4sc/G0O2oINjvXle5oFBYVkfOn+xcgMi5gw0s7CgDvGymmVrSwUPBHnmcME8WMVoag32vAxJY/rlTpmG1PvEpCauq42PnMMPoBJjScoW7PHzPn1l6yXDajZ2FQsN6LJH6B4K/tJmznDvBTP8inng4eEKffTecouVOAmpgyXlpZf5QwK1IE843U6cqFN8CAlI4UECBXyTLwUqwwPpMTpiycbN2clprsoNzeXVev/b84DeR0medFgmUffgROSmBDGitZFiNwhO2CmoHis3sNkoGCXjzboXViIdEBmU1wanLoszIicT+PZc4f6e8YXLpW3O1PYBKxS47LEzcoOfu3Jr5xS5lNHBfWn3zlvB0ENeIBkrqIdna4JGnSixxzCTkE2k5u8RwlK/CGgmdJRvmUIpxxOOuWG/W5B1VmqLu0oXlTL02QPKgX5c6pLuefZxI0PzPQf2wlRFMl+45r1aBUSlBhbknv9oh8duz4jcOdppPFoEavSMyEx2kquPYDeDxL5JQAJ5uYlg9vi7k5HhNFknQVtRnaBi0nht41IqgXfBXfwWkXTVxz7AppWR 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)(346002)(376002)(396003)(366004)(39860400002)(451199021)(36756003)(86362001)(2616005)(4744005)(6512007)(6666004)(52116002)(478600001)(110136005)(2906002)(38100700002)(38350700002)(26005)(186003)(1076003)(6506007)(41300700001)(8676002)(5660300002)(6486002)(66556008)(66476007)(66946007)(8936002)(4326008)(83380400001)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bymyHT71pbQFZgcGdORY/9a+utrNzRinLmP2BQDnqgI08E+3EcNwxcTBK4AI+Nc+P6qxjo4TgIqLtO20vy9rrBPEDWVhDVuBISiTThY7t1NPsP2JfmH2K+LGEiUQkYrAP2lng4eJVXImti9MSAGErl8ZMFwtWEJNwAKHtYVe6zc3iA0plBrN50jT9Y/rNr2Q/okiLRf2M/qiVlYe6sBKIuc5UTOkqWgFanR8k5ooG8lWaRP5/pKL/xmsTKpSurcouaQVeQ2ZigI8VcWLyD0sSYcjWN3tbM/82QEXSKeccR5cNe3lhu2Gx9j0lLsqbpngoruGrMvLg2jS1Qak0zqvW5j0LtPOTOY4X43dJNEnR/Pkh+O1vGPnAR7btHX7x78C3LR9SZnBkPRv4bENfEB9LOaxA5hkdez6TwmXuuQ3hnItXvOMU4YcZgscS4CVafMq+xzphCT3edWiAhMP4/w9bNS1aUIvQ0nsCVLtTx3GPHKn15YBS3IUDN1gqLxJi6d6Lt8OE2c7kFLcauEulfflYSgghNNX2ZNAZzZC8b9R9AYhX6CnBXHWXNqEySXd1jXunVQFhx2m3t4PQ+FEcRiXld0/Mi224oQRAt/qHotDQ++UEHijh+5yoVv+88OpqGcPC8bOz0aOIGQ0F+b+LHub2F1Qos7BNVF0L46B4mQbSbeXArqSPWY4lrKSoBFaPPklgmtbHRTCTvt+eUjdkJnnalllUKdeMBhvU7s/MTNk5ecaVZ8NzuYOKLPnW4wxky9oufGPkmwgIF9ta8jE6yfANHUmx/WsQMEGPPOuiGGcoTb+jG6FmxfKjD+tGZxj/EVY6ByWOHrXcgtXeFZgnp8hIamRH4VL3d7TAf26fENsz9ByGQAInvt5SO4KXuSzw75v33H7CWaHLEv64pv0Y2Nni/KpZ8fuPADxDm/isHfBd8z72//487y0UhZPXfLc9TRP9zkb0gFCVY/5MLNAeYSWg6/p0d9dnVDL4ybauC9eIk8ejLnbx3krT3D8VAHQ2PX/i2IHjoZzgNvD3ukZec1OC/6BSoDZ3mTIYmfsz9U3hNBcD743SnwMjbRc0FLRCq42zzCNxxZjUt8XrWjSRybvZ8EtWK0r6ik8yW5xU4Gz+m9toa+vsNR/9rlOV0MNnTpme5bcN8qiOrDpO3HkgoN+xJvTcQQpmYMT3RWgvxaEj9OHYtp42WG5pJM0FUpPd/I+kFMPnmbgFwcwuj0pOL+1ctJBLYipN2P25V5Cn5r3cYIlFB5njW7Ky8bQ3wLP6/wRLuVA7SJGJT4uo1BL/WvzAqVKGsHE87nTjXm4rIumaNsumViKO4NGw5NSdhgaGkWbhu4YD+KWY1sLdN5SLCvivfjNF6nvufjgSSDVYvZp2FaAat4/DbwTdEl9LFm4CBPhmnnxaWogad306CU1odablHbFevYMAs+xunzM6NeecKviHcPEnY1bizqOqrnEl83O5S8Bw2zyJnuQO6zndH2GVV5QcWk5Fr5XirsLNGkrVqfI4SrHT0p5cROYxuwrUOnlLJx+nA8cJX4cq4j001bPgl+Ajlhrp4xAXNE7KRXLf/51i76Xc7ofJta6xmD4LkNL X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: eba0402b-fc3e-4add-fc79-08db7e15b9f7 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 11:39:58.4577 (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: 2NrwZNsm/AFscaOIqjm0kL8TBX1GNU2ryUqGlqH0hdyl4TLG2bg90uqGhiySdJ1eQBQqRwpiJe2h50pi1nBDyg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5889 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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?1770673040902305835?= X-GMAIL-MSGID: =?utf-8?q?1770673040902305835?= Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li --- drivers/mfd/stm32-timers.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/stm32-timers.c b/drivers/mfd/stm32-timers.c index 44ed2fce0319..dc0cd0808736 100644 --- a/drivers/mfd/stm32-timers.c +++ b/drivers/mfd/stm32-timers.c @@ -226,8 +226,7 @@ static int stm32_timers_probe(struct platform_device *pdev) if (!ddata) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - mmio = devm_ioremap_resource(dev, res); + mmio = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(mmio)) return PTR_ERR(mmio); From patchwork Thu Jul 6 11:39:39 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: 116646 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2507254vqx; Thu, 6 Jul 2023 05:04:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlFmynq4F1+EHpvBnJog7eueDS48ZT3CPeH4yF3lwYIPTaIO73DADzVRtdu04Mp/NLJQI8II X-Received: by 2002:a05:6358:5285:b0:12b:da97:aba6 with SMTP id g5-20020a056358528500b0012bda97aba6mr1582173rwa.24.1688645070501; Thu, 06 Jul 2023 05:04:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688645070; cv=pass; d=google.com; s=arc-20160816; b=rYzj2sR30fyqEfaXSzwPYra+K6p+fKnDVgJjtCxz3eEWErRNAyN1Tb01UuKoATGo+s plVWwLJhYZD0sXNLFQqJKi03PpGyxqaOjXWRT3ALelWwQUPjLx12KpGiTZfQ8vqE3yf8 Y2M7pnATWmL7owRxYzlenmQ0LXexF4e+6ohT1F665cIERdhE+6QIrgER5+RDQjY/rYqf aMbesQu0NOPlqcCZNiRJg6qwJQAdK1tjU6EN0xtUiXBtZ229Oznl3tGtbKBOvjH5PHPA Rl1Apb7TVXh/i4tp/wOC4v214k6w9A/ifF4okpTPzj4DaHuYUzOSZ64cPccvbmx7o0G5 qF0Q== 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=/2MHiBYA9ICZTtqbjm+Dtl3zcLbRsS/YtVgq3NRwfac=; fh=aSD6UxuDyA/Hq55xDxAH1r0SYhPB+aZLcPQnbuvkfgE=; b=dCabCWHFxDqm5ypzD6KQ0I3LVbwbaZrMy9tU6ytFdwfyFWhjxTDyZvEf6pmZCXqghZ NdMhyNooS2h+ULqZ5c/Gidx3lsCpAOJkJvmLsmdUz8kjzQehtpZhNHkiNpwaww0d2XVk Zfd9oyubS8HZFvXNAFBMpZt2H1KnBGQo64fN20MRAqOkIrYwA9crA+8DP7l1E2uanLh/ QRj+m2ueF1r+kmhV8bEoSatR4BtAybFhLY3SuyoJf2VI/G7DVZSROy/TU7Mt2n38w7nu A2v/gTZwdaZmaUmrRlypkZf6BUXDT2wZnODF/A5lRdXNWlNmKM+QzGlTVNw4w9lg0Wr3 X6iw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=ZY9sJjUW; 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 s133-20020a632c8b000000b0054f71faf5aasi1343183pgs.581.2023.07.06.05.04.16; Thu, 06 Jul 2023 05:04:30 -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=ZY9sJjUW; 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 S232324AbjGFLk1 (ORCPT + 99 others); Thu, 6 Jul 2023 07:40:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232548AbjGFLkM (ORCPT ); Thu, 6 Jul 2023 07:40:12 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20715.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::715]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74FDF1BE1 for ; Thu, 6 Jul 2023 04:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oN99nlQfPICQlQsw8n4f9+9AlimfzlgGshBbSlK5agn5x8S1xolmf4hwTFh2+Ivdh52HR313JbeQPtG/d2QMk64CBAbtOCfTbzGKlQtC8PFV6d3bbrJ5zOJ488ELFn48zJHZD2bBt7Zf7Rdcd9krq+QHbI9GStlAEKT/7ogzix91E8n97cPuHAw+YhxtGwXEdhrVExs7vMPpqz+rKOf3/r9qbjEJq94JXmUXrAIxncEeXRFnicFCwtr7Tv5AkUE9C8fn+Q9TzQFZUjig5LIi89rX6uf4rR8GcXH35KrA/1ZmCIjrSELD9xNnCwtn05LHpyqZYWs5U4CK1r4PZVltyw== 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=/2MHiBYA9ICZTtqbjm+Dtl3zcLbRsS/YtVgq3NRwfac=; b=ZfjabWJb6YIxhMvHJimM2dQjs7LBpa6919oo6YTK8FWzBC1zLBk7xf8YFc98PZgRePT20azUoJopAANJfZK2ntKm8VH7nzvNs91xyJuz9MQIrsGNZ3ZKPJ8JyeTzaYzvzo0fY2EuZ5P0gKFt4BJlCR2FyxmDRUOBqzQIZp+rqscauTIbJdH5ZfxPER2rydq+GmQbz3gH8sMBl8VXGX+9nKo5Sg95od0SOMp/jO1NqDvV3eo5gEsrn/XupZGYrE9kpUKSHT7Y/S1BfgjE/A5ggNf6cPXrcDfC1jCQr4tiVCyOO3CXzjZCu5pP/fHotGPmeC6a722B7gPYX6/SFwv+xA== 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=/2MHiBYA9ICZTtqbjm+Dtl3zcLbRsS/YtVgq3NRwfac=; b=ZY9sJjUWOhqpBy4waZB9ZDokpnq/7OSyN05IVUIeGHI6dshAJBKxvJhQgk1TUBR0cal3MeVB/2qiDNTDX6wIePrnoKuBT0Car4TBhKe0xPp1wYA0TOeNK7fIuiyCpmikLTIoPOWjj4s6MX50GcHZL64beRg9nqp2t4eOGWBjTq3r+X1tHRZrubl35nNLAR08pxpge3ttweQMeXk2LiyNgfHC2l26eP42gE7HEAD4phvq0pdEKPLPKkjScP+smLKoW0mSzDZQkq5FqfW2CjD4SAwT8ptkDm6rj+s3EN6DLvn4oYl53pR6f8kWDKkoyxRadW9Aqi1scn9JpmitwsMbAA== 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 SEYPR06MB5889.apcprd06.prod.outlook.com (2603:1096:101:d2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 11:40: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; Thu, 6 Jul 2023 11:40:00 +0000 From: Yangtao Li To: Lee Jones Cc: Yangtao Li , linux-kernel@vger.kernel.org Subject: [PATCH 7/7] mfd: hi655x-pmic: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 19:39:39 +0800 Message-Id: <20230706113939.1178-7-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706113939.1178-1-frank.li@vivo.com> References: <20230706113939.1178-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR02CA0013.apcprd02.prod.outlook.com (2603:1096:3:17::25) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB5889:EE_ X-MS-Office365-Filtering-Correlation-Id: d4b58276-9d17-4391-5c5f-08db7e15bae6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YhCWt7zqqVf3Tlv5j1tABLBwqPo3wyNV+Che+vSi5KBw1WI4mPyiSgexvQNS8WWYgdXtOdT1yYvmc6PfrVwUf4fhjqmY36jEIRsxaXjVIq1DEfOnGdU9QfF0Wy7fDv3jT0A045v1h1dvX0paE2UZZ3OKD1DEeNMntiHMf7khz9yPH1J5SlTY7FjBc/D1tBwd0bYnnfBCaU3laatzvQh59cNpW+z7e8MgegiFlV+0Bdlgt8emnO5nKta95Iv8s+Oco6MpleLyzIl5JNs2LPdyZLbJJGPwm4GaTHnLSafxJ82GHHlH0aWkIxaM9dt4c3j2t0VL0OktqvTCo9rnQGiDpaHVP/vA2lczcLAdXm8D1k9h2XOpSlxb9Oh4AV+OlmtzHkv8V9hpQPnUIaVySFWnOlqEtph2RZozWZuSNy2i3nlADR4lLqwaEa5lzjnM8z7hLhK1dbzLzCSjIdD6qmLCgSOvwJgRliQ9tOjoxJKXi7oWUsVS4v57ucTIwc/EaWF4N7hxCkyJC9Ir2+X8nRoUeWzTZ+5keNxy7zobRhMBKngQBeWwpv7JKiN4run6lQWBRzw7O6/+t2V8+OSt4Hie7b7s3AcxSsdu7+W4xubRWU9yVS2CBzfU21Iqj3T7m+pq 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)(346002)(376002)(396003)(366004)(39860400002)(451199021)(36756003)(86362001)(2616005)(6512007)(6666004)(52116002)(478600001)(2906002)(38100700002)(38350700002)(26005)(186003)(1076003)(6506007)(41300700001)(8676002)(5660300002)(6486002)(66556008)(66476007)(66946007)(6916009)(8936002)(4326008)(83380400001)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +ckSnnVmPButL7MRrPSZDNQq1B723+mBNZj1IsA0OIvmM0NPHLLMQ8lP7sPlOO4PihzF7SJsJVxh29DA6s2HorvEFrdwzDyZbxqmi5o7Ut5T/6d1lk8HjNCu70JcB/IWvXXdkwq3VJ1pVp403Px/8uVBpX5LQeuzXgc5VygeuDeLF2YvaxjIwnsHkKPrs68ulXAitIZQfn7ljFT3pel2B8/UkdmAS/3R40VE2hYuiebWpXp9ebj8/OJ3kjYyJoi1gg3TIKBiy62vpBH36tTDGtViGlBHCfIi4jKWNiHnNGXwzjrjg0RE4V+0YTld3l19Yi+U1smPZIANqmI19SkgbhSFt2ak2GYzGqeoacrtPfv+EEDd5jR1+I074r/Y9T4CmMT1AWBhQLNg5f560aH3ZnbuObA0oE3yC90Y8b5ovGUivkuXlJaO6D68Xd7m6YILeLdnA9jQrxDwiWWpnrvB50u2WKmjTVZFGEgqIYXjiwucU4CMyd0ZqLB1CrjJbtqr9l/slOIgQVsBMoL7jjefE6suKIdlw8u610xNsWHKR1jv+OYyx/iYvaD0BOs3s+WiIfbAv6tkdy0ayViSC+exIxIRdBGbjEZbbeIMnl5jXtGdASQ6pz/Yi3VkvupGq1nK6FqDB7VRkTUxDUgDTzB3gYYHjgiLtU17LNQIIqagVGE/40qLUAQjznwjNc+zm/zIsiiTTJb/JqTTy+pSNaYR8cfVNMSsOO7hI6JzIKOFd6lMKzAIudIao/C7/cJMmzJqb5QmJ4JCdAA1/Fty9RcwUONkCwtsWsb2vlq1JqsRVb7Te8E5zJvkBHqKXrGJF7nzNfeGPEHLndk3eCHpX0WFkn7Zkhx7YpbGyRfRskCHR/CTZjiSmPV1DqQxmd6Gy+ZkzBn/lLkIwx4tC+n5DD2yVITyX+REBUlO8Q1hHt3kDasIuwT5m+HMjKTf6u/I4iy17vGXghDnODt5DlK7I5K/npKOaQWN8fw5QOFKfgymdaTrFIJVKxgc6f6yNZQJTvl/x2YsXPYn385qjqQC0n6JijLwINSlblIbGAIvjtz22CK69E3WQrOTB5BzVqLXxgNXrUyhBOrAqKugdZB9RrAfYtH/9pWFlC8055h56RjZ+7OfvvmYYuUUZgPsu4+oadQBIX81KJuDNOUDE1e/tBsCp8HNPxHfZWvFEafQsZGpmGi7lNnorGSVjM3dg6GmQTd+o9GsljznC5oJvAWYjqlRNWxuTJvnxZghEKDQX8cXaJRQxmEbBYrlVqSrXj4qevDKMga7KoUDRQhXqJwSe8qL4iSijBnZNWNXhOo+yiMbDxqzNPC19S2dyH0OwSAt9IP3GJA0AqbaZr6e6nAHI9/nvMe604tJjfE8MSCwvSJxUZgEDvrHFEbF0qaWKRsMrlhuXNxqwCMyMPSVDehuFTwOkXdVOacxoqDrYEaUOsOZMjABJyYJ0wD4uOX2WuX4tWhMXHSAJL/lMUQ/HNJpRvKXneU3pH2jSFsprd0nMy/MOB7cVfumApkuncwdgIGrD6AQ8BWIJDRH5uYi882P0Gs4MfFgHKvlMShZTmTe7zW7tAysiX7ubE6w2djaHJs6kGck X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: d4b58276-9d17-4391-5c5f-08db7e15bae6 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 11:40:00.0119 (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: 2SjbS3Ntge+zN8pqEEfJWtYkMiuf2jcDwH4K4yyu/4bSkoPOtDKZIjioNr5SfNcyMwxESj+pBT6TL/2cW8r7JA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5889 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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?1770672693664098697?= X-GMAIL-MSGID: =?utf-8?q?1770672693664098697?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/mfd/hi655x-pmic.c | 3 +-- include/linux/mfd/hi655x-pmic.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mfd/hi655x-pmic.c b/drivers/mfd/hi655x-pmic.c index a58e42ddcd0c..98ae40ee3f05 100644 --- a/drivers/mfd/hi655x-pmic.c +++ b/drivers/mfd/hi655x-pmic.c @@ -100,8 +100,7 @@ static int hi655x_pmic_probe(struct platform_device *pdev) return -ENOMEM; pmic->dev = dev; - pmic->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, pmic->res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); diff --git a/include/linux/mfd/hi655x-pmic.h b/include/linux/mfd/hi655x-pmic.h index 6a012784dd1b..194556851ccf 100644 --- a/include/linux/mfd/hi655x-pmic.h +++ b/include/linux/mfd/hi655x-pmic.h @@ -52,7 +52,6 @@ #define OTMP_D1R_INT_MASK BIT(OTMP_D1R_INT) struct hi655x_pmic { - struct resource *res; struct device *dev; struct regmap *regmap; struct gpio_desc *gpio;