Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31706582rwd; Fri, 7 Jul 2023 03:19:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlEMgUmPCB4FX5KGk5UUjg87h+ftxDUC3IjkIRQBori2QiCEeyPDzwMMXYF9vxUzOohvyzs/ X-Received: by 2002:a17:902:da89:b0:1b8:5541:9d5b with SMTP id j9-20020a170902da8900b001b855419d5bmr3432565plx.17.1688725178785; Fri, 07 Jul 2023 03:19:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688725178; cv=pass; d=google.com; s=arc-20160816; b=LjYn69mqdezR6P/SWHtuKgNZO4nyI2oosJd1+3Wu6LrQocblKfAQuBrXqpiZCjhRe4 QfNLycfaqzzlHNpY4ULzzjiAUEtCdcpvLPBfi5uFRkYjnxXfCS5fpHzRsU1fgPZx8vYZ HtrJ/Ef4/SSH2S9V4ga8Eu0GUIqAKid9Dn//Wat57cHs+WGLx/Fswix7ZezkcNJViflP PTQ9tSofIFytwHbKd9GqQiQOL3b2xauNOb776hUM42yv4aUL4pgNOX6Mx3rgwTqMltPb DKoysKx/tQF4AROWyZbbd9XhDAgE8u14PLUBUAay10jjRZdornDD/fMgJQ7dQexbOLdR hNOg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=clT28NDDnXG0lYtow9Jcn0FNxd+1sybluxxuiLZdlc4=; fh=s3xkjvYMQhLNddnUUuOlQhz8OF3LmMHum4G0PMq03Lg=; b=iSPp7Q4wGyYrM2qBRbyR/tHTDiyH50jH15It76RHW4V1uQKpJFn/bMIHuYnTujbzw2 9R3iTNcr0enPWZ51dicyYarvQ7J7/4xDvDDrSgyPtr+jeEgoMtzIWtDTUyBsW1onfAVy KZufYOk2eODiGzo5Lv7UdEwQDZstX+9HNIkLHcKdnExQe3tga/CNJM3rqeK4EIB8PdxB 4bdobHT2HeRroPiYPhUpl0NZ078eTIPHr500llwPHEvZnru6TiL3jxDc5zwmT2mHWCAM 6RHvnC/84wPaXPN5NHdcxPvhLFgFpGJY6EWDB+9Za8+f6BEgvx7LLwDWCOqkXTYEQUyY kS8g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=AOU1yxGP; 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 p9-20020a170902b08900b001b0113e102dsi3143906plr.365.2023.07.07.03.19.26; Fri, 07 Jul 2023 03:19:38 -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=AOU1yxGP; 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 S232912AbjGGJzu (ORCPT + 99 others); Fri, 7 Jul 2023 05:55:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232443AbjGGJze (ORCPT ); Fri, 7 Jul 2023 05:55:34 -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 6F38D2105; Fri, 7 Jul 2023 02:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ED9ySqh4FU/2gMiq/1sIMmhre5hBoY+qDp0CmHvAulQJQTW3F4CK9kEMWv7maahOLLnw2+10blbJ9BY5dxVKJUlCtepNaFUq1M9uwBvTnR5lktdxvQyQFVBKgs941aE+ZGAV0/CKi5J+MK+0uNvI/sRXVW0vdI9CJ6rnSEV6c5cGZBsDXY+tGi0izbyXZUcYduO7YiDTbtnz91j9QVLHWJUALAOKNWCt7j/G8yJ/3gsSk/4AqENP+RyuZWSJwOIxfcCBQB01xnFlsm+kIiqxmcon/c8MZQzNsaV5Re/hj74Net/fcg8YXKhyMbjpxPR3jnAR/fAg0B0JIOBqdKfwmQ== 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=clT28NDDnXG0lYtow9Jcn0FNxd+1sybluxxuiLZdlc4=; b=DwYAc7tjgXnNMA9tGasCHney6zOaf6i9xm1CT0u/GQ+86dY3StoTu3o0fnRxX37XrXUz7mfR3DNUazs0Gmu+C1ohLoiZdRrbCeV6fFy1omY8E7Q2eOgzpTP+Qjp5UpgVQJgZ70YU82XrYQLo32CMyFRCuTUH9USuT4jqp3lN0ouyrHBvriO2NaDOwOcZBIRoX4Hp1SwENx0NxRr/VgWlBMn3LX1eJleR8mfRGvOE7z9y3N70+aJBDXOT+4jHQnNjLrm5thZR9i/TxIHgmZbHKHf81htNyQb2sg6pi4rk7gO/d/GVCjG3VDsGP1Due8P2DEqTrAp0T9RtA8RLiQuTSg== 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=clT28NDDnXG0lYtow9Jcn0FNxd+1sybluxxuiLZdlc4=; b=AOU1yxGPbg97ZH4E29tbNY60nThb3IEH/AY+k2xlXRKkUZaPSHzYOQzHUZ4NEY+eU9IXYGzGZ1EKiNPaHulLb/8aimsNm+rh79zUhgneA3tsWkGFpQis7c4Q9hgjY3oSssrMmvz8yM92WyZ2DQPLYsDIgyA/8n6v9hrCJHmXbReVxu3hsrnfP3jBwir56p/fbzEuJQX64ev5BKYaBzg3OIcoGHX0Z3FLTf5dzSglQsHrhsGnO4bXujJgRipveFFUrCER7Qcm0jzGQxhJlPS6gM0oJ/y4NvDAGOpc/mRu6T6mJ5yMAJa1m2CSJhqWwnuKNLwrY8aPhWe1L+JPKT4X9g== 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:27 +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:27 +0000 From: Yangtao Li To: Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 01/11] ata: ahci_octeon: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 17:55:03 +0800 Message-Id: <20230707095513.64224-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 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: 63c0216a-f71d-4522-d2df-08db7ed04a7b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rz9SkEscwIrR/DDOftDFaWTkw/IAD4KaBGaiyDtDjU8r7S8s8lUgB9pTIsl31sydhCRKVZHmuFRJwA7tVM2AeJcze6cz7hNsnhktfunj21dTFsVvyonWNw27PONUddf2wpaniofNJyVSH1+uY1ejD3XB+MyQO0efNVDEFdCPS7GOurKJsXNbf3Gum/BKWqjlD1srUo+J9BU/ezStQM4n972zEd2KD1WGk/0FYINbHKrVEwLtpj/a/HUhTAlNIqmYkMgBXBJhtR2CWwDvlgFttIZMyUkDkX3zN1xVA3NrTgCMkBUNPN8UCEkSMw6DMP9H/gc2eqadzRwHZHS/xfS8psUJcjECV/PSUEy8L4Tr43kR5jS8JNG/pM3LLthSRhfDb7SppXZZdMO9IaETxhoWVGouOv1D+QYQIt6RynBH21mivQbvVJuVX0B/PrzY90ztsDWi23Ycv/1SuaDQYOpFrOMRk/fOcqnsg2dYA0E4N+dDGt1cLSJUcmexZ/24lmvcsLKuZ8FWvOK82Xp7ecJKKbFVWy4E6tazKMrGQcocAH5himd5oZGYnqbkaqtFhnX78K5hiQm6MzPbHfC8U2qOm9IhNlNXIjq/s432lfwovi8iIZP+hKKKvKTEhQyn06gM 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?Wk15DWVsDubNBIF2fPeEO6bOr5jTF66A+SquM6TgAR4bxMfRG+GnLtFE0ZFd?= =?us-ascii?Q?RmSLC8ZaLgI/XsBzQhsXY4Vqalu0lFCf2Qedrs9wOWP3a1o2KiFnfX8LwoNg?= =?us-ascii?Q?4pJnlp7sieEO1aDyxDMI1DRAfJgyEQaGb+qwqNq79/w0MX/Gv+0k+BN2ttSs?= =?us-ascii?Q?40Fj+7cr6GIEgulSQ4XGjsU2q9MVTRsaurTvDfEjgcJ9N/FRws+QABtFWNPq?= =?us-ascii?Q?2ce+I6IZ5DsmWP+jmV656FE4FgP/yF5UHDbmWo2mYKKWx1lYhYh22pR40C6x?= =?us-ascii?Q?iWj2wXB0sKapghowJGKIcQG6mRKWeoRtBCgvRqqrKBEDvKgYfpBGA+VuB4Zy?= =?us-ascii?Q?GeiQWJSUeexGy91rDR/q3Be0BMXCKbxHwF3o6qtR6nin3EuSGrQw9JfeWwA9?= =?us-ascii?Q?D2MwUkTrmJo5ALtf4djkFILJIgt1aKXDozlr5+2z02C4aYlHnQc7LopeiSas?= =?us-ascii?Q?8Bnpz2Hkz5e68ICf/He70z3L3KPMIS96CSXortW5Zw0aAJMeNizLA+Fq35Iz?= =?us-ascii?Q?fIBscmzEbZS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Fba0HVb8GAyAHptda?= =?us-ascii?Q?OW2pze8DAzAJBKTexBG4/Bm2hHOjaA6HqVXjorP4dHH3qG27eNdCcidEt1m8?= =?us-ascii?Q?ACm5H4GNK/jpKe2xkyxklXBGmn1v6JZD/CBX37QKBn1HtwNHB6eDx/+T5i1f?= =?us-ascii?Q?siMbLUhVZIyozDhY/mNOqnnstzDbXArq619VGLej?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 63c0216a-f71d-4522-d2df-08db7ed04a7b 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:27.3488 (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: Q4O0zW74lQgnZyWAlwB6ccqu3uWLRb9Px+r4+b8HFHFPp3LdWcv9ruk56103+pyDNMykRrl2/OQpkpO+Jh2BJQ== 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_octeon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/ata/ahci_octeon.c b/drivers/ata/ahci_octeon.c index e89807fa928e..9accf8923891 100644 --- a/drivers/ata/ahci_octeon.c +++ b/drivers/ata/ahci_octeon.c @@ -31,13 +31,11 @@ static int ahci_octeon_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct device_node *node = dev->of_node; - struct resource *res; void __iomem *base; u64 cfg; int ret; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); -- 2.39.0