From patchwork Thu Jul 6 12:42:32 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: 116684 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2535089vqx; Thu, 6 Jul 2023 05:51:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlEm63thnKeQKSHX6O6ErFw3GLgxgbaWPvejOJONepFg9oqnOE0ADSkMB9q8G1Najs9/9l6W X-Received: by 2002:a17:902:bf0c:b0:1ad:edbd:8547 with SMTP id bi12-20020a170902bf0c00b001adedbd8547mr1226287plb.15.1688647892537; Thu, 06 Jul 2023 05:51:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688647892; cv=pass; d=google.com; s=arc-20160816; b=hidN2NxQy0YXoHJ4YQTgUmEUJawZlhhnkNS7oOXBO+LNxTBB868lzHjaujKAValJ/p Iwj0bbnhsTSQT0BAhArrjd40c+EWwLvKLJq57zRdxW8+1UtyiWusMMVUrKSSsFBYMx9z HYw98hUsjhOH/ZagmOIzG5Yt3xwt1qvv9gXxUbuoxW4oRkdtJo2zpk5o/IZUU6zcK/GZ H0Ufx3AQs9QW2CGlWUEwOoPNyGNglPFKqnL5W3gNkLbN5GqlikR/JxU+F9R07WgyYAUb KDmVacoLPhjadD0kzYENgDLOaffgg1pDbJNGt9GPJesvICTd8FK21kHb+vZdmFYPncHG UNXw== 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=tTBEk3ERPwGYe9e803WybvcvhM/4AUThNLDY/pAo4aw=; fh=s3xkjvYMQhLNddnUUuOlQhz8OF3LmMHum4G0PMq03Lg=; b=MvF5qivqmku3mJpIN9GsGhRrHtH9e90GwoQ6zbD8Stt6vPc25JBh9ZOYY5oXoCCYca wOcnearDmOb+CCQGqJnMLk9Qnk+CCzvJy/b8UzRGH/YVcp0XaRTYRDh/sBr1eFReyi7/ CJFeWoTlsIA5p6Gfr1NnWrDB88x73YczZqEAi6KfSLjDcKHrCyX285YxqWTfQrcoNjZC vH0H85p5T5ncT0vZRHpR6cSRAvT5DwGZEChDxhoJFEeEpjE1Ud5s2aK8JRPT0xGj3mx6 cG5+aH7+VzvCLkEGjLt/Nmn75RfaIXuJksNC/7h6eivk+KO58baOkbHF4yE5mCsugHG+ Ye9Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=qUyU7EH5; 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 b15-20020a170902650f00b001b7f9bf117dsi1203276plk.7.2023.07.06.05.51.19; Thu, 06 Jul 2023 05:51:32 -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=qUyU7EH5; 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 S231693AbjGFMnA (ORCPT + 99 others); Thu, 6 Jul 2023 08:43:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229787AbjGFMm5 (ORCPT ); Thu, 6 Jul 2023 08:42:57 -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 6F220171A; Thu, 6 Jul 2023 05:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fNhQfbZ90K9gaNnB44lCVEWysEe6bgKKoRvCzTGKFu76PpWFNBFdFCypgFEiTH/A7P6vJOSjlvuyVtXl/zSidb3aROpteoi01qkn9j9IeRasTTfQwzLuXBz31Pk/C+EOdaUk7xbCMmki2H0OH+xvU2TPM5Htd0FoVBea0zh2I/fj85z1SofQYaB+U/KF00cU0meDn2Tl34IN5J5pv9c7IrkTIIVJxe2GxDS9aAnwn1NvBjqbh+V2aOzgUHDRgpZtGxTM4c0pJz6RgmoDjeRL3rYPGiEB32/qUEzqt2HiwVeG6KtObS+sdPGvGn3fRR4j+Ec3ijaS4wlMcJlVkR6vmg== 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=tTBEk3ERPwGYe9e803WybvcvhM/4AUThNLDY/pAo4aw=; b=UzyrQ4HaDuQvhyGH3FDV8D/DaAl08yt3clXK7UFURaZyBsuepIOdq8i6KxKbN7Ye9StMy8QFHv3WY7rZpqGGAeIa9A2AFda4bZZvKdsDv9DQ414SAAVo5FXlrcHbFEQsFu7QI1iAhkrEwosEJctQv4f/lHOl8y0UuTWUv5bccRiM7YxldU4klDtZ9ppeTJ9HGZmkyRYCKkIokAayGTlS6U8I7x652x/FpiVRDxUHx3x0MtP/gXZSOwK+nXXQyGT/s8tvgFwQMKcmwIM27C+HpFLOC2l7cbfKKdQvya8zld8oE6RFjZy39ya+DXkBkILusNGWXR6SnAI/zNzUd3TOSg== 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=tTBEk3ERPwGYe9e803WybvcvhM/4AUThNLDY/pAo4aw=; b=qUyU7EH5UZWY1lvzpyb4usZDS6bGmrfXtMrJJrXlYZNo+klCumFv/kpiUiGgDKVhiTXE3IDEdvmMDGXBe0S7kMH1n8QtixYnjpOmJ3KOSPlLUKiAbQBbZyeSvVL1zjBFlWfGahqLrFK7XC3hnrnkdQcpITM443QDX9urb3b9pAZ0xKq15xUEEHQX6defDNUIuVeXc8ED1CzRtnz+J0mkAeJPhlHO1qyh05mdDWF0g/4folpLOfF21g5muVX8CS6bWKvSTf4RhhR7WFVa+10bH3V+BkTLPIBUrDNnf6V/8h+4l0Wkvn8jvCAixjhq1ZZwLjSIKAtt/IA79hiNmu8CiA== 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:42: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 12:42:50 +0000 From: Yangtao Li To: Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/8] ata: ahci_seattle: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 20:42:32 +0800 Message-Id: <20230706124239.23366-2-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> 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: cd2fa995-15b7-49ef-0a89-08db7e1e8269 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qlH1uPr0RlEXzB+T7hcphtmRLrwuqOlEDuX4Eb6j66sgcw/bYP+gwvzZnjVBq6uFB6S7Mjm0cQEmtHKK6kwUwLVHE+HwsWkmQS3bLD4Q9XIqKnSoTxYRda8uFajP0I/r7BVCKyn7sJpntwihz0RRm96ZqSuM0GXTd8oaWh/mFcKDNHVHfOPeTqbbNPvNia2SaDptfgR+A00q/tOq7AuWW9hb1bHSdFQnV5F1Ra2OEL3iPjoO0BccEre9bVdNr5KCcvdZfXyzHgwlscdc/DH2E0AqoZ2ol1SS4o3cjCoa9Ou00FCN9BsxwrKBG5HKt/evge0jYCw/NjgQS92yEwYmOcRjGuaE/I9WdmbAma/qWdPKGMEZK12bHX3q436EDdrdcdTXsFdy6VbVwn4qtOnRJHSbVn6T6tsGXrwUCdg/aeXjY8xqeQsQqjZA859zy0TR7mSIyWpBrZHE9OHsukQT5otWxyxHjTvdvy57rGum3FqXJOzzaIKXdKl4lA6T7QqyKfca4q150PpoUTHcEfV9oH01o2oW27LghJLD8OH8KhmJZJqz41VmWxnZNDVG3UQ5Tbs28OTn86/DIq4mNMwlZnH5fLtBeOBEd7Lb9v+2MITd8ov8iX6GlY+rQWz/vYK8 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)(2616005)(66476007)(38100700002)(66556008)(66946007)(6916009)(4326008)(38350700002)(6506007)(86362001)(186003)(1076003)(478600001)(26005)(52116002)(6486002)(6512007)(6666004)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LlsSH25QuOpf6NLJE8S6KC4AkaBO0Z2FpuqgQkA0YT6QguEAerasXOzY7e+kcp5VpLhWpd5dbXNZlUqtOOih+oLfheYTinLj1jRMT/1XqnAh/VAsHr0aLvuRzIrJ2kk6/C+no0ulDt7w8zahTb6BOFOxrhlp16qbUhexE4h9sTuHrAS3whNlAMigs0oWCXYvCdxf22gr+aY6xDuwap8ZiCevKgnga0+cCX2axzbnAxsWG676gMUmF5jWgWbxxsOjPkMqTwarEkhuk5kwf+WFoJI1mXZ42HJticFgLiufEG64aq0xFMujldDHnG7LPDNbRzhpTpCiQBS9NvI/MNA2wP3TuWY3ccVWbnTqxhGjblmZQlOUuvXyIrRuxPNJ6+JAC/Zu5KB3DvAfglsQo2tbYDt+/MHw4fYprM8+MC/XeAjOauqXJ88vPziioSlOcaBithig3yRMRwlY53SRrHPz65sNpzpQHXwkXny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rIW8PebDMnUsVB3CnJSaiW7cj8D X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd2fa995-15b7-49ef-0a89-08db7e1e8269 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:42:50.7034 (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: zQHun7nelhsn+opAEsXFAaz791R5srfcRBX46jVEgbt09F5cveiwSirNg/WD1nDUTek0f0Ux6j/vx2x75AlhtA== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770675652691417884?= X-GMAIL-MSGID: =?utf-8?q?1770675652691417884?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/ata/ahci_seattle.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ata/ahci_seattle.c b/drivers/ata/ahci_seattle.c index 2c32d58c6ae7..a64c9c4704cd 100644 --- a/drivers/ata/ahci_seattle.c +++ b/drivers/ata/ahci_seattle.c @@ -132,8 +132,7 @@ static const struct ata_port_info *ahci_seattle_get_port_info( if (!plat_data) return &ahci_port_info; - plat_data->sgpio_ctrl = devm_ioremap_resource(dev, - platform_get_resource(pdev, IORESOURCE_MEM, 1)); + plat_data->sgpio_ctrl = devm_platform_ioremap_resource(pdev, 1); if (IS_ERR(plat_data->sgpio_ctrl)) return &ahci_port_info;