Message ID | 20230706124239.23366-8-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2547150vqx; Thu, 6 Jul 2023 06:08:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlF40XkmG9w6uZKtupqDNgf9MZxZaJ4+Oh3/uLjGset/0liOpK7v2UPW56sIs7fY/i/PP2WB X-Received: by 2002:a05:6830:609:b0:6b8:92ea:23c9 with SMTP id w9-20020a056830060900b006b892ea23c9mr1567988oti.8.1688648902030; Thu, 06 Jul 2023 06:08:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688648901; cv=pass; d=google.com; s=arc-20160816; b=YgoT7ee/FDPi11xd8Is0wm4D96k6DZLmAa4Y22xFXLfwy9fG3GreXOsvhh6wNdSBSa iLRzHheZ64ybHkkkfaMXspcI2X0FLGZ6gOwkcGFtXPz3PwxsuFN1fwpmyrUmXwutXLlO Y+XJCMi8bT5l8m5d45idypvhyfhcNSFNixyIShaZUIjCxKG8w9DK0AsfI/EAlhk26jwt Bgpj4QjeXgzlD0z5+KPvstHyBua/atbmpTjTs+90ooA0+X8rDqnF2pPWAfAOy6LkJ6p6 a2/mE2KMk8vgh68UAl6qq7SDbCgOT8tUOddfHerHJsSdA+IUfUio3/vNY3OgQFUCv/ro OGnw== 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=YHSsH8SuT0tJu91niLrJMTc5mRQtnVDgNMHgs3qgiZA=; fh=HNmwHMKXdrH5ADa7EQ3284gWFm4MNyterjugm4Fs3ds=; b=O1VWFTQV+KaU3MUftKGoGnRJckBLPgbY85ptD5LAmuYhT/D9iItkFlw9Wa19z/TE9s Krb7MwNOiT19FDEeESS2btfvVTf7ALqFjoRNwRW04K2T0dnDFEePKRgh2KhcpW5VOTz+ v/GrHAGgvmcQ/58YEcx/BfY1UuxKeWGcQ8u13wBhz5FY8mzMf5rMNEw82rMYTqW3gGCC yIM8ClpR3uBOG/gDe/iLZLXBEiZSfJBnctOAVTyFDaLUG9sVG8/6oJei4vMAN8xwREJw rfow5Uy1AamapL+Rbq8WNlEHavbhSha5F6FuuxdtXnRMTquFoXylt6hE94bINKXu4net JfIw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=LMiV41VI; 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 az9-20020a056a02004900b0055c073306casi111456pgb.751.2023.07.06.06.08.08; Thu, 06 Jul 2023 06:08:21 -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=LMiV41VI; 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 S232144AbjGFMnh (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 08:43:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232022AbjGFMnL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 08:43:11 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2072b.outbound.protection.outlook.com [IPv6:2a01:111:f400:feab::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA9001BD2; Thu, 6 Jul 2023 05:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d6/Kr1wDgrkct+pMDhN4EOKzI27/1Jvl+rpCxViUDjbLXvokucV0d7X6arG8bmEW7rLu58ib31v+pmefCMI21hVluiS//qIxJA8fby8FOmARxrp2t+ZT9B/Nx4OiEr6nbZ+d+Ez5FpZdXkLGQcfyxpzhq990zOkZZruiSHwRz8BjxjRf6JNykvBt8bSq3/+hlWn+toqmX/dABkX7UKDy8a4sCucaremIPFzfCfbLeSG1h1eMw5eESJDFD6FsQhl3mGhRNBXK/nBg9PGGjC9PSk21oHlylSgKhTfntirWBl54iinUi4u+ggdx9Mq5I70CZEo5SyC0cN14t0zflkUbzg== 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=YHSsH8SuT0tJu91niLrJMTc5mRQtnVDgNMHgs3qgiZA=; b=ec9DuaylIC/IthzK8EZo3x4gj8D4DsodIta4E2AAa0Di/LNfQlkDITZGNb85/3GvqTgKdpPWaYDPCyY3auw6oHfWj4oIj/xteoDE00cja2cXVhWkdaUM4wU9tkD8UuSUsycETybKzaIVCs4BUl0PpOjs8RkmubniPJRhr3cxRQzng8YtHt6cRVxkfTwb8Ylh6tmU8HRmYC7b2IL0dnsOvtfKxN9knd/K5/6cO9aNiC3dlWhD7OBTEUpMd272WQw4mWA+jAWZyviVelHpuMi3YEvd797OWjlWQ/JOp1pIOIodWCXV1NEuo6ZHh6QI8xiMic6GqvF/JFTtU9JQAmhdIw== 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=YHSsH8SuT0tJu91niLrJMTc5mRQtnVDgNMHgs3qgiZA=; b=LMiV41VIJXMim360RTxfhGZJCcnuDys2RJcWsKAqyr2CZjqALShm4wK4ot2TPuodQcEfgOzL+y/VPuRUl5HosP1XJR8BvNhf+Cb+3TvyAWPWtD1DoDDKn0ujmHrWqvSyPagt2VVOoIjASQ3iO1gWRQKtRxQ80D2MNUpNuXBGZ4hHY2fjc5aGW0yo0OmgmTAiIs4xQ1r2goOjEsDMR0Dc6XDNPKd81sZ2hijU84lRTMdyaEO+NxqngO2AR6p9TorpiVBvT67zWn8PbDecxmPCPMppnDfUR02qJk5g+POR9HRX3gP/ac9zuRRhxtI0tH67+JrkQU/ChykRVIM0sRYZbg== 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 PUZPR06MB5602.apcprd06.prod.outlook.com (2603:1096:301:e8::6) 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 12:43:03 +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 12:43:03 +0000 From: Yangtao Li <frank.li@vivo.com> To: Sergey Shtylyov <s.shtylyov@omp.ru>, Damien Le Moal <dlemoal@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com> Cc: Yangtao Li <frank.li@vivo.com>, linux-ide@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/8] pata: imx: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 20:42:38 +0800 Message-Id: <20230706124239.23366-8-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706124239.23366-1-frank.li@vivo.com> References: <20230706124239.23366-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0046.apcprd02.prod.outlook.com (2603:1096:4:1f5::14) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|PUZPR06MB5602:EE_ X-MS-Office365-Filtering-Correlation-Id: 5d304469-1937-4ab7-01cc-08db7e1e8a1a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MbI3y0uMC+huKDSdlw3Yf/z2Y0oXlcW5iPb2mG4AqcP0H0+Dc+3giCHUjpqfL4pddzRvVcBYhw4djhUz0WX04WVaFWnZiKmKQS15sHAXxv0NuXUGdFqLIdAqZFy2LEFyRT84DAw3DFgRtLO9eSgIGv8jWJjmbPG8q73w/jxgGzkfQlZkJ766n44aqU7umlbNTDzm8jd5LxdKYZjOq9CW1VvszDmcTnBlv6Ceco8ppiMO8UWuJpz8J49csoCsrpAl8CkYsTSTebL8RZg2lIfGy6hsJ30E7wgHiZe7Mv13PTa7mAxwukcws0Du7DL+CHnG3CVI7XDg/e+vB70QNxol91oyGwS5oPYN2lCVMj/34J2XoqId3yjPuzfMsB7wq34qD5/x8+2Lglaow/0+gNMMX179cfA11XfVF4DaRG7Fm0gyWZhdAwwL5kZRcw4OY6k9FJMjh5zzBRMHLl2McErBM1aRc3V99wZos/GE02zM9lGaT3bIe3KVA2iIZ7maQdklUn4W0PeVCm1HIUhaCD3IPGOgPETM7k+2rbfmE1k9/aMG7nfhWb3hS++QzHXFtZE0EPBOUB627y2uf344Pld08ldd7VU/vuyfF9EvCbMUW0f11QpYblUUu6GMMuHvXw8p 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)(346002)(376002)(136003)(39860400002)(366004)(396003)(451199021)(4744005)(5660300002)(41300700001)(8936002)(8676002)(2906002)(316002)(83380400001)(7416002)(2616005)(66476007)(38100700002)(66556008)(66946007)(4326008)(38350700002)(6506007)(86362001)(186003)(1076003)(478600001)(26005)(110136005)(52116002)(6486002)(6512007)(6666004)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AOCrDvjk4G6cmSNaak/SfhvOIUMA9OhZXgkhWFSnstCzujLfce28JHu6NUXgROvmeJ53UZRazk+Ih7ZT8HIQESWDeVLrk9tT2QdJgk7x3A8KDu82cOepNOHHIZSXKFjf74ZxxiO5c6iGWMlGM/0EiaiYfAvoTesxGveIbkjl3c/LfdLIvLicBvQmUgEFw1Ymve5WeWrT/K4a/hn0wJIuwGT6lYUmf/j0viiOcZVrYi/QCoTS4NVayA6LDUSwJO9eRFDg/yb/4M0V+5eM3zXuT8MPZZMijp2TKgav+2zZQ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vsPiu+omn+OSOmt9K7MZRRsL0q3Znjj+P/zr/zRHJglH9U/Jo+AGQ9VjrYdesYDWVnb+0RNfudtyubWXMVrwTTdceXfG6axm95/g5OngDJN4XX3XeHvF7Xo+udNc62rbm/N3G3pePILWPjg8O349sudj0bjaqkIwEo9DOqyscmq79Kxn167mp6izytcrfjPVcksSrOGoE/OAhVgfW5bgB X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5d304469-1937-4ab7-01cc-08db7e1e8a1a X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 12:43:03.6172 (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: pH/aLEKj2WugelEr1iGJddH5W9dg2dJ2/4idd6BnEj6Pp5STyrjcw0hza8AR6xeVomsld7zTWzonwQh+vVaC2w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR06MB5602 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770676710710886004?= X-GMAIL-MSGID: =?utf-8?q?1770676710710886004?= |
Series |
[1/8] ata: ahci_octeon: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 6, 2023, 12:42 p.m. UTC
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 <frank.li@vivo.com>
---
drivers/ata/pata_imx.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On 7/6/23 3:42 PM, Yangtao Li wrote: > 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 <frank.li@vivo.com> Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru> [...] MBR, Sergey
On 7/6/23 21:42, Yangtao Li wrote: > 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. Patch title: ata: pata_imx: ... > > Signed-off-by: Yangtao Li <frank.li@vivo.com> > --- > drivers/ata/pata_imx.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/ata/pata_imx.c b/drivers/ata/pata_imx.c > index 4013f28679a9..65d09ec94c12 100644 > --- a/drivers/ata/pata_imx.c > +++ b/drivers/ata/pata_imx.c > @@ -164,8 +164,7 @@ static int pata_imx_probe(struct platform_device *pdev) > ap->pio_mask = ATA_PIO4; > ap->flags |= ATA_FLAG_SLAVE_POSS; > > - io_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - priv->host_regs = devm_ioremap_resource(&pdev->dev, io_res); > + priv->host_regs = devm_platform_get_and_ioremap_resource(pdev, 0, &io_res); > if (IS_ERR(priv->host_regs)) { > ret = PTR_ERR(priv->host_regs); > goto err;
diff --git a/drivers/ata/pata_imx.c b/drivers/ata/pata_imx.c index 4013f28679a9..65d09ec94c12 100644 --- a/drivers/ata/pata_imx.c +++ b/drivers/ata/pata_imx.c @@ -164,8 +164,7 @@ static int pata_imx_probe(struct platform_device *pdev) ap->pio_mask = ATA_PIO4; ap->flags |= ATA_FLAG_SLAVE_POSS; - io_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->host_regs = devm_ioremap_resource(&pdev->dev, io_res); + priv->host_regs = devm_platform_get_and_ioremap_resource(pdev, 0, &io_res); if (IS_ERR(priv->host_regs)) { ret = PTR_ERR(priv->host_regs); goto err;