Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31698790rwd; Fri, 7 Jul 2023 03:12:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlEFW0YeaSI7AE06lhQ4gLb2R3h5g3KU2ETcX2bJ4c8pQbh1HSmpzPwAiny1lV6XbK71bB1E X-Received: by 2002:a9d:4d87:0:b0:6af:a471:1ab3 with SMTP id u7-20020a9d4d87000000b006afa4711ab3mr4650247otk.4.1688724729885; Fri, 07 Jul 2023 03:12:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688724729; cv=pass; d=google.com; s=arc-20160816; b=glXPhSrD4cz/YmgiNvQ+4QppzA7l5qMhroshqRyIJV10B9Qrk3jF+hlQwCeFfLfsVt 2mWml/Dj1IreaJR3CuUgDPFfaWlO30M2ATJEuv0z4VjsVRlsisTRFMoC25iJiPqTp9PP iAd5BL0Ejb25bTQCRIUlvJIERvQbZXkEAMeG98EoQHUoZAZEkbbZL6I5eWxKMh4nYL89 19Ldr9eRVC0UQfKT+Ms8+m9YjsajJGchWTTL+f0L9DgVoATdjfebRh6eJK6XksJQ6w9q pAyOoLoR533j8+MOKf8FhY68nYZH4MaMXghmQH8EBwltxTJt378XDzl3bS4KNH7kALzm gIzw== 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=sBwL+zI4mb+mW6egFVLUovKjjeFZHS33m/jIhEGCPIv/N6FqNkMFLp0HKiM6L3ZyO8 3PSeVmFDMieRspH0FvNFHO7fqoseBUf0SKqdaDGo19z3H4fCgN3HbCTVVqzCsmqELy7u ydwtOvp06gh4kA0axzXqHbQFo31phq9vWawf44t0FoEcL3WPivUTw1/CLxzcL1PIDzk0 JSkNedXDxMkKfGTMCbgyMCDSVORxOY9D1u0jF/Vcy8fomAb08x8foojuytbJlwBncxOn 4hjbDpL3NJOdStvMcURwepKte0XVeX3Uc9AOVR6cZyRIHLZ5aapB82P7zKkJgSEnXvRi PXZQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=hYkGR4Ag; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l1-20020a63da41000000b004fb8abdd188si3464803pgj.115.2023.07.07.03.11.53; Fri, 07 Jul 2023 03:12:09 -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=hYkGR4Ag; 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 S232953AbjGGJzz (ORCPT + 99 others); Fri, 7 Jul 2023 05:55:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232712AbjGGJzf (ORCPT ); Fri, 7 Jul 2023 05:55:35 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2095.outbound.protection.outlook.com [40.107.215.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F1892107; Fri, 7 Jul 2023 02:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TnDloWQ9shSLG6UjO0RcKwveiiEqHgctgQij5YlK7RZxM2CXHWYJorW+PRPMlnJLYrlldHdP4Lu/MnL7s4Dz5G7YdDlOCQSmoaJrsTz39RA3TmNF8vbxCm59D/eByGka22ZkROOC6F6/HiqfO1YPU9AVVR8pzd4YfRH72UkyOeMoRrV+FnYb9+RdgalQPzZIkzw3Q6gtUcMuygXmn0ps91557Sd+s8UA0eRMDz12OEblYpUMSHFdhfYiI4O4z8XygKPaocpqfczFMa9Xdc2PY0hRmpc9dO6mCHk3ONV6L6hP/wgdYQsVNsnK93GMHe9JP6Kq7PNgB2ImJVL1oU77Ww== 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=FjnKygDWBJpWHwPqAjONexeP/Pz9jeao43gHgzQMBfmyusxooSII74HQh/OnbH8jYbgqWUlldtFNgtjFsevx4JJTu2QtEfZ6nLq/DV1Rslknjm5DLetNmaQ/i6pfkb62mJ4GOTQBDNRx/8aZrcfX38/62NspjxD25CtcyMpMiVAB38ZpgLCRjCQj2IEP+Wjhy3otd9rHpmdkNoih7httGVgLEeXugaABaOFgoIbeoJFQaruQSbI93tcqtWg53QV4viA5CmIZ10tfo5fRxZyWlV6MaL3g/FcyqhS3zCGpBBVp/imudVuN6IXCRPdszYBg7m2/7UldZE58nDQCkV0QQw== 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=hYkGR4AgJPeAqjl08baE7NcFYi+gTKKfopWRXBXeKBNXVtl3PBDtbf8Ukh9Ti+xk8hgfh/2bGgPOMc3rt5sQZGYYUBmX2h5006rjNJ19QWbuFBN8Y843Xj4JiZAnORC1+E+VNIvoafVnIZGSyZHsZnegDpEthcDLXgLPPbRd/poUVa0+pZkVdzcN1ZkGl5wMPomtZnEu0duXDnL2B0N5ukuAk8i4tljy/Rwt/xOLihpwqlLrdKg9hn/LOoE39lLIkKs3qD6Ws9G+yuBKR89GqlHOXJye0vkSBDqI2InyztKM3j5Su5QYLg++Eux5Hq7711dPpHzvFDzvst1S1MgxXg== 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 TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 09:55:29 +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.025; Fri, 7 Jul 2023 09:55:29 +0000 From: Yangtao Li To: Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 02/11] ata: ahci_seattle: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 17:55:04 +0800 Message-Id: <20230707095513.64224-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707095513.64224-1-frank.li@vivo.com> References: <20230707095513.64224-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2P153CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: 172d321e-a2cc-4e80-08c4-08db7ed04b82 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dr5w2Igh6AGggHMbIWqUdTECr0XUsx7FtP5qST5zAP6kVlhbPcV8SB9uoW4S8/XdudrTA6DtJkuPApd/XbOg4Kqllvjer1DwJk72/8o5PRwFeOZ7oT5t/pOq6u/n9n6rfvXBNK5X+wOjEMPnlDCkQ0NRvDAVeD0Js5eh465TZXIODZ2xr8qXEbzlM4GSOMcO5ZoaCVpR+6wN5Kflt8iHMo2E4CVEsPbvYN3Sl0pSU6nFKv1DIhkBHOZsyhcnJh9FG/CtYoMOkjGwgYeORT3vasHqPB1o5Ap1plAvd9DAqGqLzLANV9q1U/G9b4L9kgQvHegQnHGb2RmvNeCy43pS0tjiIxpkO2KF6Yat2Bvb4la55tnw+n42kBRT5Aq1h6wRRYRow/hlF7oMcWLj5DP+WMCQMZFfm4y1lxMIGO2VjzbAnoOvcZIog012t0nTTgwDm34AJFaPggWP5TnNUXJq7WpJ416SeXBs41/dVzjOOU1onq8T13LxjvWOi8qEDDGLvav6Pket2JSx3pXvtn5bNJl4a6EbbomcluKjLXrBK1W3s/i27a1nzknx8b8qrI9hPujlAFqJC8PMIJCEEAJYUpvOdcVpxQMND+3Monf5EI+eHVnRGnaGDvqOVNvGthtc 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)(39860400002)(136003)(396003)(346002)(376002)(366004)(451199021)(66556008)(66946007)(66476007)(6916009)(4326008)(2616005)(38100700002)(38350700002)(86362001)(186003)(6506007)(26005)(1076003)(83380400001)(36756003)(52116002)(478600001)(6512007)(6666004)(6486002)(41300700001)(8936002)(8676002)(4744005)(316002)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?6VVGCb/imcr4vhCOA+oOYF1tloV7cgrMELXVjimlLR6+vmfswcJ61GsPmZTw?= =?us-ascii?Q?y9Q/xH3CMIi0hLuQh7DuZkxxHPUMmjIalYqSx6yI3Hu5UEWeKLUKcSL4/GXF?= =?us-ascii?Q?Ojl/eP+feYrBJz/9H2yNYcwlQnz4xJ4tXDQjG6h2aMBnqUvIIInYqSZLJcej?= =?us-ascii?Q?gknZu9SQ54tqPGCxKGw0IE5XHXLUC/Puh4jINWz2Ow/p0zJCJJhDwmzC74fL?= =?us-ascii?Q?Kp+9W2JW060Cfi/E1kf5kUn4JG6svLGzBp1KY+UpWjkV/UR8gS2+le+9RIE/?= =?us-ascii?Q?ABKp3a/rMXME+p1b6m+XICiWMjo/2+NBklyxB6GSIyHON7AVuXJKYExAC5JM?= =?us-ascii?Q?FCwZjZ3wvVWNt2UPhbjZpSKCl3qmJNJeKePcwy/u3/szrabHUxG0owol08Rr?= =?us-ascii?Q?JUY7Q0ruJBN3duwffxcT4vLZkG5ayP5J6OIJm+qAf5u6JiaOTkd/b9HbCWm9?= =?us-ascii?Q?UM87USZhoLrqusz9uHlwBRiDAF6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Q?AgAFjres19Uh9Yiqt4qLtPxjPh92as2+nNzB0sO6/NFY08SESIxiqoP3lpxt?= =?us-ascii?Q?W/vEMSqrviNkgmOMNzcWlt2uy0x/0Y9MbdObUuOzyvtBiAsZH7x3WZ7bMeMO?= =?us-ascii?Q?AyBuvudzTV4VY1Mx2etDVFdpoY6qxbm+BlXzt69wQKnDbnaib79UD6+gKs1a?= =?us-ascii?Q?x4qhpIMyESoGS8irHHLKxlnSvpTmT6NcmZRDwVFH?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 172d321e-a2cc-4e80-08c4-08db7ed04b82 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 09:55:29.0137 (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: tLTvu2PqnWjbpEWNbtPp6mqSaSTBjIQhhAPGG9TOzRb5AOUOCGljcw7ggG4NA1AA+EpAWol9e5KPr6l86RPT9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.39.0