Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34761448rwd; Sun, 9 Jul 2023 20:04:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlGK00lXE3j00L6TVnzwLMUHKeWtkTTDxH8qjSuFMPEo69wQjxYQtGedUwBG5HuSegv3sSIw X-Received: by 2002:a05:6870:d1c9:b0:1b0:5bf7:3bac with SMTP id b9-20020a056870d1c900b001b05bf73bacmr13791183oac.37.1688958260934; Sun, 09 Jul 2023 20:04:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688958260; cv=pass; d=google.com; s=arc-20160816; b=H0z/W16TqT+EYNJH3cuwgg8knw23uWQcqerHxWAlcVzKevgbU944HR7AeOa+KgObcX Jsf41eoAq3WWNakq05B6p894Rx8cdDLw1VC+D3f5JjkXtLXlwWjVwF2p2JuEPcMA2XXp /RPVB+restoF9S4Bf6QwH5jdAoMMR38NHxOi7I7nor3u0L6dpPYYQNAOvmDUtA4OWOO7 AwN1X7C9JCDVvJLtUkNEoXvejfjOQpAkRE99QLyxzkBLWPIRhgJbo+3O8Ze32rQsSxqu jDFNiC5ibGpgeu1qpjQ55HR9S1w8N3mhgac5OqW9l3AJou2y7D77rvc5IJu4Y4GyzSmK zUkw== 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=p0U52snpk7JlcdFECAlHNpSWlrhg65VvF/bcyuK80un12GL+rfF/t/aK1JdZfhFdsg G6VnqyBLkjMvpP5cXTuV5up9ZONS2vCsEJ/tOa8FPpPlUlQ1SepthqFu3NjjzOKIFwA9 rQs6btqg/KGmTjL7UZr7QKF84B6ILyHaGUIZMyGOYH4rYofNJI2tcHkdxH2/KUDgpg7u mEv5WqhYt2gbOPakMp3GPhFkxwKWIypqbBEz6DlyjU8rZQyaLpM7x1zzpYp4XAHEYl6v I/OB05TsfvuVTG98In9Vp9Ocvxwbi2NzX6axQS0Py2A8OSoD4o7MfLZjrYppWXFqaGti Epdw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=QSSYnt7z; 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 g10-20020a63200a000000b005572d25a921si8265206pgg.419.2023.07.09.20.04.09; Sun, 09 Jul 2023 20:04:20 -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=QSSYnt7z; 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 S230299AbjGJCqN (ORCPT + 99 others); Sun, 9 Jul 2023 22:46:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbjGJCqL (ORCPT ); Sun, 9 Jul 2023 22:46:11 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2107.outbound.protection.outlook.com [40.107.117.107]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0EAEE6; Sun, 9 Jul 2023 19:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=niSo7uJ7zk5LBBsq9olz7S7+BvWybLTrESo7vo6WC3ndvwTwiXuCiLWnRppxOKIlaZlA43MsUnTp3cJQh1GSadNVtbNGpcNRSjreQ9YeZp7l29wdEEF5MIgtPXj3pXZk4DKOQnHON0D1+h+JaTiWEw3BK8SqnLr5MUG5stM5wswnAZDTW/vKAa26vjHOZNMmlOMfcZsJ38lh3pidAoTiTOf+fUjsQK9L1VoFEulOAqXUlIDZuElWxCTlWs8EfnnVpWTl1gQt3vFkSJE7BNvNLK4AG5MDc0RO0GEnVrM8aRpqwyGTYxvqy2A5TszsRibeCo9cNljw4ssZcbCkEbCgug== 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=eIgJr8FBGK7uC71PiPAnQPDyBx9BDub6ITGUBCsE4C4BBLT55Xjb8o4mxJg76Xoft48VUUk6Lm5ZIKYrUIg9O//0FaxjdUOxbQTwWKoK2vNNKPu44ENsA0lM4MFy0wLLA7f87Db1L3UZEzEb7qHzeFpzk8m4ydxPCMYpFzc1S17Ie4rCXsVb6uPw0tjCkeyUZRPfV7yofMwhPRkxo4FWHAHZ6UvAlyTSxdcSrwi6E38VvIPenEJFhsSO+pScfvQe39Q1Z5Uak7OcHIl2O9HF4aj8CSmyG8d0JQd2Zr13RpmeOobzK91BaMq8nj/mvlEXKHHqEjSaReda2ur/OO6L7Q== 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=QSSYnt7zQC200JpLxmNVJiGUMPb5i/i3FEbgwOhV3PyzsuN6+c/uJob+r9DVXAhe5oSfmIpPssjp1OkiOf3YHdwoxjo7oxPDJNUeQc8jyLXTIUtJnM5EYwlU8gFLVS8p+MEC4T3f19JNT/00765UtPzdB0noHCujudIot4y+aJcHUqwdtEgKV3n/IwzuI/eBswLiR1Inn8crLnTsy066TZty7azHwyFrSsIxglUl+JwsGLdTs264f10b5DrYAKK2oi5k/EibdO3OZG7vkKKKL6fBgXf0KZURntrjXBdKWYf+dAM8vNNmgvtLFXOnfKSfCjVsG+zI1eeyS7Yud57svg== 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 SEYPR06MB6357.apcprd06.prod.outlook.com (2603:1096:101:13e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 10 Jul 2023 02:46:04 +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.028; Mon, 10 Jul 2023 02:46:03 +0000 From: Yangtao Li To: Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 01/11] ata: ahci_octeon: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 10:45:40 +0800 Message-Id: <20230710024550.59544-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR03CA0100.apcprd03.prod.outlook.com (2603:1096:4:7c::28) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB6357:EE_ X-MS-Office365-Filtering-Correlation-Id: 4207ddb6-1b7e-40ec-d3b0-08db80efcd13 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iSRuTALeMR66fzbiFLV5onVwXpMDKa3r1YrBLONfUhFoQ2e/y81Oa66ca8PpgCHXXWRoVZTfuznCAcuaqk+bXygObV5P0tR0HkudS329PMNxeu5EQJyj7jRURqG9ky7pIQoY8HzQbV96mwBZMSb0XrrIZde3mSVc8i8Dq6gt74oZdOjt+6rsqXqJcCDwUwX+ghujaBRe/1rO1HZ1lFR0qjY8txFWHSInVn5x+Ylb3fwbC59aleReibSZpM92FcN5j2aEKO1m1H+sZ8BBPaQQXdKqYWdel1rQAc7tShI7bDn+KcZ3HDaSqX4MOw2dkT+kLqXx3ZFyk3rMbPuXjyGaHiHyJPh0o/XDljngzRtAq603fMbMW77VjZ8IhwTjBxpmXeUure60G9sAIMnbq1i8sVt+mPyWeV8VSD+yFLYqa26cRWNMFaMP6f5IffSHWN/7DriFj89FC24vXsrcht1lzqNRxTjM4Z3QxLXfVnpjujG9zqOBZPcWreTL/FjgaTrY/UD1rpWM8GBBDMkEQR6p5Q+UhxBmeq36h5ysc3+XgzS4MT9Gi90vyNFYCL03xBRXU9DpDEp0Qg70GEbksvBJReMyw/aGiZc2xqyH4cQJq6kiyVI9j1Gob9bh2X9xoyp/ 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)(376002)(39860400002)(346002)(136003)(396003)(366004)(451199021)(186003)(6506007)(26005)(2616005)(6512007)(1076003)(83380400001)(4744005)(41300700001)(4326008)(6916009)(2906002)(66556008)(316002)(5660300002)(8676002)(8936002)(66476007)(478600001)(66946007)(6486002)(52116002)(6666004)(36756003)(86362001)(38100700002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?6i01x0X1JUs98tlAgISyLg1hbEWCDby2S+AIPHojXOnm6p+zZKX5xjvSJV9D?= =?us-ascii?Q?Oh8DpKHrrIi0CqvYWpZzXsBX9B6n1lx+asD4bI6/u835AH6O0uCXapCUUvKD?= =?us-ascii?Q?PrYdvzP5tYF7ZuO2zf6+wiYPo0IjruuO3cjRJst3B7WwIExljPBvarQoutK6?= =?us-ascii?Q?UYJAiSIPgfX9rOBn2TroIHl3fBwhfJiqiOtNsspX7lAdPrjpvt7jpYjG/mH9?= =?us-ascii?Q?6j9YaEP8/aAm1GBtg04rr452q1PYmAzcRtTtnjchhmjWoeDmdK4CfdyvBilY?= =?us-ascii?Q?FORY2pLw/FF7GopWO9jANIzEoYhw0YY8ysWCGLdDtGEysRKzuUYTWMBifh7O?= =?us-ascii?Q?1o8B6ciZpY/VirOSj7jc/+cyjM3rOjvz6veZOkY+7ebCPG/BkTaULhNhGmlW?= =?us-ascii?Q?ncni81ETTjACrWqhF2ZxFj+et2lyzlCvtNCEY3UeEME/pKvzMUeTQMWageX0?= =?us-ascii?Q?xG5FiPElOu5vYfBhUYCGWmXEaPHk29UV8jDTW6ShGscDxJybjGqfWHU1nWWX?= =?us-ascii?Q?CI0p7K6Mo+mZG+fXjhRqO4MDXOir5S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kgvmXKEiDPHm2Y9K0iZbtTOUiM3YsIbvy76RlpDIToawf?= =?us-ascii?Q?tmUKXVSB3uaIXrtIZ/8rePyQsB0lYlH9M9w/xhxYFsOCOytFmEJXjOAmms91?= =?us-ascii?Q?stYn1bd15VflLUkUJGtp2LzarGD33jHEsbDquztm?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4207ddb6-1b7e-40ec-d3b0-08db80efcd13 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2023 02:46:03.3078 (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: PufvXvKri9hQyXgVNpVK2dr8cBibCfVObJUP3WPmkZ3SXNOn83i7O/8TglPxVel0dRAHiKntGJEq7uUbDRrGuA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6357 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 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