Message ID | 20230706124239.23366-3-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 v5csp2531642vqx; Thu, 6 Jul 2023 05:45:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlHwPlAMzjOb44qAEoh7TN3k/McdsVKKR49Pi2GJiOskEc5NKFlinCv3llmAzBFBJgcNuttn X-Received: by 2002:a05:6808:23c6:b0:3a1:ec14:cd7e with SMTP id bq6-20020a05680823c600b003a1ec14cd7emr2170141oib.36.1688647502946; Thu, 06 Jul 2023 05:45:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688647502; cv=pass; d=google.com; s=arc-20160816; b=WMOH7oe/LnbzZH655+3Xg/AN4Vkza677xVl4Jpsc5jCJLVQwgxEiBe0PR6RVdfmXxK HNHbR6J+LgP1LGCNH7CynR6G2EN3AB/pRRuaXDBo3wb2I4HrA+P7mqNM+zk/9ix9pieY Hmg838IBPK7QHN61G39wEu6znfcJaPeKjqC5KxiRXe50vbDSdxGEBlAO2oeA5R7QHa1e tR4d6dFM1hgeCiW1ZGZ15DP6vnji8b1S9f08wY4zhuDeQ4O8lh1jeJnOVZpGBjK6/98P Ur3zsXHCv47ZlwRkL0Uy0mzGIGAI50DIaWne1K+0hF517qIbBAu/jXm9SPhBNyvqj6L9 1dZg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f11-20020a056a001acb00b006828982043csi1352883pfv.141.2023.07.06.05.44.49; Thu, 06 Jul 2023 05:45:02 -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 S231835AbjGFMnC (ORCPT <rfc822;hadasmailinglist@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <frank.li@vivo.com> To: Damien Le Moal <dlemoal@kernel.org> Cc: Yangtao Li <frank.li@vivo.com>, 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: bCUsQgYOOQyZmputHR/YoBKL2k9htaELS0jAGtnPOTekc4jy3pvF69RqYiId1xbn8v9ZTw4y9AWsIqnqfnGg7J96/JmZfvKJ7qXN6iHvFEWBUsiqccviprDZT1/noPCbhUhWQQbpkaVn7UxVtqBROcnafOrBV/hJVf++zhE6VGUELvB4615+bRpZMkTHQvTlbhVOaGlELw5mTRch5H3mNrEYzEl8mZdssFEFA4pz9ttaBhTJhubCaAfjRbYTqILjiQ5MpdrVdxXtsZNaDnPiZBKz5uBhqJr9ONMpeQ9ZQ7XO4hw743VukOOsXcpQVh2XtaoAcjhGE2JJ1WNi3+gIRd34vK3QIzZ5G+p80Gcky0XuoPIhr8U1JujzyCGKTFp95pYzGsGPXy1LReF3Q9Pj34ChDrAm3GS8fgo5lI48FZaoSbLXuiOkCEMYU0S9z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zlK8cNzuZ3sT+Hd84pPXuxWgV9f2PFm4PNB0vyHChxQbKJ6iQMaLV36ehRnFvJC 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: <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?1770675244470976945?= X-GMAIL-MSGID: =?utf-8?q?1770675244470976945?= |
Series |
[1/8] ata: ahci_octeon: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 6, 2023, 12:42 p.m. UTC
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
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);