Message ID | 20230710024550.59544-1-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 v5csp4735606vqx; Sun, 9 Jul 2023 19:47:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlEgvWZTqkLAuQptsxIw07d761YRogJnYq0IrYVSNqDesdzX9fb9+E9sTpSyWXvMNi8pWX94 X-Received: by 2002:a17:906:7392:b0:993:d616:7ca9 with SMTP id f18-20020a170906739200b00993d6167ca9mr7773851ejl.23.1688957256885; Sun, 09 Jul 2023 19:47:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688957256; cv=pass; d=google.com; s=arc-20160816; b=J+oy7/TuobfI5Sap+N5LP9Qhgjm5D+9mhTm0Er/aGRa9/gtqnyTrLRyDRb3HTBZc8b SVE/OAd+D7LX8LZVhG3IzbdC2u0NBnZ58uMAA0ZvZwRMIgIQay/xz2YJcCgvKajsRS6Y 2snp5tCGCziyp6h6CBUFFuxVYAcogN/2GMr2f4fdhfvuJGI2YLgp1pxfii+itt1uTJtC ZRjosXvQas1fQ5DQzTgnZHcxCufUbwe5RuhKsNSMtxAJRmQtRzeP2AW15nrN7Gc0SoeK uM+hm6oxpnkGPY9hMTEKQlq2pOTl699Q22yxc7cjzHNS/zy5B2YxkQO72C5wnwQmKg3s 0T5w== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a1709065e5000b0098e07395330si7283680eju.746.2023.07.09.19.47.14; Sun, 09 Jul 2023 19:47:36 -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 S230301AbjGJCqN (ORCPT <rfc822;ybw1215001957@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <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 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: 6i01x0X1JUs98tlAgISyLg1hbEWCDby2S+AIPHojXOnm6p+zZKX5xjvSJV9DOh8DpKHrrIi0CqvYWpZzXsBX9B6n1lx+asD4bI6/u835AH6O0uCXapCUUvKDPrYdvzP5tYF7ZuO2zf6+wiYPo0IjruuO3cjRJst3B7WwIExljPBvarQoutK6UYJAiSIPgfX9rOBn2TroIHl3fBwhfJiqiOtNsspX7lAdPrjpvt7jpYjG/mH96j9YaEP8/aAm1GBtg04rr452q1PYmAzcRtTtnjchhmjWoeDmdK4CfdyvBilYFORY2pLw/FF7GopWO9jANIzEoYhw0YY8ysWCGLdDtGEysRKzuUYTWMBifh7O1o8B6ciZpY/VirOSj7jc/+cyjM3rOjvz6veZOkY+7ebCPG/BkTaULhNhGmlWncni81ETTjACrWqhF2ZxFj+et2lyzlCvtNCEY3UeEME/pKvzMUeTQMWageX0xG5FiPElOu5vYfBhUYCGWmXEaPHk29UV8jDTW6ShGscDxJybjGqfWH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-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771000044664661313 X-GMAIL-MSGID: 1771000044664661313 |
Series |
[v3,01/11] ata: ahci_octeon: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 10, 2023, 2:45 a.m. UTC
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/ata/ahci_octeon.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Comments
On 7/10/23 11:45, Yangtao Li wrote: > Use devm_platform_ioremap_resource() to simplify code. > > Signed-off-by: Yangtao Li <frank.li@vivo.com> Applied the series to for-6.6. Thanks ! (next time, please add a cover letter for a multi-patch series)
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);