From patchwork Thu Jul 6 12:42:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116675 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2531712vqx; Thu, 6 Jul 2023 05:45:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlE4WQTxGPxKwd85/QOnshBKzP1t1rzgcU6hOyABal8HqWoeFhuMxRbMMN/Bt6eS+3EWHmO5 X-Received: by 2002:aca:2308:0:b0:3a3:91f8:d3dc with SMTP id e8-20020aca2308000000b003a391f8d3dcmr1940962oie.34.1688647508804; Thu, 06 Jul 2023 05:45:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688647508; cv=pass; d=google.com; s=arc-20160816; b=MRWnk7V88s8Py22W6keQseB+nQhe4tDLpoWwyDoiP0U7mPZ6VVHU+Pqv4i0qSPsNE5 gu2VQ0KCERWMWyLXQThimpIGRk8KZrYGQBQMfBVCo/5hnfX6pIn1odu3oFEkZ06Z0tI9 vNqwgCyyEJTWRhbdPWdpcHJ475uhwVIdpSi7/MqUibYNwfTRsfx4pCqlEmgyFwNvKTII eG4Pe6f16wdBotlhurGZt/AGmG2IvvTRjG/ceyfhP5Q8rTCmqX1Z8MwVFTV7A1PFIFO9 9DpiU2LuMnio+eUgHcIhcO9Rybie7+obm2T2CpwYrV6yRvZZzCEjXNkt7DCkZTUR3QqR Pkew== 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=mLeYV6vfc4JBOXW0snlkQ4dT2Q0zB7RdSegaMXivfjOtMDoHTFqXVZy0iAi9zZNqWz s7YKA9zdcjQfBW4tAJtTJNhNATOCzwp5JLGViIoXs7H0BnLOAL2IXMWHzr6gOeptKYP5 euRKHlW9w8KDSYAVfmhdExz2T/lZdQgZcvStShf8HziVWwpOcx0SQqQWWKX0eFbrX1GA iCpLGY+L8uiwnWLKfEi5I/Mxm6roWa4bfx45uYaStNr1i4ng2J34Krn6CEO7KAfU0WAK 4zf4dsBTXto/2zUjYb7V9mkmpInnwRc5SAzkpJuwoDJVlCjf8e38KV11I5XoUqrgXmCd EpJQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=BN69uy08; 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 cd20-20020a056a00421400b00668230a86edsi1334454pfb.256.2023.07.06.05.44.53; Thu, 06 Jul 2023 05:45:08 -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=BN69uy08; 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 S229515AbjGFMnG (ORCPT + 99 others); Thu, 6 Jul 2023 08:43:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231659AbjGFMm7 (ORCPT ); Thu, 6 Jul 2023 08:42:59 -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 CED35125; Thu, 6 Jul 2023 05:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hgQuVwxp50OOpfw3TjR0RYeF5iSjC0xqn2H2vb1+Xes95OlyApTNhSTRNz/mrCYR0KnOzPYXDvYPzrwT+QdG/l2mZ8MXRqEN0SKFP2NFpQ+qM1uiQx64v7Qc3BYH7KxO119XLxmljXH60H7hR9hj04vbetg+EcEXppK2DJn4OvXZUtALufJs/JROHC3+ZzNLkLDJD6Hjmz5AxhxxbTp4TdbzNKpsacitatRw5hjJBTnvCK4q6vKxeGM72sU3T/UliqqNfkTHJNeAiUrUbauUaWwmSPJxxrmG3mG9C6ms+8dy6FBYZffdMJb7f2dfrmJwvLXUs3IQHnng6eUS8Z6AYQ== 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=cPkvjG9mhlEAzKoB2G5G8S2d2ydJnxvqS2R+yFJR+3Pp8FkumY9Qg9HBLe8hUlfCQFCLsZ2t1KJ3gJNa3A8mIOSXCOmVqS2YM5xO7Miukg9vNBYqE1qrgnDdCdrbRTVch65LY+9diSz7KnHv3LVktw2KWKN4g9HKb+GgzezNHpGOGCuOiacMQKqbzS0Sp8yd9aMZErMchekXWWFMNQCdSR/uxJnL5MQa/SWiMywGHSzt5un6qBttiDBdzuQLHX/oJnpus0kRhpz+feV5y2m1j6k1t8B1qN6FTfjO+FurBTD+oJPBtjz1TyQRCSu2JBLfCzcRmKUG+CJ4FZhg7+7iZA== 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=BN69uy08Gm2rVL9AZoz4IXa1YSI64dzvzT7vw+zA69zeGetTy3YJ9MtlM6FWIBlF+rBNODoRVeJw6JQMA/mNmihezS6cUlijdl6NMD1/y9JnWk1OTXA/2D2CmWBuw2WkoT6/VkCxBtJM8eF5+ZSivYq/fy23f19SMa6CC/IzCcyyNuQxKmdxPhETvpiMQU8TWRc77GujJrotDl0NRHroUbo3XWi5mLJ3Ib426RystphYkdxRzG5D20U33e0JE+OM7F++Bdf3n/4MHwbc0p64lkB+MSCM2Z2aIRUPdRR5PspRlWSuZjRQtG/CRW8skdIwVPPpO+m+QnoDSWRN3jfAjw== 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:49 +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:49 +0000 From: Yangtao Li To: Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/8] ata: ahci_octeon: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 20:42:31 +0800 Message-Id: <20230706124239.23366-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 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: cced8004-5131-4146-f100-08db7e1e8118 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: J9DFGqDYnPUFtwI28WJ2yLRqSi049hQdwsBvHb5i0aX5v9Ro3E/UjNPZU87pRyntJnH1iepuablt7ziKZJJM5hfTxeP3bQdYuc+cn22JLHPFsXic/nXFsigUkvukh1NsGxj2XOAbBOcOdhHsxhel4vwsk+XcmD2e810mD85uLtsac61oT1xhrLr+PLTEn3VWc26pW8vNK+IAP62o7OT7k3RjboOJejxJUmFQ5lPjKnAUPZiO8zxSJDRwhysQzSTtoWuZ8ZbFx8xXpk8vOR7XnfuMHmKy05SniwrGl3wKhuyrJC9lNHcHgS5AmDSU/vckGLpHQ9/TEQQrxOf9c4BJAO/UAsmWWFz3hV8+0lCh+PO4s1rX2bpQZccW4dL72mQGP7IdWBiLQcc7spiWlO4a4iMXvxcZv0pIITeJuDz7rogxpnSZ5Kazq57fwvAwqtDqsloZc9CxuvH29gj6zksKal6mhayG2Lgl8yaOAFXZrRY+nfTKOrwJOv53E5azTUVBdckHhBWpQP7tW5E1sW1fsVLzK3i7lXrWupuZOhRM35Jn8WhMN2aTvqDHoLuCbqPKp7a7TZ4dTj9RTYxr0FuVirOkMn6P2hRiOvsCwcaHq14TvePT1yVp39yccZXxu+J5 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)(4744005)(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: evq/hAgWZcNwc/hgeP+P0PlPK4G//1Uw2DDfMMyPS9ajn8XUoByXx49wUntECJ8nczhL4nabLZb8Ld1tYeYaupolSHdNvUlQkctJRnyaquFkr6IQ8kMuiw84r7I8dLHWinhwwUT+Jg2Dclk5+CkmUgiKfxZPwSwYjtg7Awa/CRZfmpQ4FrRxWh5mmj0BL1xjK8J3y626YJbXN6GUoFmdQLuxR11h7z1wsKbtukJJJpEKz41CjpPFKVVBiqeeELadUdp8mbV354f7vb0wRQEhribTTdjYuuX+w3U2DAYmIr6TbXt/aINfgg2mSfsqt+FggzJU9oXveUupkRpDzZ7VJj5Xj5lb4NqMjCreWy05aEruxDvT7FtzZbEeuu8bqbdolVYTOuLKGb5UnnyUYZ/lSE1o5heGD/6vk96wDyzb9iewq65ps+G1ownoh04QZ524FUubCEMNxnZXm5q6nvOnmxr1g53xkpdIbMiUR78VKtTqYPI5mFjT/UarEoW5ULSjmqvmjtt+AG2wyJbN/QNrcCKNUNkFyLqnG97DaYqE7mPvUSBTPRLqVS00sz5Ivlq4ft++jHua+zUxuIfzrpMmpsYITV3moSJqUa5kAEwNGjvS1gf6WPg6wZqHZ6hgEjVVFkURwDmbIaBipfZX+YKzsIYWfWj7raMpX0dSfyxpsju7GHcms09842zTBvyfCZ6+DoDbW+NAeIqHfVyQMk9UcUktPTsq1ksJOOf93rTWARrEXzjCUIHpMB70rEo5g7m5R5EQQzLY1pyl4Nj4zuU7NiyeW+RjVns+WuC3Osy86juTpkVUAsZ8ep71inY+cjDFEQUQqW5gfC8u2jFJKYC38bfkjbF4V9rEou85ggrrAr69u5TsMgx8rkpay8qPu3rjnP4yU1wPhp9jC4tdn7Gm5nS8czpXCJri2AXlZ9B3UKxnvT4imVYDgs3icsMxjkCs0YfJuyrIRoyjbdgXqjdEclQaFYFl8fJ7iciQPETgtiIEqq7Ot94zAWzNoqTIrExjuuq7pytTegj4YtynNpTj/K/OHN3moMdttxwfW7GEdI0g03/U+b9A3vkKN7haP76GGM44ElnHF1G14L40ZsxlL/aTaF4PXvYs9TfG+iHf1jjZWo5b6E5pKPPtaoNOhAaOHakOQnsy+FaBgRMg2+dcpAb6BY3rbgNzs6vp72rsA4NtRVxjiHtf4x7PUUIE8QPXuU7gl3f8SDdRWXrPQ3FQKY1nJexP8uHkaSZbx/XB+karEhI6jCmoLNvvJjQrnU5j8tV2nuFWjyRMZyUQRKy2Cp3LmoiRbiAtl6N+cZ7Fr9hKqbIEyyVT2Jc0tzN8JsqAlRMFPzFFydanJsxEfsGmVDoA4SeeG/DiiOmfj9FrRi9O9IUyqEQqlmuVJg4DDI3hBu95xUEWbve1PiGoe3AWCmpv8Rw300Rk0j3tq+qRFCWI8467EqrevnXbeFt3SSXM7kianPX5+rGpVZ4/qgKhC28i5ZZEiqHGvthhcIdN4KZ7X6XLMctcZVm5Hh2yr/2bXnTUFpyGtHKwE/PBt0ZG0km78+aUlceh94Ngrpdoj06fe/3UPZMgFFs5evaeUs1p X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: cced8004-5131-4146-f100-08db7e1e8118 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:49.0628 (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: qjzEPlQMHcsrepM19uRIlmXEAyPH97qy4ACiLtKhdEW4keIICRKrde23oenndcEfbMsur6VCbSaJc98gI/ztOg== 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770675249937607852?= X-GMAIL-MSGID: =?utf-8?q?1770675249937607852?= 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); From patchwork Thu Jul 6 12:42:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116684 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2535089vqx; Thu, 6 Jul 2023 05:51:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlEm63thnKeQKSHX6O6ErFw3GLgxgbaWPvejOJONepFg9oqnOE0ADSkMB9q8G1Najs9/9l6W X-Received: by 2002:a17:902:bf0c:b0:1ad:edbd:8547 with SMTP id bi12-20020a170902bf0c00b001adedbd8547mr1226287plb.15.1688647892537; Thu, 06 Jul 2023 05:51:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688647892; cv=pass; d=google.com; s=arc-20160816; b=hidN2NxQy0YXoHJ4YQTgUmEUJawZlhhnkNS7oOXBO+LNxTBB868lzHjaujKAValJ/p Iwj0bbnhsTSQT0BAhArrjd40c+EWwLvKLJq57zRdxW8+1UtyiWusMMVUrKSSsFBYMx9z HYw98hUsjhOH/ZagmOIzG5Yt3xwt1qvv9gXxUbuoxW4oRkdtJo2zpk5o/IZUU6zcK/GZ H0Ufx3AQs9QW2CGlWUEwOoPNyGNglPFKqnL5W3gNkLbN5GqlikR/JxU+F9R07WgyYAUb KDmVacoLPhjadD0kzYENgDLOaffgg1pDbJNGt9GPJesvICTd8FK21kHb+vZdmFYPncHG UNXw== 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=tTBEk3ERPwGYe9e803WybvcvhM/4AUThNLDY/pAo4aw=; fh=s3xkjvYMQhLNddnUUuOlQhz8OF3LmMHum4G0PMq03Lg=; b=MvF5qivqmku3mJpIN9GsGhRrHtH9e90GwoQ6zbD8Stt6vPc25JBh9ZOYY5oXoCCYca wOcnearDmOb+CCQGqJnMLk9Qnk+CCzvJy/b8UzRGH/YVcp0XaRTYRDh/sBr1eFReyi7/ CJFeWoTlsIA5p6Gfr1NnWrDB88x73YczZqEAi6KfSLjDcKHrCyX285YxqWTfQrcoNjZC vH0H85p5T5ncT0vZRHpR6cSRAvT5DwGZEChDxhoJFEeEpjE1Ud5s2aK8JRPT0xGj3mx6 cG5+aH7+VzvCLkEGjLt/Nmn75RfaIXuJksNC/7h6eivk+KO58baOkbHF4yE5mCsugHG+ Ye9Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=qUyU7EH5; 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 b15-20020a170902650f00b001b7f9bf117dsi1203276plk.7.2023.07.06.05.51.19; Thu, 06 Jul 2023 05:51:32 -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=qUyU7EH5; 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 S231693AbjGFMnA (ORCPT + 99 others); Thu, 6 Jul 2023 08:43:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229787AbjGFMm5 (ORCPT ); Thu, 6 Jul 2023 08:42:57 -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 6F220171A; Thu, 6 Jul 2023 05:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fNhQfbZ90K9gaNnB44lCVEWysEe6bgKKoRvCzTGKFu76PpWFNBFdFCypgFEiTH/A7P6vJOSjlvuyVtXl/zSidb3aROpteoi01qkn9j9IeRasTTfQwzLuXBz31Pk/C+EOdaUk7xbCMmki2H0OH+xvU2TPM5Htd0FoVBea0zh2I/fj85z1SofQYaB+U/KF00cU0meDn2Tl34IN5J5pv9c7IrkTIIVJxe2GxDS9aAnwn1NvBjqbh+V2aOzgUHDRgpZtGxTM4c0pJz6RgmoDjeRL3rYPGiEB32/qUEzqt2HiwVeG6KtObS+sdPGvGn3fRR4j+Ec3ijaS4wlMcJlVkR6vmg== 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=tTBEk3ERPwGYe9e803WybvcvhM/4AUThNLDY/pAo4aw=; b=UzyrQ4HaDuQvhyGH3FDV8D/DaAl08yt3clXK7UFURaZyBsuepIOdq8i6KxKbN7Ye9StMy8QFHv3WY7rZpqGGAeIa9A2AFda4bZZvKdsDv9DQ414SAAVo5FXlrcHbFEQsFu7QI1iAhkrEwosEJctQv4f/lHOl8y0UuTWUv5bccRiM7YxldU4klDtZ9ppeTJ9HGZmkyRYCKkIokAayGTlS6U8I7x652x/FpiVRDxUHx3x0MtP/gXZSOwK+nXXQyGT/s8tvgFwQMKcmwIM27C+HpFLOC2l7cbfKKdQvya8zld8oE6RFjZy39ya+DXkBkILusNGWXR6SnAI/zNzUd3TOSg== 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=tTBEk3ERPwGYe9e803WybvcvhM/4AUThNLDY/pAo4aw=; b=qUyU7EH5UZWY1lvzpyb4usZDS6bGmrfXtMrJJrXlYZNo+klCumFv/kpiUiGgDKVhiTXE3IDEdvmMDGXBe0S7kMH1n8QtixYnjpOmJ3KOSPlLUKiAbQBbZyeSvVL1zjBFlWfGahqLrFK7XC3hnrnkdQcpITM443QDX9urb3b9pAZ0xKq15xUEEHQX6defDNUIuVeXc8ED1CzRtnz+J0mkAeJPhlHO1qyh05mdDWF0g/4folpLOfF21g5muVX8CS6bWKvSTf4RhhR7WFVa+10bH3V+BkTLPIBUrDNnf6V/8h+4l0Wkvn8jvCAixjhq1ZZwLjSIKAtt/IA79hiNmu8CiA== 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:50 +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:50 +0000 From: Yangtao Li To: Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/8] ata: ahci_seattle: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 20:42:32 +0800 Message-Id: <20230706124239.23366-2-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> 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: cd2fa995-15b7-49ef-0a89-08db7e1e8269 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qlH1uPr0RlEXzB+T7hcphtmRLrwuqOlEDuX4Eb6j66sgcw/bYP+gwvzZnjVBq6uFB6S7Mjm0cQEmtHKK6kwUwLVHE+HwsWkmQS3bLD4Q9XIqKnSoTxYRda8uFajP0I/r7BVCKyn7sJpntwihz0RRm96ZqSuM0GXTd8oaWh/mFcKDNHVHfOPeTqbbNPvNia2SaDptfgR+A00q/tOq7AuWW9hb1bHSdFQnV5F1Ra2OEL3iPjoO0BccEre9bVdNr5KCcvdZfXyzHgwlscdc/DH2E0AqoZ2ol1SS4o3cjCoa9Ou00FCN9BsxwrKBG5HKt/evge0jYCw/NjgQS92yEwYmOcRjGuaE/I9WdmbAma/qWdPKGMEZK12bHX3q436EDdrdcdTXsFdy6VbVwn4qtOnRJHSbVn6T6tsGXrwUCdg/aeXjY8xqeQsQqjZA859zy0TR7mSIyWpBrZHE9OHsukQT5otWxyxHjTvdvy57rGum3FqXJOzzaIKXdKl4lA6T7QqyKfca4q150PpoUTHcEfV9oH01o2oW27LghJLD8OH8KhmJZJqz41VmWxnZNDVG3UQ5Tbs28OTn86/DIq4mNMwlZnH5fLtBeOBEd7Lb9v+2MITd8ov8iX6GlY+rQWz/vYK8 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)(4744005)(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: LlsSH25QuOpf6NLJE8S6KC4AkaBO0Z2FpuqgQkA0YT6QguEAerasXOzY7e+kcp5VpLhWpd5dbXNZlUqtOOih+oLfheYTinLj1jRMT/1XqnAh/VAsHr0aLvuRzIrJ2kk6/C+no0ulDt7w8zahTb6BOFOxrhlp16qbUhexE4h9sTuHrAS3whNlAMigs0oWCXYvCdxf22gr+aY6xDuwap8ZiCevKgnga0+cCX2axzbnAxsWG676gMUmF5jWgWbxxsOjPkMqTwarEkhuk5kwf+WFoJI1mXZ42HJticFgLiufEG64aq0xFMujldDHnG7LPDNbRzhpTpCiQBS9NvI/MNA2wP3TuWY3ccVWbnTqxhGjblmZQlOUuvXyIrRuxPNJ6+JAC/Zu5KB3DvAfglsQo2tbYDt+/MHw4fYprM8+MC/XeAjOauqXJ88vPziioSlOcaBithig3yRMRwlY53SRrHPz65sNpzpQHXwkXnyvhtPAht5So1h2qnVOyJIcHio3LACbU+TLKIe0OjquDaqf9NW422Zer2A8LXKWzn5Tm9prp8AEmxhgFRMRk39yfz+WBlSmoIgTLB75CTKyUok4XZ1wPJEY18P6EmuSBrlyBOpyJaPN959ESi4YQK+e3mR8hK/BmApkHljo3SEzUHwx+r0+4sg8gbZPHZNanGW70saFWQUVKELm/GEqBgqjhWco3N196DBMaKUx9jmtV9+ZgpIIQk/9D+cR4HGjOqedsyl2YxPu62WkZfTdCaQihr9T/0ok5hNPPzjZ67eSPE3uqKovgjN0ci60clJMLq4P1pmwUoFW8mLQdrOgco9Pp+E+fqdThNk/Eu5bPCg97nzjYgfkHGwG0lXkk66L0QG4bGWxSyKFIw83Ai9r48B/yJIOWHG2QViwmNI5zrUYRiCxTofXS4Ys/fa86OYwxD9FGOoeA25tfk/nRKVBSZN5/tq/q2xxHHOd2hlQlWHqJt3oZgauZjrqd3iB3OOLYG4674T+GRv1hA7H2SDup8MAPuqSrgH1GZ3biHxa202x+5iJTfyAQohQM8ETmwOI36gmlomiE9g1mkXE6a38pT/Qzn0ZEOTFuClwUvznKkjUxdkuBmdB65ix345FX0KL9syl7vfCSwnBGlXEfbkDkgUqWS+g6CorBEtPArImrMdhB6ox7GJoibTyWR1KxzSdSaPBXXQyubHT3Mi48CqARgBKAlI+nqeOx0Xp4aDwzIa1Kj+TN0o9Jdm1v43U7j3LCXUqXJdJsYR6jBbWrCxkI0ipxFI93xPB80iJR7CVdhw99C4TOWIuKu7n+uc8WmMSxbPrhgCbcUXyz+wSnISX/Y3cdpql/XVG/lVoYvH64s5zDJDP7TMnY4axirNOO83LVjFLqao4v5s7YrqA6W0l80Ltcj+QvbrlfJnCEaQh/Sd205DyQb6oWcTM/F0M5YcfLY2lKC+xueuk+A7nIYyGOyjYmr5pH7fPTLO/gjtrCLbnAe/EubN6BqcxwI5UQdoRoabBnrfaKIbc51E/LKj1k7CpPAK8n35DWXeNqJOxD5rnX7QzAV8AVxeF23umWK7Y6aLBqrIW8PebDMnUsVB3CnJSaiW7cj8D X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd2fa995-15b7-49ef-0a89-08db7e1e8269 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:50.7034 (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: zQHun7nelhsn+opAEsXFAaz791R5srfcRBX46jVEgbt09F5cveiwSirNg/WD1nDUTek0f0Ux6j/vx2x75AlhtA== 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770675652691417884?= X-GMAIL-MSGID: =?utf-8?q?1770675652691417884?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/ata/ahci_seattle.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ata/ahci_seattle.c b/drivers/ata/ahci_seattle.c index 2c32d58c6ae7..a64c9c4704cd 100644 --- a/drivers/ata/ahci_seattle.c +++ b/drivers/ata/ahci_seattle.c @@ -132,8 +132,7 @@ static const struct ata_port_info *ahci_seattle_get_port_info( if (!plat_data) return &ahci_port_info; - plat_data->sgpio_ctrl = devm_ioremap_resource(dev, - platform_get_resource(pdev, IORESOURCE_MEM, 1)); + plat_data->sgpio_ctrl = devm_platform_ioremap_resource(pdev, 1); if (IS_ERR(plat_data->sgpio_ctrl)) return &ahci_port_info; From patchwork Thu Jul 6 12:42:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116674 Return-Path: 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 + 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> 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+p80Gcky0XuoPIhr8U1JujzyCGKTFp95pYzGsGPXy1LReF3Q9Pj34ChDrAm3GS8fgo5lI48FZaoSbLXuiOkCEMYU0S9zgRkt3Y9FDDsmm0J1N3yrQG6nzKiaqxIdDJdyY0z2xlKW7WS8cjLpeHZte5KRL0opezKwJ72CvSqq4giU/mP50HHtLA4+g0Y0fakaS4YsCFtzuM2bw9lmUwjHFOatqlugw+s1rmRfFkRrnRAtOxMRpploYPyq5e4Y3drSJEiKufMdst19wfrU6CQKcV1UfMLphuYJL1/p6ciJAmzqHKXC/RYRRtPuDzXw9y2UAOaZtrzAS0hpahA/3TiYdAq3vcLlAx9Lum6waAp8ZLeoHbPIMCJQ7/QmxKcswIKs5XCyP3ZxT1VXLDfbwu790zFPENDRhOg9MBhArWZDmOMovHbnbqv+v5aLIDy9Gy0iyZc1MLp5xWooiH9qjZxw5+5rorj+CMAOyLY9qiXAT7DbKgTq3RlMU7SEp8x9Qq7AdHvzfDzzD4toC6Gi3FL9rz8cY0RwKYclJT587BxFVsXjRIn0Fp7pDRp+899zXgq7FXBYTgn6iQjYKsdo+QJisZh7YGNasCJIGEysoSaVsuq+7aecy3L46yG3ZYqTzpWWJcFfi1lSqkoGFCYqzHZahYDZMMmNf9gG3wlttKCGT+3aJ/cieod4SslE3tRilqm+zQypFsathPAme1d6i4BRwD/07evpXniRQfYKD4QMHkboS62DI7PIDdGrBCqjetkOw+lLFa2/aOlny4RTjJAM4Kr/mbJw3CojskzA8OWp1SHI/2tyym+a6VKOCgLUHllJnz2OW5z8MQ4ifo76/SbqvSZORYnwensBccIXkXL7ahLpKV5wXV4+JvA24t3C3a2Ok5Um0bRde2sdtlLWfCva3X0jGQxCYd/vUpCZWuG6CE3iBxlcQD5xCSuvDXzEqW7Krf/fM3OqKyRXk5Jp1O1OQAplfPASifnH3X/9kf1XePW4JbipBrX2OjZeOOWTAiGr8LRtkWSPN+DmXATFZ4fU2eovWOMlNIRucsAPCB8UqezRAhvllOIer7q3YfDjpJvWKttypAuuS34+2APlBkTjJLBkEhhP9hh8BZN7Pnhl6h3TRyKDJgLx5IE8ApE09mPXzIZnIjpGTlee4Riei7TdanNkC5b085ltzlK8cNzuZ3sT+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: 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?= 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); From patchwork Thu Jul 6 12:42:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116676 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2531707vqx; Thu, 6 Jul 2023 05:45:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlFzpDXebrEdHc6tfmkoneOL9iBimT+fVSQN18368De5LmNY0+NVxiLKByWfEBeopNBFBctD X-Received: by 2002:a05:6a21:328a:b0:12c:efd8:de4c with SMTP id yt10-20020a056a21328a00b0012cefd8de4cmr1475330pzb.18.1688647508420; Thu, 06 Jul 2023 05:45:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688647508; cv=pass; d=google.com; s=arc-20160816; b=cuj8NJYrhvgU816tH/L+JhZu3lIWEyg2mjxibcr2mqJ2lGp3bp4ls/cAc4iNYZ745S H4FTzP6x/hx4Yn4SbMEkoKDAyu/a1QGm1VwnvIwnkOTvMPf7mUFylxdA1kbgDOOniL7r J1eMfai0fIvsjuiPakbQLiDPQRfQNxvtRjLBR/EgXen8KzhnzQdisPu0QYlHd8EC8Afq eecd6Gtyh/BAxtnvQ9P0XNYlMXWJqBHAZcLfgvbuXYXMpUnZYDj5FSifN4jIsJymF00f PUK3e1g/SKBI8HGCcojj1GgqQrMwYkgp6PAAjfXzN1mY0ATFr6u2gusr6ApOW5JvGASf cORw== 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=PsBaBcCLU6Dj27gwHjzD8seU8IaFnv36frgHmn3O0BY=; fh=CYMin40vCuU9L0tkgF5prAAh3CkrXukp/4w1xTgC5ps=; b=kvdUJKeIk1Lx1c0kq4Ot2SVi7P4tDuEhqM1I/TxTi8NKzRkig4SxSnlUDmBhUraH1c P4GD7UMktW/WdQeSoDTNB1iVnHtqfa1IUGjyvCAtzIR6WTxVngsSxmBpQ+B3ex7eu9Wi OYtAvjmgQnDZ7KQ38BbNe/cvSmWlzqCIGlCMohzhoILmrRO7wTD+o3lVuenKYSDmgpF9 nbhKIb2299BvjACAr7BRVyT5K0wm3jrzOGBsqJV7dpnRLUU2Qn6Ic1SmD1DJLywEI3Se J0dZe0/epyuhXiWVfuF/NRPxwf9EO+wZy9EFfQjC2LLKoxf96uRgr+Js4QqITMck3aAl h1Bg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="Cm/RN3Uy"; 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 k5-20020a056a00134500b006824e0fdcb0si1481050pfu.98.2023.07.06.05.44.55; Thu, 06 Jul 2023 05:45:08 -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="Cm/RN3Uy"; 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 S231967AbjGFMnJ (ORCPT + 99 others); Thu, 6 Jul 2023 08:43:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229787AbjGFMnB (ORCPT ); Thu, 6 Jul 2023 08:43:01 -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 012B5171D; Thu, 6 Jul 2023 05:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WEAPb7ynb5rH3lYdDc1OF9ArInsmpVkSDL+GHf09VGmBE3D16XajBshieffXFPzCQEHuIKV8e1IQsNLx2+3CvvHVhmgHFK40EDVVtSnu7V2sOHVkFb5fZM3roEnne1qh2hu51I5fr//Uav8z9dxIf1KmugUbif4X5UFJ2eUivXV/TCHrFdz/fyjriff1QbGDBdsZpf7ZL5eDpmW6g+ewdcLAe8TDkUQAhcv0BFYcZGc/4YB+CCbNV0JSUh4FLat0cdoFq6d3G4cU/BHpjjmdk9l/7seJC5upVIwSdCSMGuWjVw/l1a+g2XO+SMXrTJ+u6XmrTO1SXiorUGaXISOXGQ== 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=PsBaBcCLU6Dj27gwHjzD8seU8IaFnv36frgHmn3O0BY=; b=G2HPFZwj9vykyap1s4J3jbangWyNnqzJ8sXt0HmM81KWn9CgtQZfWz5ANA8RYnwzRkWPhHWf+J5caTLN4vAKXqZhKD/gdiYteXYqWrkRpYZ9a97kxSbCjzlflJhtPTMWot76OYPN2r2jOdNvnUWyyOXX09HkhaAYNle21PWhyyoXILVityJQUlRfBGcH3we/4Ns5VKKNk35L7i0CAB+3hcpOP7pcN6mdptsRBXkFiibAcmRHtBX2O+H7wyhTnU1PuiNTGlBZ/uzwTSpWMsz1O+9W6AUoL7IFLFxjULeXsChmFYuovefdpGqZeEASWUZUjnPRSlELT2hTGzvLgVz0mg== 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=PsBaBcCLU6Dj27gwHjzD8seU8IaFnv36frgHmn3O0BY=; b=Cm/RN3Uye2tIbj0WjVj67WvGir1qMd/dsCPURhwF6yECwWZFSQN7WN+HZ5rGCRZaqM/9NsTYffXWfL1GumJ5mm2zigg89LsVfJcllZ72AKl4HM1bGC7kdGhCCoNn+PbUA99Gi9L8kHASKtYXvef2z9Pd45xx8opDbbVhBwsJXE+cOW95dhU/jDVb5UazUP+hyVcLPkkEqaQehaz6piZlu25zu8Ec+1+MuoGGuZPHUqYqhQNshWG8dLVVPXRk7y9ljW56QN8JRxKouhApEGAB5gxCUxDmcvcUtv3IO7QybSjHnJoGFuFJQdqUF/wXT8YFRofr8dg3zq0z50w9WuMQTw== 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:54 +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:54 +0000 From: Yangtao Li To: Damien Le Moal , Thierry Reding , Jonathan Hunter Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/8] ahci: tegra: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 20:42:34 +0800 Message-Id: <20230706124239.23366-4-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> 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: 7f332aa5-b760-4cf4-22fd-08db7e1e84e3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: an4nptCVga+4uTgGrnfeZFDr1tZz/bxJycUwYo11/GuN4+x5cm4bI1nZfFs37DMzUcAUCLkSrCybGKq95FvHCWDzW9E2BcnHU2F/miaCUpnHNXPfSd7xGOvBWduwLSdhhJNs1LLJO0tOw4dg+yV5J22PQTDd4HGcrN4kbXu+BOfpVkmj1bblZlI6BLewwQGzxbJhhcM45ew3moBDpZWBbbI8ecG9MzIIvdM/rAoFrFT97540LQrIqcZFyQ+ylqZPPX25DiBZ2Mm7egN5JmCRUCPuVcSYNMbs0eGsJaRqwkNUjS84MSyLkGG+MhylhgCGEYbpcWFGBFtE02QbbCxWZ6Yzg1S9x7rggeZspzTRlRCzOWWM1foSNRNQ+88Iv61QhsQ0Cm80wgTIushKRVEQ2YlyRSLLiVm2rBXihAy8xyeqU3bBtEp41p9GO5NLKH3GStyVW4D1Y9DART4w89PDoD6S2hXY+0ql3zg8RNtbN5CNlVwuExFbOt1DWwegQFudESrYHdpXxbsZvWuZ7VIJoWrw8pqF99vS8hur7HMR+DfPIihekMLJMdpz+INxKAvFOUyB0ACaMIJPUQvpmRzlHKUzZuMpERxAvYpOtby6/G5DcX45n1+hC0WMK54TBB9t 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)(4744005)(5660300002)(41300700001)(8936002)(8676002)(2906002)(316002)(83380400001)(2616005)(66476007)(38100700002)(66556008)(66946007)(4326008)(38350700002)(6506007)(86362001)(186003)(1076003)(478600001)(26005)(110136005)(52116002)(6486002)(6512007)(6666004)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: raj6jdD1fFCif8YkHV5BvaAHTJea8svQXL0qMxeerHk+XszrxKlc1qsQUm2VPRnq/uLRMGk9P3O7HmUttg7DNiVQlKchZix1Ndb0zI5EeEYxnEGle2/I1dvICVDYda5faJos/e7+So+Y0ec8pmgcIfeHa0CLRRidJCtnYoetQDs2ttJl12OlpMyuP8hf4Jt9KHblwa2HAA8ZotU0+hSj6uTyzf37jmpeWkyC8WjXrFcawuCK+MPi7y73ywA1RaLlkUzBnZ61wHauSSiwTVK7e4A6rF8vRzhhyVYvj7cjq5hDxrglFV4iZX7jdl6f6up5yf7wntNTK5hhPAopZ/UeCVtUAXdWJcOl1CTCqYMDkXv4pyhxTi1wIguh/+b8N1Q2Q/PUkJDuqrOEOnOgwffeD6j6BKlQ8EOmkPQp2Nwlw0TIAnKTfjo+BHhncERitP6GPyqULOg3TGAp20s0Kj3zrqtBHEjFPNxWCCCUQnsMzAiJQ+ZhhF6vqfjvY5Whw+QY2zdMI3Lm9yu38E7nK49XYWMrpguwSz45vc2crS0FqclwoxzEfgP40re76J3rr7j2rPLKvFb7kRF27p1JHH8M5DelYTvqGu606Rx7fCeXuUz6fvbY3P6kKlKPdTkOn2mpnh4EW2tsw7GMnKo639vJmLQqNA9oz18OdpzcaqluQh9MlrDoCAQKuidPEuzN8WTxu3xvzuc6g+B3O+ZkT3XdtgZpZLYl4XHnbNuD7tgn1G2VYBKvZL3ljnJOcpbMBcCqTTC2hhUDHm5bIbF3820Qn4csFNHFnIMiTw8ZXHnZis6VzNb/snPeJM01h5lju0wFAI1wX0yRyHxfYJJ8ki46yUU4K2yWz1BWGj8GKfoPE3X5f1I2iff9wLhH3GN4atiji+RzNH+Zh6C/0eU58zH2zA3NlyAdesniHT9BfjMGnZUVn69x8ZxrX1j+jeawBERQMIWFqwiJIFNKMIBqKe1adjtKC22kUqhvNvDPkfzECE0sPqCNkfQ7uKoGYxPgeITuWoTP0RGuHQp81TqVEdkN+y4gORwskGDGuMn04EyYI3tlrR2ZAkvGtBealKojUfJE0ohhmRv/Q60Cbc5gwQjX5GFIs5TSQCSA4hJCP3DnaH/4IbxbGRrk3/3SFi9V5id4LKSpg8QWfougJbjy84Ea0pUzT9jzs5ipWt03n2U+nwc/8BqywwL2sM3XgdEd4Kp1niQyd57jXOssFkJQDwwSpHeDXaQkZ21kUzxNmZ1ST5HLEtVks66Uh5qOwvjSX4nJdNz2naDl1V5Qijck0QH1YQAJOeQ/OW6+uKShQBJ5xwJR7273qFKcjsD8RZ48m3CN5k5wPi2ob5Q8iuFQuHKpjTnJlI0iqX1S1ROmjNTNyhWQy+rwYIxU7wzw2gPcnPflFZkhsVwdzD1Iz0osB1m3cqpHCM0PnVmrpLx4bkm+T6Mp0iwNMq91qCVoiGCvRojtiUd44KjrSp2oXD4tJSGzNU0YmoyvTr0rzAbjYzD4bP+X+TGARI6zf1uRjNXTiJ+rK+XKFPLYPUWjy0VLTRJqfWLf4pNfyczY9Qe3faFOr0+4FzfRQ15vwi24hJksfl6g X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f332aa5-b760-4cf4-22fd-08db7e1e84e3 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:54.8603 (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: On5zjJfPEnrcnDW+D4KlQj9BsIIhy6ppzz9B11EHSOmWPcy/AJYQlh+OqRM0RZw591hOqMox15C8gUCITiJOAA== 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770675249784271107?= X-GMAIL-MSGID: =?utf-8?q?1770675249784271107?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/ata/ahci_tegra.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ata/ahci_tegra.c b/drivers/ata/ahci_tegra.c index 21c20793e517..d1a35da7e824 100644 --- a/drivers/ata/ahci_tegra.c +++ b/drivers/ata/ahci_tegra.c @@ -530,8 +530,7 @@ static int tegra_ahci_probe(struct platform_device *pdev) tegra->pdev = pdev; tegra->soc = of_device_get_match_data(&pdev->dev); - res = platform_get_resource(pdev, IORESOURCE_MEM, 1); - tegra->sata_regs = devm_ioremap_resource(&pdev->dev, res); + tegra->sata_regs = devm_platform_ioremap_resource(pdev, 1); if (IS_ERR(tegra->sata_regs)) return PTR_ERR(tegra->sata_regs); From patchwork Thu Jul 6 12:42:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116677 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2531720vqx; Thu, 6 Jul 2023 05:45:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlFQVMJLVrWSXIpstmlSOMkl9Vnnao6X/BaT/vuzy3xZpjfHvSm2VaolgSdzoHdMVU882soy X-Received: by 2002:a05:6a20:9144:b0:12e:be7b:a4c with SMTP id x4-20020a056a20914400b0012ebe7b0a4cmr1375364pzc.49.1688647509059; Thu, 06 Jul 2023 05:45:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688647509; cv=pass; d=google.com; s=arc-20160816; b=lF9K4haB4uSv8FrZFsYkSUjyz3nyr04HRH8uKl8SThVInG1+E4gYDK2Eqz330jL0nV ZUHu1417Nr9Or2MgFqmGlgKjfYU/FfV0zgncXzwF6MSdx5a5uTqcEoJJtd7jUfNg/S52 TxZkVE6xCk1MGqvoMjBEofL3pKOCs+Ehq6QEYBTTb3VUkgh918xY51M99ibjoBzGbdQk DCm5ogI6BX5SRumqo/EJ7chSJJIvkLcsOc4k5PI9rHH7hR238xj8GpW2nqYxwWJTc72K eZgfGHzAjyweRTI/KcymVufH4a/1u4Qin+rvBCNPt4KOhWz76lWlj9VFNuJkgK2BycxT IB8A== 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=/gJ+kc5zqXxGzHZ0TgeaDNa6Cd2eGtYLUPZrc4Vi/oM=; fh=+mYli40csuqYWk0Z8DaHn2Zt4yTlX+r+uVJkhXS46f4=; b=IwioGuimZw1+9QYi3m3ZdSUQ6lWR6whX/pbzm1A9j1c4bjLQj5hZjihQ4mgKR8A837 rg25kemFfa4IeR9KEdGXzV8s+Co2bYRYfIIW4A57U1Vdp0eWBskHGauswrAjnBaWjCtq oHg5lqz7OEGLgF/2DOsI1RfZW0QQsBHS24mTNBsY90oijgS1oo5mEaIouBNeVpjjXnhT J/G/tzzy1EE3JTIGnyn5Opc+TtDHAACB5Dv99rTSljAQK6BaZiHvUpJpiCtv6NTHXd+c 476RP1TpJBniOW+vujSAH7tt95XN1beV9WbiurCYh0KrOLQdq+1FEHlH5O+BPJwgSxM4 GyJg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=cIedfWcQ; 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 az9-20020a056a02004900b0053f0d8ac4aasi1571642pgb.18.2023.07.06.05.44.55; Thu, 06 Jul 2023 05:45:09 -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=cIedfWcQ; 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 S231565AbjGFMnb (ORCPT + 99 others); Thu, 6 Jul 2023 08:43:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231826AbjGFMnC (ORCPT ); Thu, 6 Jul 2023 08:43:02 -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 2897E173F; Thu, 6 Jul 2023 05:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lZmfn5Cc0cyXoeZpNFfKOfZMAMTDDjIaBna8Vw+vWBtP1ZNm3UWTUJWw1NuvhmaTZ0p2x9PhpoIfogZ1J8klXhqzZX6DJVbyY2XvcMf8pgukH2vvt6vep1mNcnlDsiJOGO3swxVAfTWGramSlKhYALEiqlGOGwuBoMyurcFiPhmFfmE11onDOhqu4pQJN1udw0Xn5dXu3NzKAH/IySvGRlNUgxkipVKvYy+u1n9C4dFV6n8XLV+/vueKnVRGCUyfWno+yobAIx5kn20cZZEO/bOCFR5atk1tX9iFTee766P+bP+pqL+31zShnIz0IGbNSutZPrk2Eh+pCqDpNEEhFA== 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=/gJ+kc5zqXxGzHZ0TgeaDNa6Cd2eGtYLUPZrc4Vi/oM=; b=QVkI+v8cfwj3/V+6cEDR9hUX+SmkvtvNQiX7uvNGFAiwsJC0CQgf+843GETOrLq4x3J9zZWm/BV1lHmV5PQQrX2AD7xmuba/SobM7WndlzHgNkF/MzagdXjO8zpQT9xqOuAAkcx9ziR0dyqcOLR7ZzmUsHI61tOOUK3uV7GLqC3WE7pN5BE0wl1tU+7t9jzGZ51TlUGCiFO3uHnsFObzWskzIKJFt3dGYxoBdwZZETqZHLAmj3AnDVFSZiLzxIP3ep/qMJZ1gj7TznfbUTJKFDyhplFu5ixcv3F9dywbiETU9uRrFwfTmwemyxzgkB94Pei0PD2PYox3a3Mdit41dw== 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=/gJ+kc5zqXxGzHZ0TgeaDNa6Cd2eGtYLUPZrc4Vi/oM=; b=cIedfWcQNTqTuk7YSN5lMk2k9LYkRYOnbnC9jT7OwKEmyceR1k5drjkCBYInvlvMS1UGhjvjUFDtMb5FvKoqKmvF6X/WFHZYsMTSOEFdQPWhQt10fIiL5OcATdZO5vqDkjHc73BUi0u8+aCgDflLZG6onRSq6f6x+jnOUBdCwwEW03BljDq9v00b/SVEvfNj3lMBASOh7CJZjZdRHALiQt2slO0KVxjBRokSqKOmuqF742ZeYHj1FYdbbEc8b5ohAParwTsAKhtCW948ayOALq/UHvJRJLCcrDnS/h3QZHT6o4e+hku2o2P22tCLD9ntA45firccLPU00edV6KioUQ== 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:57 +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:57 +0000 From: Yangtao Li To: Sergey Shtylyov , Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/8] ata: sata_rcar: Convert to devm_platform_ioremap_resource() Date: Thu, 6 Jul 2023 20:42:35 +0800 Message-Id: <20230706124239.23366-5-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> 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: 28c83ce9-53bb-4071-c66f-08db7e1e861d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5MK9lrZF4LInQcqL5GLSUQ9gEBuuD2WZwJNYQWIjUEG6I3nzSIcjJ9KZo5AgjiT5KXkFvhUfoQg2qYuigNhmrXwyRiErEOgb+iTC7j0/GRlhYkeM3UM7bx2yUPTOlj7f5YtNdFvl4WeEgMUin8S6wdsdlBuYE1RbC7TIHw98728AHZsmxIYfhmd7yjAKagsGjCCyNV2yE/JEuR66SE7c3sssXka4sMmV2X98M4dsL7NOISBW4YM+wj1cv13ufHeKJHhGVCkG+xAp+es4MsMQcJHytkrBwomnYoqSAECyKwkA5MSWfeC34fd3ba9Z+y6pBqNae1kCN9jgh3SkIVczE6NVBKVhosX3o4uuHGxc5PAzl2zrk1DGHrKGTrBsKG+/Rq4r+0WeLO0bXuNC9zd8h58CMGA3JrpDhA6MKuhVJNGeNYSGSEHSE/F9xgbQLZFPLGTaeyBIIMdbGUEYxNYhzwfFwp40A5FKvWxF/7xK8Z3S0eD2wM9RCkRXSe01IDOpRf4mZbhvk2Alj2CCKCRgGfcBJgI9E5FghkJIqGWyDHsCrPhBmfiiT71SQN0EywZAokbMIhVsxWd8UNSNdtrPCkublezjFVoih95vNT5lPMtoex5j9NNABAhunoJ12H7e 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)(4326008)(38350700002)(6506007)(86362001)(186003)(1076003)(478600001)(26005)(110136005)(52116002)(6486002)(6512007)(6666004)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Nvj2UbdWBq2sXKdTR4/XOMnhHPGSgYa8RBWco6B0FWwT9fQOKWbGzlMHSpayoiutuy5alut/AofYt1Ev8W7BLhtmZzoNbJJzdQSL/6GcMZzHNwfuvvQsvYmpZNE2xUG2RsTiylsV7R9ef18JVU+wcrr9vtdOCgHBZwwufnyGpE7T0GIHdWuaX1HjpJXb4sXApT2G3XqCadzkt4n4AOIfUEdS6G1Ad9YgcLeAMs3FzXs172nw6MhAE8MZnLxXu+cXri/UT6s1gGg0CgQctymTY3dFGMR3+sn9GEJZASDcxCnQBZR0ghlqiwmqYt0ny/pIoX/wHIqKNmfFoinBm7rfAnQ6KIVOgVx6yvaaQxvH30yCHrOvPWQrdKHfZLJi4qb6aVtDqu4bgTri9llQM8iYzEjtbAKGyLKHomROzewT/azA7ehIJo4ipkbDQxV0B749X3vw5yWC5Lur8eATH8+cdN/wNWCbyCH3MZ+8QrHj6uqgq21Rxzek8XHjYkytugR8Cb6pKcczciyXq3LkfUkuyng4kiCcBa1me0LLKGKYhSGucOQEDg17xKb0d5GE+vcSmAGPJr72eBRKVLxsFLcTexNfOhkhhSD36TPZKgEbiUMvcVn/MLa5iTx9bbEMkdEZVLpQJYMV/a+zSyXwKMNvpWVMbmSOd1Pq5LEadi0jwRk1J5bjc2MkjxULgdpZ/eSgOrfnJmmhItNv3hLM6qQAlB+lwfmsWKuKUENe/+3vJWgmL+PHkb9ONiIBgYWMyPXMEezbJcZW+1SY8c9QyYYzn2nd337D5nqcmm3YHC+ah7B74bdbubQXLgcWEYMZZpLPxbh9gqEdfRSkYbbyI9CSSnOC4eFPb+5srbQVimnJDxvIQYJhAQlyLTr5n6b3WPUeS8AMJNaLKrtDS6zOYTAjNPWaU2s+2g19pOdiDloAYJtUPq+kZ1vnSdjRAcbgXGBMkE3oLL74JDldD/qnxvPhNZeBbiEeYSLs+kejdE8JuSmGNNK10ORcnts26FKGQKW5rsvIjWMn3UiK8l6bjLEmeHXq7ApjDiUgn43BBxrURd4JwkolhBluWJsLoVUq6A8fcLdVzZPd9qBsFMHl3hjEEoGCWYbwj/6FJuWGMZl+JDYDH/7/A/bAUaqv3ZD5vTy7JJx5G5DaOXdqgzIyStLcxZcrIk9wl/NvMS29hORbNnAteAzpKkGUmOfsJ548Ns/bZ28arxvqA3HHSAX10NCNcSutQ9n14kixcChZELt+SIh1E14c1ynDShg0xN/c3yoRwYJVQyDEbWCsoomv6eVPTyNVvly6wNPvhouASbi5zNWkxqtQ+2RYoj8ly3iP/aZH4MGEzkK+Fyj7LYtKuxfeUzR64BEMy1qsmGTzKa1f3MM/3To+YqMl2729L/zhaLURqfVm6pIZdn6MAuZC8syGat41RswNXmEKl7UculeFENLaUbCKSyzQRctW4FAObnHJ3oZNLSc8NF/0I3OaH+biGvzJO6JcZsoggBhXeunsiZr/NzRBAoKToHzgZnR4SDLO4peBfblw+eA6hobQISLu8LkUfUsXIKvzo5evDByn7x1R3fChvld07TQ5wQb/VDhN X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28c83ce9-53bb-4071-c66f-08db7e1e861d 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:56.9640 (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: Vh/nnjHe2ikVp8mu+cN8lpxDtAHjdIJm9s9vyqbga4Ji/lDbACcKQdSmWvFu3RSHbo3oKZmHe07d6vn+8vQ4hw== 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770675250528318853?= X-GMAIL-MSGID: =?utf-8?q?1770675250528318853?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/ata/sata_rcar.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c index 34790f15c1b8..63f8337c2a98 100644 --- a/drivers/ata/sata_rcar.c +++ b/drivers/ata/sata_rcar.c @@ -861,15 +861,11 @@ static int sata_rcar_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct ata_host *host; struct sata_rcar_priv *priv; - struct resource *mem; - int irq; - int ret = 0; + int irq, ret; irq = platform_get_irq(pdev, 0); if (irq < 0) return irq; - if (!irq) - return -EINVAL; priv = devm_kzalloc(dev, sizeof(struct sata_rcar_priv), GFP_KERNEL); if (!priv) @@ -890,8 +886,7 @@ static int sata_rcar_probe(struct platform_device *pdev) host->private_data = priv; - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->base = devm_ioremap_resource(dev, mem); + priv->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(priv->base)) { ret = PTR_ERR(priv->base); goto err_pm_put; From patchwork Thu Jul 6 12:42:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116678 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2531730vqx; Thu, 6 Jul 2023 05:45:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlEC/B5vHVBfj7q0tbHluHDMsbeRRCbHimxgADPX9X4i6wAw5Imxxd/eg0U/fus1/UF9xpBv X-Received: by 2002:a17:902:d486:b0:1b2:1b22:196 with SMTP id c6-20020a170902d48600b001b21b220196mr1826687plg.48.1688647509644; Thu, 06 Jul 2023 05:45:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688647509; cv=pass; d=google.com; s=arc-20160816; b=QxcVEwG2tCOnMNwSP+XX6U7L6JeWeVx06kyv4kxcT8ktQnISWdI2eRMACzbV920BE1 Guw5IqNuTn4Kqah1fxcYYYDeX/yoF0dGGUN4VoJZEeYKYcaQGXhNi5x54QKhtBDFihYc IRvjVm6SGx2gkH909HECVDbdRdth6p8Bnnc6nSV6PfvhwJfT3YrtdBVTZ1EU3L9WoTUe Duwa7rPOczXGYhW9JM/yDmCgJ+RN4bfoKx3PtqKpnqa/TymdHuOqZFaQjpIVCdrtoVv6 F4o8VpHrdLHMcuhRg8W96NymmgaJEykqBPkPwc7IWKEsSPUV3tBdzujiwgFRXW18fNxy JP+A== 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=teS9tLIGRln+U70GtsJ4arrXFR+yWvS7ys/QCVHQ1Mc=; fh=KemUqYlx44+jLiX8LKEgRFmEZtcjyKeavCeH1++RIPw=; b=V0jO1rH9zuGV5yjJlfBSRvYlKjs8dm/XGOCbiwaZCd+Ay1Tcn9h1VEuSS3K1Pv3v+k /A8o8uwEwFPe/Xv1fHiY4MUxdgKoepRIHUX8EnTQKZo7W+RuPZjN7K9RmHH1/RHPLOqC 5Tdgyd0YTt5FvlX1D2rvjVZB3taxuMiko/Ov+2SLRRrhTnpufSr+Ftbcr3qRENAB9mqY dCJK6byZSbHF90gAVjqfC9kIDJwhzsyrXFJr8r60DdqBXnlbT6f6HL0K087+jJu4b9Bv eiSACuSn9wmM0qwiAoslTOJ4tJGmB1YWbolRkoxp0cxoKgZ+9XUJX6Pd8nK90uxiP7As SXrw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=kvM14Tst; 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 l8-20020a170903244800b001b6b08f03ccsi1274879pls.345.2023.07.06.05.44.55; Thu, 06 Jul 2023 05:45:09 -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=kvM14Tst; 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 S232070AbjGFMne (ORCPT + 99 others); Thu, 6 Jul 2023 08:43:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbjGFMnF (ORCPT ); Thu, 6 Jul 2023 08:43:05 -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 DBCE01996; Thu, 6 Jul 2023 05:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JuJ/9WuPl3i685HGIwWCaj0iLAiduT3Wh/K4LKdIgQLpgB9KLRS5Bzo9g5gSS9dzhN0z3mMBGlePjs5MM9T8BaLqK6n5KPPZID3zmeckLIaHr0eSH5fSiA80jYnDHlu60nno17a4TwsmrpfgT7p3QL9NAPOwFd4aUd3agIGDCT2bLuIxjka/qQggeddMpellWHeyK0CQTO/Hth2CmmImWWjtIjyZY7pHi+aVUeo3XyqK2PSwDotZxNu/1dxErlTavdNzXof4VAWJDgYKId9uYwkxlAn2h7/GH9d7nvqCyNfd1H/HgiXcgPu6o6Hg114oacbbCJjXnJ/7HKbCl0xZrQ== 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=teS9tLIGRln+U70GtsJ4arrXFR+yWvS7ys/QCVHQ1Mc=; b=ZEG9V/9MzXVaiSUGxIJ37zKPj75vBuHRwtyTZvweBDseOieYe4K2bfBKJvhGX4hjdlk16pi9CUgipOfXP6D6WSsjF8eLLVl0HhJRvVyp2yEeaN9zzGh2xWQ5LrDg00SAMij/iqc7mc5lQEWsQfxhGRblWVki3gz17vcqjFj95+M/aoOH45NY7DtiHX78MiXlxsACrPBPR4Cvtn6v247gGP0X6QaRh8hcnM1zrw6mpHr4k7gUQlEfweJ17Z1zZ8e5gP9mlbTSp07BjsvjMPTBywCBT35CbQZ4eFQo00wDTZPQ+NQYJn7+k6G0dZrXP+6uzLFsKFbP7Wwdgh1q//5qiw== 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=teS9tLIGRln+U70GtsJ4arrXFR+yWvS7ys/QCVHQ1Mc=; b=kvM14TstwbuyGGaHYy4AELBJKSN87SFumGPvlWSeWQuM2WEzGhGmhvP87pTrkmp/iuy0jXJODBlb5AC3lRY69fUA4wuzpvnhxFkD9pM4VVMKgPuMDZA3KSAeQqDEmdF4pFb4hexGZbaJCFEx7GVG3kb8Eo1KC47uxQascYd0hIkt/rYB3qtkkEOH3VKkSPQepa/7y9P1JcjFNVlwuQ+3zfq0x5v77ELS0XGH1IavjGZWMSsgH6/bPK36e1o7n8Ivc3DCAqxqxcQlKb7juINMm52sQGBJYBVwC07TG/C4i4pgTl0IwFCCFr6uwGSpjXHUzr9rDFkiYFaHNPbxv8U/Gw== 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:59 +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:59 +0000 From: Yangtao Li To: Sergey Shtylyov , Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/8] pata: ixp4xx: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 20:42:36 +0800 Message-Id: <20230706124239.23366-6-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> 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: c864341a-bc86-4c39-8f88-08db7e1e877e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /AatZ4N7z+3lZ+X0UWQiXbPsKh1XTrAweYw4GSiezPr6nJFb12THvjWB/n3OlebVdzuMMhU8S2A4L4S0IxNxa14d/VtWvKOngPZvcKjRFdoeIYNFzJrGi4d4iplxU6eMH7H3gSxfOzwVlHmJX8Rd0+ucDt3R2XZLmTfKfIF43KQEnryzKbSjVZJiIVMZ1OOGjmpLkpjEjR9ODKZVe8HH00e3d0OkG991R2mIGT+PtB1hPo84GFuTkkLjQtL6iWweEQLkIjnNS19OjM3rDaW3jlBFUhx5Eba43DGs74sNt+mM4G3YLPoxDU6uKvc5pzjH1YQYCqfPTy0vN4ODPksNxButTRq+NTjWfPP+W2l/IfU/dXOlt5t77lQ7e6fq+VLdyz1oC82b6ry5w1C3ZPmkHxJVwXu8EQMO8pXysq03COLleQFMk4rZtLnu/qc4wTFssCX8zfRAfv4vYprVj60BLJkIqY4ukizzj0IvMJWHqD7Y57THsHUwY5/pvZXpfMbpqglE/C5d24d75Qo3jc01hri0hvDKnSHbHkYEdzK9soSfjLEgEbTFZtIRDmdeB+p0HPQc05CAJ1TjiYRzngHHDHBdpbs2TA9RcN38i1K26eiJ2Xu3Gt3wLiaRptfpsOZMcHpb/IN7FB1jk/ZFcjJCPw== 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)(4326008)(38350700002)(6506007)(86362001)(186003)(1076003)(478600001)(26005)(110136005)(52116002)(6486002)(6512007)(6666004)(36756003)(32563001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0oEYGQ9ENyIzrdlzF9rEm5ViO8mAB+d8D0xm0FKp4lLACtzMvjnMLUuI1EpyL9rZW/CmWiYMnyo7EjcGQiJeXSsoQEbdopxee7uCNGuVrdiE2HiT+23xuJRDN5Q4q1DsJr/BKFwCuG3+MMSgskC7DuM1AtikDbiB4y8r/sRkhHlNt5Za5OtbZ111BV46BInGk7sTJaS/E3JqDmYoUYXTgushzTu/gePgmEm04xWM5JHnPgPdaS8jnNN9ZRd9UBFUnGMiX6FPMG7xscmy7vsAB9eOW6uojH9z46LV43s5Vwd999sSxBP+Pfyy7iAEK+soTDt9FxnKxTzclO7nxuTHjCxaG33zOXAeuQ/elut3tWjj7pOF2VaARoQn9uLpK/RONvmXvd0U7nQmR2+cAbXIhDXJ5EYGy+Azlfrl5qRtNS7pFpYxhc8cyl9V1z1Wv8dvpEa7e5n6SP0OX/XdXVYGXApED/uYyiLRU87p0+EmM+vC8jlHfa4oPaF7FHbQI4qGH3zfiYX+yj9y0gpNRU68KGHkXU/Bip5NImwpD386eYIHYr0WWyfP1ETniIjPisGpDBaUzq9PPPISULOD97pgw1C7JbOQjcqZhmvtZHOd+5zNyyPFX/Xeleer2pAx4O9EXU6psawGpXqqCyRcxkeS/DkW8J3Uoe3eJWO2yie6nN6cb+nhdpWxQybilOp/Nk2hX1XEGSfCgrMjFQLss5E/1zNGNVH5ArV6HvOKmB9bt/EXcR+UDwtbR0f7OGwkZJByvkCsQxQvexfQdbVvL06dAfkv5dXE9TKocQAE+fWc6J4eHrPRxmX9a/77rgZyOyqQDPS93MufzKlJ9+0mrrndiQ5jEM8dqxjRVI4c2s73eFU4LTqSUuy6a5+5HqM597mc9vlz5qR3SrkZ6lN6TXkmFXNpReBpR0MwuuPiD23RD15Ob2qf2OBeAU9obU20YoTuELLVVIUkGijt9WiG3OXgUwwyMvadn3ympa1LI6CKG31k0OuEUyBXRThXTBvcrnFl4iB6MJV3XAbsObXZZK0npKanz/Hl2HR3cTmuiP8NtZ8U/JiLq9h5u3NkKoVbWYLB44wEKc4/w+5h1qMt1Mu6KQESKLHYkYJS/pjYwh0h0IBYlEeBmsQBt1ONwlsLBwb3UexBlpMgPqfCtdmfM8qOaKg47XA0NJidB+MKilztcwfGsGX98qp0rK4CSpWk0xLe0EOwY7raE2woyQnh2guIhslZMEw76GVGfnMMEoC5ltQx2xJnRWKC+HLUVRfQy6oWfrIJWVMP8Slk+dEn7wdFYxROxdAmDOVCHqBjMexL72UkUA9z5ndN5OrRJmTqJzOCZ3p0Bbj5UJQ0wGfYZ8tCfVhdyiGtJ+I0bMdG2v9pj24fbWRbr2gCYjXhqWmdIvBh9sln3tZHku2ZoRtLckn/fsWh34VJlTk/LLmpNYJ/cmsE+NxQkYepeQsB67qK0zGBfcceAiDK8MDvzn3QeJXEtQLT2CKt5+JdTonzxHBIn1x1DqJ/h8SvFHHNoYqV5hmXyTb5dLrRCcqs2NTyBRFVDgfYW1U4NRsIaWKAQPYlr1bPN1IpPgOKNfQ7Su5f3Ont X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c864341a-bc86-4c39-8f88-08db7e1e877e 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:59.1725 (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: LMLVqKGSpfSNVohca0TcAzdWaA4xTeEvfX8ET+ZdrQNTaHngk4cOTsish1to6/kJw0eGU1jr+LBFXbNDi6z02A== 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770675251241772667?= X-GMAIL-MSGID: =?utf-8?q?1770675251241772667?= Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li --- drivers/ata/pata_ixp4xx_cf.c | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/drivers/ata/pata_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c index b1daa4d3fcd9..246bb4f8f1f7 100644 --- a/drivers/ata/pata_ixp4xx_cf.c +++ b/drivers/ata/pata_ixp4xx_cf.c @@ -242,12 +242,6 @@ static int ixp4xx_pata_probe(struct platform_device *pdev) int ret; int irq; - cmd = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ctl = platform_get_resource(pdev, IORESOURCE_MEM, 1); - - if (!cmd || !ctl) - return -EINVAL; - ixpp = devm_kzalloc(dev, sizeof(*ixpp), GFP_KERNEL); if (!ixpp) return -ENOMEM; @@ -271,18 +265,18 @@ static int ixp4xx_pata_probe(struct platform_device *pdev) if (ret) return ret; - ixpp->cmd = devm_ioremap_resource(dev, cmd); - ixpp->ctl = devm_ioremap_resource(dev, ctl); - if (IS_ERR(ixpp->cmd) || IS_ERR(ixpp->ctl)) - return -ENOMEM; + ixpp->cmd = devm_platform_get_and_ioremap_resource(pdev, 0, &cmd); + if (IS_ERR(ixpp->cmd)) + return PTR_ERR(ixpp->cmd); + + ixpp->ctl = devm_platform_get_and_ioremap_resource(pdev, 1, &ctl); + if (IS_ERR(ixpp->ctl)) + return PTR_ERR(ixpp->ctl); irq = platform_get_irq(pdev, 0); - if (irq > 0) - irq_set_irq_type(irq, IRQ_TYPE_EDGE_RISING); - else if (irq < 0) + if (irq < 0) return irq; - else - return -EINVAL; + irq_set_irq_type(irq, IRQ_TYPE_EDGE_RISING); /* Just one port to set up */ ixp4xx_setup_port(ixpp->host->ports[0], ixpp, cmd->start, ctl->start); From patchwork Thu Jul 6 12:42:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116679 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2531809vqx; Thu, 6 Jul 2023 05:45:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlHlAf53PPM6CRgrcBTRIfTWMTQ/nHr2yFE6YoxVIcuMIJF2dFR6aGpqxsyct+BnI1a1BzkM X-Received: by 2002:a17:902:9b90:b0:1b5:253f:d05f with SMTP id y16-20020a1709029b9000b001b5253fd05fmr1297363plp.29.1688647514999; Thu, 06 Jul 2023 05:45:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688647514; cv=pass; d=google.com; s=arc-20160816; b=wnGFYoHMQWeziSLKF2D/TEdPQQpYp/kI/31KvXnTi+mq/wkFdfHejo538Vrh4uZ4OZ oGeQNqeh6iHcL8GautK0mxgzJP2DzsRYAZcPp9hXRtOp6eFgQ7ZcCQLjBDbJbNEFoQ7t dF09KzENVv711A1764w2h2PWAE9E00CzeInacUSPzMOw2BsOXCERDBPNrqnHwHaR+VfN 5OkPcYMaX/8y8tNSyV8JwIHBxRCLto0GerQAdLoAOJSwO8+vBXAciyclucGm9d3yYiip zB2eTJDP0+v2UDzjmloN1iS7K8aJInH10RG6ozxtOffGIRhINID/6RCXUVwBPuPxxxdV PSAQ== 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=uJiW1igRv+LBe5v/RIatfxmLK8I3x1ONgFtMNsOZQ7k=; fh=vr4PVV210g1zrLNsh1xSQdTce3UD/Dr8XasFzuJIwB4=; b=my2ALQ11CR2f1oq2xHChCIFEezzGcSUh5wlASNTLPDR9T+qznWO95Z7C/SpbmnFCQa MLGz0x3QkxVC1zqpEBejDUGGOgNg778le0cevP1GQ6oD87dDN2oFu8/Rr+UxTm8I6Ydl dzZrXQSj+F/XHIPBf9fBAz60pYiXOhl5WlOvR6cxbY8Unen6VT4QODRe9I+8eCh9NM+0 n+b1ORS5V0eXiiRAv2211XT/oJM9u/reRAcP4mg+FA0wQSDlkATbPgjBqOH6xjhm8y9o 4IqxPgiX0HZwoR23P/+roL1pZMwQOmxAWQlsvLA78h6zMSqgOead/52u+4cHZ3Ad1siY jYkQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=LS7Pyemt; 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 t13-20020a1709027fcd00b001b546795669si1190684plb.391.2023.07.06.05.45.01; Thu, 06 Jul 2023 05:45:14 -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=LS7Pyemt; 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 S232029AbjGFMnj (ORCPT + 99 others); Thu, 6 Jul 2023 08:43:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231981AbjGFMnK (ORCPT ); Thu, 6 Jul 2023 08:43:10 -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 5455B19A0; Thu, 6 Jul 2023 05:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q1NpHNjnnrCYQUlmEElYQzJHv+nqqud8+SVvLsLsbsyQFEY5b0/KwjMhb+tH7bymY9oVdnHAO8mNj7A4ahC21bPy4G3T/IeF7I6c3ADcQpS8FDBvuDK1FT7eWsYpKm+aeFysyvfYQ00ZWoE3EfA2+yKjEe1O++PWalyFdt+cE0WJy4hyj4OoGdtMF6iQm3grObxoEKEgxY0A5bKj9WWs9D+Nuty7QvcT6XfjTksbm1kZteDZkaAYBxDiXUUHLbWbGCiiDItwbbFNje9cIYAunMJFbveEEnY1uKdyoYOmQLbODBW9eSVXRyoL1/nyrQZI+Tj6XoJM/cClJibujE6u9w== 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=uJiW1igRv+LBe5v/RIatfxmLK8I3x1ONgFtMNsOZQ7k=; b=LOQBIZJiAF7iMwM1khYpL4Jr7/Gvau+Q/sqkQL6Gu2kNgkaPrKmt/YK24+icfCGRfCeD0FvXheqTrr1Rt9LinprAISmzn90uxa4/tUXAMzMd0PtJddv8MM3Og2g/exNPAKNfZEtsYCpsUeHj0n5vB6ix0k71fHEAABoPQxk+wHFUGf+hs9uAKXHmUsjggZkqmgS+WvdMqQ3O+I8KfRDooPF+R5zpEJuZkwN2bfiT9fx7hVK8Dor06yaALB8csPP/SOuGqDw0C3h5SVNFAiKXIjKmnXfYfIwmxcfZCck0T/1k12lB18Lx726NbovylalZqyjlCFIWavxmAXM9NnAzbg== 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=uJiW1igRv+LBe5v/RIatfxmLK8I3x1ONgFtMNsOZQ7k=; b=LS7Pyemthc9XT5i9F3nVo5XC30xrffaf6YydCjZLXTqFFXlQkqOpB6G9ruUZds6pMLnJkqAAaTaJViRHKytz/mIlmhv3UlmoXt1RSnmyplEYhpn83yUfQ35HIKJZElmuq1WqMIowwLvZy6rwgv3c5kpW1HODWhI0ODlYEYslPswt8lVzuJtNPDRShIOaRsXVC2/Q6R1AEQMpJQ5gJ+xKxfyV4eMNu6/0O3A2MDcCk+k6PDN8DXqNKqTbhwh4qFDLKTFNs3xOBH7bDXIIw9Yi4pu6C4vo/jNDfDjgJoIG1MFt4727duQpiAjCgLZLauSxndUkyM5Xq8GPQEGEQttvCA== 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:43:01 +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:43:01 +0000 From: Yangtao Li To: Sergey Shtylyov , Linus Walleij , Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] ata: pata_ftide010: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 20:42:37 +0800 Message-Id: <20230706124239.23366-7-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> 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: 033ec746-bea5-43c7-e667-08db7e1e88c9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eBbbtyu8JEqiPXRziPmex1FugZocr3Yq99I1Cox8vWp9vT5UszmoqTvCv2ynTQ2sFcf4I74H4/gO2z43l4qQbzTYyO47Mboii4eNCEjWxIPn2pIAMohdZT5I1AuMZO9kkCQjk7M0rtjLM2fvFfKnw1c9ehTUUVmlGU1eynkmtXoqvkDRQ19Ff0kZYORkB8T7tin+s3OfDPu6glkv7EZB3Pa2qrabayWY1lFc57GKP+slHFVdg+luvGn2j0+3cDGK7TYNQKd+jIaict+o9t5HUHrJkqpjHmYqMUZogN4me6zVoucwut+tHS8r4Li1ULnlkViXy5ZTYvEgrGb0Pbup/B4hJ541OwqddzS2Zp5hW8nxIyqE0j551NMb+h42OOCx6pTGKDR7LcpO+Xy0dN8/+EMtXz/CnhNDQqSr2VqkTvBXRhS/HhWws0wbLMtvEQijkDtKufB1SJ2T4ttwzhuMGvJMvumux877UxRD3vQ6XeaS6uUdTs/PQGqDhd0hzF+SZ9mU3TY5gM4x5/F3NQsa6hXPB7XWZD8iROZTkzaQtH6nSt1bx5IwXBiQWmSZJE7vfqiD+RTn4O2IZWpNvRRfLlSYsz3iXNLMvrQWJ1IXWV4BxufZTw8gYSCOuyGgo+uL 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)(4744005)(5660300002)(41300700001)(8936002)(8676002)(2906002)(316002)(83380400001)(2616005)(66476007)(38100700002)(66556008)(66946007)(4326008)(38350700002)(6506007)(86362001)(186003)(1076003)(478600001)(26005)(110136005)(52116002)(6486002)(6512007)(6666004)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BgPzOelxB7DVL+pGtURUWj2FdSoN59/1MBU/fsp0bsdssNewidCt2FJOFSfGd56KVJK2SamG3/Q0GQCY76PYevB6fUdgUDf4xiI2r1Y7Nqt28+5mgWi+IXcX5mgke3L9dOHqU/2awlDope00EFsRIlsZm+H2sQm8DZLuYyvXjF30z9xVOnYtR8OYntoWoOPrNx4k1bp9T0wZ4r8aD1eWlmFJA8qnDpBeDoRs9RULm/nVPnwi/dXcsDKb60FZk8n1HdNFnVA5Is1FHjPsz1qj+EfRfUXKM42+uxsNwWrK+0rtEh/hBCBuyL+V9E15iPR8RPlp2IZrJu8j8NRzPamVx5CjMFTCqcXney4YTVR/AaTljAiKAoQJ8ZWZhckVgnVTOdINa8uvUl0C93UMDg2KZFYeCnakpdZgv5LCx4BLFXq72FlVdgBaVdT7tAobm8WOd6wwVf+lEgflXJFobG9xdY2YrLiYAOh/ILYPLpGAssImVYzgoFlQS9dcjEsSFdgXk4NG0RiZqeABk9JBKafDFmmAgPW39DiKjTf4uVmCXJFS/CkdBYujb2IQJDV4I24rnUHiw9ZbdKORkOHAUIlWDhxcjN9WZ0HIbPjozfTOtM9Cmqrcr4O0jz2r5RX4y7U3AKnk8LP4Wa0KmPMzg/2+Ymk+uAOR9uds3ofq0p2iQqDdDzhroKlN6yK4/Or7UvVQh6ryLcn7xDBz3HNrk8sCAx2ECA1jZy+J69gy8Rs/8lAgeew63Fq9NUSrCdomi+V8dPjWjblyDhYeKthjVmcrb0iU5KTg5Dcq1PRG7H7Xebz3KzSjeUXoJzYsAbIte27Rqo/HvHLfKrXRMf2sMZfRyTbIBN61rnUHqH+1dwrYzq8O3tzN/K1CFgUEVZZSHMW7zYo/HRcvKv6+754EIdIeDWifQAKODQVHJXPBuF4sGgdhEdr/yAiIDcDIiHrz+bEoaX0sL/GCWsy3LFsyWac8dE7MbbTu48Z0reXoL8D1IjpnVQqgHF0OHApmriYMNPOfm/1eGRKYZ0fZ/5DfYAMvQUhY2O5Yss19uWaUtt++RAGVRJFsjO247pSLbaTlQitkFHenRxT8MILUih9Vz0+jM6i5mrHbmMQjb8+VusqXRuD8QHNIOvROaoqI3voBrQ7+Lu6uj5g9yRwfVTawyYaV636L7Z74Uy4ON4Xby31xGHg0BuGxFBYhV+VG8Fvc29exLbw3UlaAzcwijqH+dyl3cadc6Q+JlNf1B+5MuSWMWoj0c2UUgOrh/bZjfIUgLjcIlo5wsZmQzmwWQlqcexOcXFyQ03c0pxd8nR6HC5OyX9VWTY0r8MxItDD4pjzOxfMJyEWF8tajuN4H26aqgHj+GwZ7OdDQriLlnRgtCanj/hAVVt7iH36Gd6lDaAahJIARY9p2hr+u9ga7ZWEzhJowi1EHd/E0WUxj0QvN4FjRWM+V3Wp8dBGb6KGR0W8vkIXV+GfCJ3oltXWv3D/xBsLC/RmCBJR8OwBw3krBPjw4/qz2eU33bymuVXE04T9eCGXLCC9zCpeUPKnkbkQDYWv7nPOvCAeLokzmK+XbiIuNKMl7vpk5BTf07s0XG//RfMdY X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 033ec746-bea5-43c7-e667-08db7e1e88c9 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:43:01.4054 (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: NA2KwLnoTWf/MXHliCQgP+Qw1YLTzLwWNysz87HmqbqaRU8Wr1i8YlCt8qDAgQJYH8q0x8KzPagc6GJuvx5SCg== 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770675256795750556?= X-GMAIL-MSGID: =?utf-8?q?1770675256795750556?= Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li Reviewed-by: Linus Walleij Reviewed-by: Sergey Shtylyov --- drivers/ata/pata_ftide010.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/ata/pata_ftide010.c b/drivers/ata/pata_ftide010.c index 6f6734c09b11..c6f60f1a908f 100644 --- a/drivers/ata/pata_ftide010.c +++ b/drivers/ata/pata_ftide010.c @@ -470,11 +470,7 @@ static int pata_ftide010_probe(struct platform_device *pdev) if (irq < 0) return irq; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) - return -ENODEV; - - ftide->base = devm_ioremap_resource(dev, res); + ftide->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(ftide->base)) return PTR_ERR(ftide->base); From patchwork Thu Jul 6 12:42:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116687 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2547150vqx; Thu, 6 Jul 2023 06:08:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlF40XkmG9w6uZKtupqDNgf9MZxZaJ4+Oh3/uLjGset/0liOpK7v2UPW56sIs7fY/i/PP2WB X-Received: by 2002:a05:6830:609:b0:6b8:92ea:23c9 with SMTP id w9-20020a056830060900b006b892ea23c9mr1567988oti.8.1688648902030; Thu, 06 Jul 2023 06:08:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688648901; cv=pass; d=google.com; s=arc-20160816; b=YgoT7ee/FDPi11xd8Is0wm4D96k6DZLmAa4Y22xFXLfwy9fG3GreXOsvhh6wNdSBSa iLRzHheZ64ybHkkkfaMXspcI2X0FLGZ6gOwkcGFtXPz3PwxsuFN1fwpmyrUmXwutXLlO Y+XJCMi8bT5l8m5d45idypvhyfhcNSFNixyIShaZUIjCxKG8w9DK0AsfI/EAlhk26jwt Bgpj4QjeXgzlD0z5+KPvstHyBua/atbmpTjTs+90ooA0+X8rDqnF2pPWAfAOy6LkJ6p6 a2/mE2KMk8vgh68UAl6qq7SDbCgOT8tUOddfHerHJsSdA+IUfUio3/vNY3OgQFUCv/ro OGnw== 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=YHSsH8SuT0tJu91niLrJMTc5mRQtnVDgNMHgs3qgiZA=; fh=HNmwHMKXdrH5ADa7EQ3284gWFm4MNyterjugm4Fs3ds=; b=O1VWFTQV+KaU3MUftKGoGnRJckBLPgbY85ptD5LAmuYhT/D9iItkFlw9Wa19z/TE9s Krb7MwNOiT19FDEeESS2btfvVTf7ALqFjoRNwRW04K2T0dnDFEePKRgh2KhcpW5VOTz+ v/GrHAGgvmcQ/58YEcx/BfY1UuxKeWGcQ8u13wBhz5FY8mzMf5rMNEw82rMYTqW3gGCC yIM8ClpR3uBOG/gDe/iLZLXBEiZSfJBnctOAVTyFDaLUG9sVG8/6oJei4vMAN8xwREJw rfow5Uy1AamapL+Rbq8WNlEHavbhSha5F6FuuxdtXnRMTquFoXylt6hE94bINKXu4net JfIw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=LMiV41VI; 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 az9-20020a056a02004900b0055c073306casi111456pgb.751.2023.07.06.06.08.08; Thu, 06 Jul 2023 06:08:21 -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=LMiV41VI; 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 S232144AbjGFMnh (ORCPT + 99 others); Thu, 6 Jul 2023 08:43:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232022AbjGFMnL (ORCPT ); Thu, 6 Jul 2023 08:43:11 -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 BA9001BD2; Thu, 6 Jul 2023 05:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d6/Kr1wDgrkct+pMDhN4EOKzI27/1Jvl+rpCxViUDjbLXvokucV0d7X6arG8bmEW7rLu58ib31v+pmefCMI21hVluiS//qIxJA8fby8FOmARxrp2t+ZT9B/Nx4OiEr6nbZ+d+Ez5FpZdXkLGQcfyxpzhq990zOkZZruiSHwRz8BjxjRf6JNykvBt8bSq3/+hlWn+toqmX/dABkX7UKDy8a4sCucaremIPFzfCfbLeSG1h1eMw5eESJDFD6FsQhl3mGhRNBXK/nBg9PGGjC9PSk21oHlylSgKhTfntirWBl54iinUi4u+ggdx9Mq5I70CZEo5SyC0cN14t0zflkUbzg== 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=YHSsH8SuT0tJu91niLrJMTc5mRQtnVDgNMHgs3qgiZA=; b=ec9DuaylIC/IthzK8EZo3x4gj8D4DsodIta4E2AAa0Di/LNfQlkDITZGNb85/3GvqTgKdpPWaYDPCyY3auw6oHfWj4oIj/xteoDE00cja2cXVhWkdaUM4wU9tkD8UuSUsycETybKzaIVCs4BUl0PpOjs8RkmubniPJRhr3cxRQzng8YtHt6cRVxkfTwb8Ylh6tmU8HRmYC7b2IL0dnsOvtfKxN9knd/K5/6cO9aNiC3dlWhD7OBTEUpMd272WQw4mWA+jAWZyviVelHpuMi3YEvd797OWjlWQ/JOp1pIOIodWCXV1NEuo6ZHh6QI8xiMic6GqvF/JFTtU9JQAmhdIw== 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=YHSsH8SuT0tJu91niLrJMTc5mRQtnVDgNMHgs3qgiZA=; b=LMiV41VIJXMim360RTxfhGZJCcnuDys2RJcWsKAqyr2CZjqALShm4wK4ot2TPuodQcEfgOzL+y/VPuRUl5HosP1XJR8BvNhf+Cb+3TvyAWPWtD1DoDDKn0ujmHrWqvSyPagt2VVOoIjASQ3iO1gWRQKtRxQ80D2MNUpNuXBGZ4hHY2fjc5aGW0yo0OmgmTAiIs4xQ1r2goOjEsDMR0Dc6XDNPKd81sZ2hijU84lRTMdyaEO+NxqngO2AR6p9TorpiVBvT67zWn8PbDecxmPCPMppnDfUR02qJk5g+POR9HRX3gP/ac9zuRRhxtI0tH67+JrkQU/ChykRVIM0sRYZbg== 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:43:03 +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:43:03 +0000 From: Yangtao Li To: Sergey Shtylyov , Damien Le Moal , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/8] pata: imx: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 20:42:38 +0800 Message-Id: <20230706124239.23366-8-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> 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: 5d304469-1937-4ab7-01cc-08db7e1e8a1a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MbI3y0uMC+huKDSdlw3Yf/z2Y0oXlcW5iPb2mG4AqcP0H0+Dc+3giCHUjpqfL4pddzRvVcBYhw4djhUz0WX04WVaFWnZiKmKQS15sHAXxv0NuXUGdFqLIdAqZFy2LEFyRT84DAw3DFgRtLO9eSgIGv8jWJjmbPG8q73w/jxgGzkfQlZkJ766n44aqU7umlbNTDzm8jd5LxdKYZjOq9CW1VvszDmcTnBlv6Ceco8ppiMO8UWuJpz8J49csoCsrpAl8CkYsTSTebL8RZg2lIfGy6hsJ30E7wgHiZe7Mv13PTa7mAxwukcws0Du7DL+CHnG3CVI7XDg/e+vB70QNxol91oyGwS5oPYN2lCVMj/34J2XoqId3yjPuzfMsB7wq34qD5/x8+2Lglaow/0+gNMMX179cfA11XfVF4DaRG7Fm0gyWZhdAwwL5kZRcw4OY6k9FJMjh5zzBRMHLl2McErBM1aRc3V99wZos/GE02zM9lGaT3bIe3KVA2iIZ7maQdklUn4W0PeVCm1HIUhaCD3IPGOgPETM7k+2rbfmE1k9/aMG7nfhWb3hS++QzHXFtZE0EPBOUB627y2uf344Pld08ldd7VU/vuyfF9EvCbMUW0f11QpYblUUu6GMMuHvXw8p 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)(4744005)(5660300002)(41300700001)(8936002)(8676002)(2906002)(316002)(83380400001)(7416002)(2616005)(66476007)(38100700002)(66556008)(66946007)(4326008)(38350700002)(6506007)(86362001)(186003)(1076003)(478600001)(26005)(110136005)(52116002)(6486002)(6512007)(6666004)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AOCrDvjk4G6cmSNaak/SfhvOIUMA9OhZXgkhWFSnstCzujLfce28JHu6NUXgROvmeJ53UZRazk+Ih7ZT8HIQESWDeVLrk9tT2QdJgk7x3A8KDu82cOepNOHHIZSXKFjf74ZxxiO5c6iGWMlGM/0EiaiYfAvoTesxGveIbkjl3c/LfdLIvLicBvQmUgEFw1Ymve5WeWrT/K4a/hn0wJIuwGT6lYUmf/j0viiOcZVrYi/QCoTS4NVayA6LDUSwJO9eRFDg/yb/4M0V+5eM3zXuT8MPZZMijp2TKgav+2zZQR24czfZGCWdXE1LpdfgKf8MShPzsviX8mP+ltNCGrhGD+gjYDWdRCGO0dB26ZQXVyfSHDr+RWacrZSCn9MbUi3v9/S5ny56zPgLBunvc22P3t882jLaJ69x6EvXzeQ4aHdSHyzennkdAv44DBSsBtma1QvYvyPFH6mxpsbS4JW8y3b34ggmq6iP6RKusbeJDKYDUCHu6AuweU88atbDkRtc/RB4qYNvNaRqMPad5I7zZ83j/aN+BK1+PfVPmAvQptlgHdAagBzg7mMnW+rWu/Uq5/wz3cViG9vOF7BDKz/YVHzhDbKQdQNtq4SvF8h4hq0WyvF0Rp1lrwnBcn+UlCarOPKjPnLD3nKZBU1hR41wuAURvkQQWSH7+VoC/GjnaH8gRHqv2kVoZkSCrKK5EsewFrvPNP5GW378IUjOQS19je9NG8DojG76M8JuZ3Y8xHIyCywGDlv8ow76bpISYUsNmRIYI43HUMX22V0S1iD4AABzr2s6/7vRllgoGaU7H7jUDh4LzuPsdqD/y0DB6Q9HP9uO6OnI9XZzzHbtzcqeOnDmzXp3JJqpZpjWcR0UZC/6/TGDwej0cpzASZLqW/3oRkQ7VLP31cuhSgslNk/grDhNBf0ERYeJx8Jl3dGzNgRfjq+zF/5exWAHkzg7ztoyXpJZKbWKCzuM3GiMriZVbiYMxwsqTJAh+f43FZ/G8kGot1iaTF/xybMmFtTAP6HwD57CJemyGD5KKfpV2q7z3/xa6DRyBLdYZEpH1HpWbc2X2/fHio4udYqiasa1ey+W/AQ213Lge/Fi/Hf6KdHKPwJDid91YkgDzA3ZV0umgOssXo0eggall6MRqN0BeOgsY73w4RYZbCK5NFtUmJO9mmZERZrSyu4zPWinb8PG9KiivofDuCMntxBsfOWpyEaGWcWSBINB4HYJi29rHwWAuBUbuADUdE5i3TG6MdhKlArVZfYX7cqmyq7qWFjhK92vE5htgeCTuux7BnHVVXHeTSYV1Xh9ebyFSuSRCQpa6NroXjI8glOtBqvqaBTCpRhufMYqCGDvKkzPEpqtpnTDlwfKRFa7tJwhnkJ/qUvgXulvsPiu+omn+OSOmt9K7MZRRsL0q3Znjj+P/zr/zRHJglH9U/Jo+AGQ9VjrYdesYDWVnb+0RNfudtyubWXMVrwTTdceXfG6axm95/g5OngDJN4XX3XeHvF7Xo+udNc62rbm/N3G3pePILWPjg8O349sudj0bjaqkIwEo9DOqyscmq79Kxn167mp6izytcrfjPVcksSrOGoE/OAhVgfW5bgB X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5d304469-1937-4ab7-01cc-08db7e1e8a1a 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:43:03.6172 (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: pH/aLEKj2WugelEr1iGJddH5W9dg2dJ2/4idd6BnEj6Pp5STyrjcw0hza8AR6xeVomsld7zTWzonwQh+vVaC2w== 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770676710710886004?= X-GMAIL-MSGID: =?utf-8?q?1770676710710886004?= Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li Reviewed-by: Sergey Shtylyov --- drivers/ata/pata_imx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ata/pata_imx.c b/drivers/ata/pata_imx.c index 4013f28679a9..65d09ec94c12 100644 --- a/drivers/ata/pata_imx.c +++ b/drivers/ata/pata_imx.c @@ -164,8 +164,7 @@ static int pata_imx_probe(struct platform_device *pdev) ap->pio_mask = ATA_PIO4; ap->flags |= ATA_FLAG_SLAVE_POSS; - io_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->host_regs = devm_ioremap_resource(&pdev->dev, io_res); + priv->host_regs = devm_platform_get_and_ioremap_resource(pdev, 0, &io_res); if (IS_ERR(priv->host_regs)) { ret = PTR_ERR(priv->host_regs); goto err;