Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30415139rwd; Thu, 6 Jul 2023 05:45:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlFRCk5BJg5y61qf10Zcgy9MeHxI54uidKkOrVYjpfazAWf2ZKJCvtevyM4njsBLadHYVURY X-Received: by 2002:a17:90a:eb16:b0:263:abea:94d1 with SMTP id j22-20020a17090aeb1600b00263abea94d1mr1174218pjz.44.1688647501858; Thu, 06 Jul 2023 05:45:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688647501; cv=pass; d=google.com; s=arc-20160816; b=tldDrC0tAejicBhM1bFZ+SyTT7v3CKkUuHm4gOpyQ0PwrzuEuajeN1wB48+EKC26ey xYCYfrZzAZweRXvN/pOgD8CBBRxldo/EB67gTkXQz8CBun90U+7SVvspK32hQ7HnglQP nd5TKZR42PvFwylVYs8rcS+RpK7ZeyqgAnOWGQon06WP4iXuFl/WPt/frZACFQxAI/4o uqtFeV7p97f0TA3kY4z7/GNh6GsS/2sssJ37eG1VigUIgmDj4zcrWSDl74R+KXdVWEhZ KWc9iv3lh4HZFqHRToIOEsYyrzdol+1ex9SXhIvpr0n5wUVPQ6fESr04yXqgADY10ulu YLhQ== 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=MD8GThYyR4e7OPYeAyEKnBqEfkeohWv4pHC59+3Uy50=; fh=s3xkjvYMQhLNddnUUuOlQhz8OF3LmMHum4G0PMq03Lg=; b=BqpkTPMg1YozeYuf043r05pTVpqlu/3Kj9b7vxpUabexHNW2vkSkNb/CASks7kjZox FSov8rZTDanWDObQXvSwv2KP98LXmXIQ9JHYqm06+NxPERkvml0TVxBLCRqPsBpUg3Ao gCFNQaj4p1C5P5UdDVoU77jVRWGtgGRiRUhBzFLiJZ68xiHWxQuZ0fONQSM/jqQhw+la EZLeyfDlGs1lLPForrcf87M1mPQxkw+UEd9AAe4KT1WBNFWpDC6Dqe6k94f4UG3QDQ64 gLxmV8zl4Re+pypH4Xy3H2oTtIXHeQ+xBUjEaAtbropvlmQPchUKr5qU4lYiKXxGyYz0 5Y2w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=a3borwIx; 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 pf2-20020a17090b1d8200b002637aa0a4dbsi3944200pjb.103.2023.07.06.05.44.49; Thu, 06 Jul 2023 05:45: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=a3borwIx; 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 S231773AbjGFMnC (ORCPT + 99 others); Thu, 6 Jul 2023 08:43:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230079AbjGFMm6 (ORCPT ); Thu, 6 Jul 2023 08:42:58 -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 B4458171D; Thu, 6 Jul 2023 05:42:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eNvHrCWddGhgkiicjuEjePOz1y8ZiI31YluW/F0+ju/gjTbWOX5XY4mgJG5YXinja3WB9RAwV8Vm93kAaWOYULtu6V4GdMWiDmdJgym+tsFLq0t4Yt1dK7+bMdam16e5Nehc6WSaJbFtbD266ZmdTSwvhh1R1OwAy+MCsF638BVIiznOy6kZa0CU98Vvd+EA8X81j5yhTvX5w3PZ+8jV/17Ioxq8KHyvLhB8QKcKdQ50RWom4rbIyObUuAPVF9Ena9DAGLn6dUXbfc4RFEiHDupuORM5svy6Apwen1wL+gCHlrUFUXr8NYR4Zh2Bmnrz6hs99kDVWJJNtNaRvjks6w== 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=MD8GThYyR4e7OPYeAyEKnBqEfkeohWv4pHC59+3Uy50=; b=AYgygXcmp8ZCM1Gl0BrF2vpflaLCBh514ZcqPiFJvblIpVzAz5fAwyoPIjqyJRnw4Bh9pHVFYgd9MvkbhqH4K9ZQHmxIhBlo2XYEPegPfMqbVVsguAECBDBJ6LEbNVpjScXLGcquh+pVxUdSQENY7rPxXNvF87KYVHkYJ7e01OqD+xSVy5rTmybwMKf4u1oIlM7Q1o5LUrvbfqVbGjRyJCSiKfPK3XpxvYXsQOBjfDsTp3Fp8xWF2HAyWU4dJsGaXQFsPR4Dl1k0fvqeQVICPUnATXZR6q/7v+71SjBpvKT2+WJ3/IekS2mPQekYxifHGcOYnCS8dLxQG9YelOfLZg== 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=MD8GThYyR4e7OPYeAyEKnBqEfkeohWv4pHC59+3Uy50=; b=a3borwIx5020GPZzPXla34HxW+/7iD0jEfUrME/AVHftUQ65xFXU4pmSDUGVuZ4VyOZ+aN76pQyi3KzAZr9j+HtBVuH4ZiXT9k/szBUiKkl+Qf7UhTLoUcUWsRSJ5wVWRDPIyht5CPovPxv83Y4b5bhjEf3eHGMz92RJ7cSqwS8CnEJ66Eu4tTmPGme2ccRIQzdKeFUy4ctcaobHITAN5MzTeVHqweAcxp7qjU6vr/6ODbppLgGXCoVEFc0GnjS8RLo5GME/1daG3T9SXQxM0X07VA5GB/BAsMPc+zeklKmhKN5eN7vJu0fUT35i6CqRoDIwC6qfSmLaECuPCIsqBg== 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:52 +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:52 +0000 From: Yangtao Li To: Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/8] ata: ahci_xgene: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 20:42:33 +0800 Message-Id: <20230706124239.23366-3-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: da37ddd2-6557-41aa-4f66-08db7e1e83a1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 08fZKMDIDDkPfwKjXtAp8haon/6dB3jLPjAFDrg/j3fDbsbu+6RUNMj37Fn27RrwjELRqsg1GJW4uSaULtgi7StaKPZ7gPi5JpcpHVItVTfxa9Tql9jKDAkCtlPcweprGh48QgO6BPeaV0vVUY64ks1xoaIYZLueY+6bjPp4Q4rkVVolqJLCJveaQlEhFUvweRWBrJUeDPYAe6I+LsmZufC/zP3GtRp810R4N2FM1uEu8pRFE5lll2mIS7wgzI1BhaJ7xNYPwg+NfDxRUq066kYrbzBI86EUIMlNq2TIioswIGS17AVl/FrTg85m3iC9R/zVYZhQx5frNnS72D6qIc2m8R4FJAMqf6RxL944KZXlHoFMV7ybS7q+8vcm90uinmyM8A1uQ4LX+aDVqwj6GuZyQkkgDV5k1j8J5iCCxe+ahPO1awrGIeVxt7iW8KTI36foOClANYaGgEmEK5ihJovX0dodtKCAHF41Ms0MQRHvcDuwjZHgoBluRR4jUikH7zuYZVZjPJb2V1ogkitxVSTeCVD2Fp4epEMR+c3tPKgoL9t9Xky2PzV9vt4kindyq3tSW9tNpFhCJTn8g3DNmaqEhLYfJd0YsQM19bfHzWhQgi0sQqIQ9TmIQvqwjAYz 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)(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: =?us-ascii?Q?bCUsQgYOOQyZmputHR/YoBKL2k9htaELS0jAGtnPOTekc4jy3pvF69RqYiId?= =?us-ascii?Q?1xbn8v9ZTw4y9AWsIqnqfnGg7J96/JmZfvKJ7qXN6iHvFEWBUsiqccviprDZ?= =?us-ascii?Q?T1/noPCbhUhWQQbpkaVn7UxVtqBROcnafOrBV/hJVf++zhE6VGUELvB4615+?= =?us-ascii?Q?bRpZMkTHQvTlbhVOaGlELw5mTRch5H3mNrEYzEl8mZdssFEFA4pz9ttaBhTJ?= =?us-ascii?Q?hubCaAfjRbYTqILjiQ5MpdrVdxXtsZNaDnPiZBKz5uBhqJr9ONMpeQ9ZQ7XO?= =?us-ascii?Q?4hw743VukOOsXcpQVh2XtaoAcjhGE2JJ1WNi3+gIRd34vK3QIzZ5G+p80Gck?= =?us-ascii?Q?y0XuoPIhr8U1JujzyCGKTFp95pYzGsGPXy1LReF3Q9Pj34ChDrAm3GS8fgo5?= =?us-ascii?Q?lI48FZaoSbLXuiOkCEMYU0S9zgRkt3Y9FDDsmm0J1N3yrQG6nzKiaqxIdDJd?= =?us-ascii?Q?yY0z2xlKW7WS8cjLpeH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q?tkWSPN+DmXATFZ4fU2eovWOMlNIRucsAPCB8UqezRAhvllOIer7q3YfDjpJv?= =?us-ascii?Q?WKttypAuuS34+2APlBkTjJLBkEhhP9hh8BZN7Pnhl6h3TRyKDJgLx5IE8ApE?= =?us-ascii?Q?09mPXzIZnIjpGTlee4Riei7TdanNkC5b085ltzlK8cNzuZ3sT+Hd84pPXuxW?= =?us-ascii?Q?gV9f2PFm4PNB0vyHChxQbKJ6iQMaLV36ehRnFvJC?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: da37ddd2-6557-41aa-4f66-08db7e1e83a1 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:52.7559 (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: fr04ODfcnTJLy6KSNsZLGy6XXs+FBtCDH3Q9Cw1cJteWlI3BNZo2gt//4X/+Fe/dKz6cjXmnAMA/4Ym90r40cA== 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 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/ata/ahci_xgene.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/ata/ahci_xgene.c b/drivers/ata/ahci_xgene.c index eb773f2e28fc..f5deaf648663 100644 --- a/drivers/ata/ahci_xgene.c +++ b/drivers/ata/ahci_xgene.c @@ -755,20 +755,17 @@ static int xgene_ahci_probe(struct platform_device *pdev) ctx->dev = dev; /* Retrieve the IP core resource */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 1); - ctx->csr_core = devm_ioremap_resource(dev, res); + ctx->csr_core = devm_platform_ioremap_resource(pdev, 1); if (IS_ERR(ctx->csr_core)) return PTR_ERR(ctx->csr_core); /* Retrieve the IP diagnostic resource */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 2); - ctx->csr_diag = devm_ioremap_resource(dev, res); + ctx->csr_diag = devm_platform_ioremap_resource(pdev, 2); if (IS_ERR(ctx->csr_diag)) return PTR_ERR(ctx->csr_diag); /* Retrieve the IP AXI resource */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 3); - ctx->csr_axi = devm_ioremap_resource(dev, res); + ctx->csr_axi = devm_platform_ioremap_resource(pdev, 3); if (IS_ERR(ctx->csr_axi)) return PTR_ERR(ctx->csr_axi); -- 2.39.0