Message ID | 20230710024550.59544-4-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4735780vqx; Sun, 9 Jul 2023 19:48:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlG5ucPu+itdwP6mAPtzM/olNBJupAabT9FSBAfzPriBFIP+a4tT1VctDdululpa0bmK8vjA X-Received: by 2002:a17:907:6da2:b0:989:21e4:6c6d with SMTP id sb34-20020a1709076da200b0098921e46c6dmr17051207ejc.28.1688957294306; Sun, 09 Jul 2023 19:48:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688957294; cv=pass; d=google.com; s=arc-20160816; b=cdnw1M9gJWPH6ikVR30D45EqmIHCFfmual6bUtB2OeHkZex630FlnzxG2noO7UtGQt j5P3suLduMDedZW2dKSz5sWSFDQuadafQAOBNs0xw0HlKU10G/IDxi438v842231TweX cyLZCjJl6hNC/vxX+/d6kwanYN7Oya/oiqFAkOeK/vnG65TI2a0nM3yA76CWQtZ9I/Zw 3E3H7iKhCNYlEfqjw6ug8oK78AHes6ecLYCsbv/25/Bi+kvJRV8xakdtBbs+J/rRXR6p YCLiNO4ZZOrQp1HqJdQfOIZuWEtGgTELBQvuR+rQEvmGAZS3D1k7Pf84P66i/qbD9j3k 9Dcg== 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=Z9xFBA9s/AaoFvOWhJGrw75YQRui/TIjlzelOzhrGWs=; fh=C8rZiSqJ3kz5Bhb0UFcAVCLKIK/l8PMj7g0mmbGM4A8=; b=DsnDW6J6DX3Xe4pTvylO0GW72Mfk51lhz2Z1Y/kDqZbbDwlvJBFl91wWg8V4Ac8GEs GDOEeD2dpPVcb8y1zIM3mrw2qrh5VmTIAA9IUXEBl227HIH1K389m11+Ybhckjlm3LgU 7uwIQmF+qVYG0Gc6fZ8PGVOYm5C1zSMCsCVXnS8opB8gCdpxMtw8t2PTyg1eei2kbh0O fCc2EwlyMW47OdmENNo5BqKnwX9/mT3jApeA2cVKRjHLhNxlV7Vhh03FPp3HlLfrRM+U 3DaBooFVYE5iGuq0ZfwyeBi0G5mv3PeUGey5ieC2ODdaZBSRCTT4joR2b7Kc/n+pa5me 0dAw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="obn9cH/1"; 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 x18-20020a170906711200b0099327746bd7si7893887ejj.520.2023.07.09.19.47.51; Sun, 09 Jul 2023 19:48:14 -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="obn9cH/1"; 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 S230352AbjGJCqY (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Sun, 9 Jul 2023 22:46:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229837AbjGJCqP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 9 Jul 2023 22:46:15 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2107.outbound.protection.outlook.com [40.107.117.107]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D0EDE7; Sun, 9 Jul 2023 19:46:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KY2f0bnL9jl9wKvDqEQKoO52ytq+SjPMvqOpXBevMQFHcmGt8kh6txRLlOzeuFTA5sDacefCamGfZ4FkvbTsQU/ajkav3brLE0fw5MB7tzHASuKWxLNEh9G4qzKTRiJsMEMgTJYLD4zfjT4Rclz9HEFjPqTaEg2O6X2VSvFSF/2S3gZISgsy3/Wx1EHyxzpr0c2HS1mv5S7r9aaZJrk4TbXqJZStDtRs4k52Al97OmjATga9W+Yi7dEcLUHbx1cpWCANQk6NTCqo15wWPjLFDbrngKvYLwT+GRICjl14Z07oKz1CkctTTVhxfgOrssdKBqh4DRwLNV/Z1nB0E0AOow== 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=Z9xFBA9s/AaoFvOWhJGrw75YQRui/TIjlzelOzhrGWs=; b=Jpl8a8QOkt9mgm7mVfwy3VFGW1I/4gsRpmnGIGr/zoKp1LYJEGFrN1CB3V8f6rVfy8+4cal30ziI7w2BV0I3tEbEmOvfGl/e+UZXj2x3hX+xgRvPhxp6cV3BUHMVYH5aWkZ9DVKhfhK+H9o8mr40nDT0rr61jII/dx7ejGd/bczy5QOcTheE7a+q5oxAlxBwYrfho0wBpZ0QvgaW4FhjGFr59Lf0M0xG7pFnRL6e+GMvNESerc8OJcug8pSgoP+85RGpyQ9mdRq2KrnD4s63q9zedTSBfsgv6DG5leYocl5PLftbBVt8nUKDwZPrtscOYAhV5Xyyr1gasS+z71CKiA== 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=Z9xFBA9s/AaoFvOWhJGrw75YQRui/TIjlzelOzhrGWs=; b=obn9cH/1+r3UwuN8gZrejYicuxdUrsDu2+4CEcDm3I13cjfK8zxMfLYW6+Y3L9MfCIKRZbAGCtJwsGTWfE5cDOjm2HLvZv2etgpy6X8y/EC+UwStDQPH7XMRT2ojyWD5X1IPTTrLf6xQd1jonuU2rfzDyhnIJo+EuWRreJ2+j+UmEegfen8Wu9Wb7wrdJ47Gh8ikawEJYAvpTi6I6nT6A44KW0r/f1rB2JLcL9WCFliEvNAnhEum5UXeuFaRMI7sKpCjrbGfZ5YE/LcCjJXaXLtURF4igwL3YG6d3k1/LcrbfkQ8701imRSvSrF4fjsEojEgKvNHKzArQttJRtEQqw== 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 SEYPR06MB6357.apcprd06.prod.outlook.com (2603:1096:101:13e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 10 Jul 2023 02:46:10 +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.028; Mon, 10 Jul 2023 02:46:10 +0000 From: Yangtao Li <frank.li@vivo.com> To: Damien Le Moal <dlemoal@kernel.org>, Thierry Reding <thierry.reding@gmail.com>, Jonathan Hunter <jonathanh@nvidia.com> Cc: Yangtao Li <frank.li@vivo.com>, Thierry Reding <treding@nvidia.com>, linux-ide@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 04/11] ata: ahci_tegra: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 10:45:43 +0800 Message-Id: <20230710024550.59544-4-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230710024550.59544-1-frank.li@vivo.com> References: <20230710024550.59544-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR03CA0100.apcprd03.prod.outlook.com (2603:1096:4:7c::28) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB6357:EE_ X-MS-Office365-Filtering-Correlation-Id: c16ec319-d0cd-4bf6-850b-08db80efd125 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MwYS/oWEdFfpRIK5T+h48aWwY9rmnAYbsS3dDFUBwoM6FddPsyQgFjvHY1WIJytjPUxjKK750nabTjpraJ4pBF8D2Q+O6CXBNeJxLcJWdROeRu12Mv3/1GFnen6TRXmoXQ6+atyXMd9+E5qFtRb3ZvUNep9CYR1ZgVdB1vNo5vwWKWaWhN0fUvDnJANJ71apTzVnmTHZajNvLJZfBZdaeecYyXI7+wj+rwpqGm0hXfZaLd3ns7n/1kFkxi94rgPU4355MLTfigq4zydf90D7LP8wDG7HWuWUr0uezf2X+SIQiNTYgwMTdjvH2ggGpr4QErHQZp6yHfxTr7pkjBaJS+WuVxL6+GlOEu9LkiOluUaLVlKkin2xYNDRzdMhitZqnyYf6seDhfME+vk9BUYK4p58OE6trLMv/nCrqPaUyCjqbHpZ1m2M/3WJnMswYdsIimSuHJzcMBrYPFqukUjvWwRq7qiV8XzbqiFsWOAa5vfSDQaMOs/PHoEWMnotknr8aszyql5MdkmQacoCSM0KG3BZH29ULtzsDw7HSVLt4Xtwei2nTbpVELGfRuXcsDnSg12nWH1UXuoAgNGGaa66hEP78zSRXKG39oKaIE9fqK3RJqeEg9QVdfNcjsOwMrrG 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)(376002)(39860400002)(346002)(136003)(396003)(366004)(451199021)(186003)(6506007)(26005)(2616005)(6512007)(1076003)(83380400001)(4744005)(41300700001)(4326008)(2906002)(66556008)(316002)(5660300002)(8676002)(8936002)(66476007)(478600001)(66946007)(6486002)(52116002)(6666004)(110136005)(54906003)(36756003)(86362001)(38100700002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Tjx4DkYqsWBa+Bn/EBrfwDaw0MmuX7SM/3nK8I84s+JNklZVa0UQaF1xYp89cM2yfGQm0aakscCviys7QM9/YUxuTng3Qnj8yjT37zvV+RPSvleWoOzYBGpnsds/pdV2cL//6SlPPkoR0O1APiZplQuc7zm7/BuDEGM9ax1ahOb3hMx9a7GF0tAXMw95fgMlMNCV34BFUd+PT33+Y99rBJ7KNPqdDHjHpkNl2o/dUnvxidtXB+wzPFR7i8gPT/1dxIvSeUmj1A2nfZK5YSBe64t2Kr4Pfkgw3CNe/LFPXmppP/Pa2g/blOvlvLy8h9JtxRW151oU6R8nS2VQqhygglAUMGyNUxhP3bvP6+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zDR2MiuwbYuPR6sbEyI24WhhP6bPHFnIhNzuIYyJYa+TZMdfgiJyZvHXtt5j9B8o2xBWWd1EsmMc0yOVQH8uluZa7viuSLK0nRR1bTk4XujV2KQRtBW1Gzp/elDQQ6qpo/94iiWh4sTaauq6e3MMzY/dNbq5nMXdvVp X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c16ec319-d0cd-4bf6-850b-08db80efd125 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2023 02:46:10.0024 (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: cOlJfGXLsIHz8DuPcOJw8CuPt3zJnIyzriTngj2o1/L1xfQosegN9Ozjlq3QkqzFUoHG0ikapc0+eskw64sSvw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6357 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: INBOX X-GMAIL-THRID: 1771000084112971375 X-GMAIL-MSGID: 1771000084112971375 |
Series |
[v3,01/11] ata: ahci_octeon: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 10, 2023, 2:45 a.m. UTC
Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li <frank.li@vivo.com> Acked-by: Thierry Reding <treding@nvidia.com> --- drivers/ata/ahci_tegra.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/ata/ahci_tegra.c b/drivers/ata/ahci_tegra.c index 21c20793e517..d1a35da7e824 100644 --- a/drivers/ata/ahci_tegra.c +++ b/drivers/ata/ahci_tegra.c @@ -530,8 +530,7 @@ static int tegra_ahci_probe(struct platform_device *pdev) tegra->pdev = pdev; tegra->soc = of_device_get_match_data(&pdev->dev); - res = platform_get_resource(pdev, IORESOURCE_MEM, 1); - tegra->sata_regs = devm_ioremap_resource(&pdev->dev, res); + tegra->sata_regs = devm_platform_ioremap_resource(pdev, 1); if (IS_ERR(tegra->sata_regs)) return PTR_ERR(tegra->sata_regs);