From patchwork Fri Jul 7 09:55:03 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: 117055 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3146569vqx; Fri, 7 Jul 2023 02:57:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlGGYTAR9Sq1Sdp3mJ4UGlzVUICFIwNpj0gG3Rq3EdBI1aQiTYi/MEPboJ4DZJAw5dCsTfGh X-Received: by 2002:a17:902:b117:b0:1b1:b2fa:1903 with SMTP id q23-20020a170902b11700b001b1b2fa1903mr2923750plr.41.1688723837638; Fri, 07 Jul 2023 02:57:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688723837; cv=pass; d=google.com; s=arc-20160816; b=B3o9bxwfLo2YJmx86SR5C0/iNz/wWfpWXRvLUTyzkt7XcMXXF/+wAXzES95U43udBd jQyCxUJtREi/A1Wu1QW87kFvpL8qWmRKB+jfoBu8FGgA2gXccZ+WzbpBRGZpDc9cIf8l NBhWhJ+UJO3tBG6TWLRTEpHuH+SJvv4tZjrQk3Xqepunbyc3kClnIhJaN3KxXZCwtXOk eRaBrXx8E1CGE3xCKiy7YXZ7KSdEn222E6D98G1s+GzmJdlM5yB2MmSQXRDd8ietTokJ HPSNSmuzXPxM17r1u4cR4p6SZIhQAKrOfZkaTPbuTAAIHpvZ86AtIbGHQTMpETkhFllI 6XXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=clT28NDDnXG0lYtow9Jcn0FNxd+1sybluxxuiLZdlc4=; fh=s3xkjvYMQhLNddnUUuOlQhz8OF3LmMHum4G0PMq03Lg=; b=iSPp7Q4wGyYrM2qBRbyR/tHTDiyH50jH15It76RHW4V1uQKpJFn/bMIHuYnTujbzw2 9R3iTNcr0enPWZ51dicyYarvQ7J7/4xDvDDrSgyPtr+jeEgoMtzIWtDTUyBsW1onfAVy KZufYOk2eODiGzo5Lv7UdEwQDZstX+9HNIkLHcKdnExQe3tga/CNJM3rqeK4EIB8PdxB 4bdobHT2HeRroPiYPhUpl0NZ078eTIPHr500llwPHEvZnru6TiL3jxDc5zwmT2mHWCAM 6RHvnC/84wPaXPN5NHdcxPvhLFgFpGJY6EWDB+9Za8+f6BEgvx7LLwDWCOqkXTYEQUyY kS8g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=AOU1yxGP; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a170902dac300b001b8ae5d825bsi3776869plx.612.2023.07.07.02.57.03; Fri, 07 Jul 2023 02:57:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=AOU1yxGP; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232844AbjGGJzu (ORCPT + 99 others); Fri, 7 Jul 2023 05:55:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232443AbjGGJze (ORCPT ); Fri, 7 Jul 2023 05:55:34 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2095.outbound.protection.outlook.com [40.107.215.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F38D2105; Fri, 7 Jul 2023 02:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ED9ySqh4FU/2gMiq/1sIMmhre5hBoY+qDp0CmHvAulQJQTW3F4CK9kEMWv7maahOLLnw2+10blbJ9BY5dxVKJUlCtepNaFUq1M9uwBvTnR5lktdxvQyQFVBKgs941aE+ZGAV0/CKi5J+MK+0uNvI/sRXVW0vdI9CJ6rnSEV6c5cGZBsDXY+tGi0izbyXZUcYduO7YiDTbtnz91j9QVLHWJUALAOKNWCt7j/G8yJ/3gsSk/4AqENP+RyuZWSJwOIxfcCBQB01xnFlsm+kIiqxmcon/c8MZQzNsaV5Re/hj74Net/fcg8YXKhyMbjpxPR3jnAR/fAg0B0JIOBqdKfwmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=clT28NDDnXG0lYtow9Jcn0FNxd+1sybluxxuiLZdlc4=; b=DwYAc7tjgXnNMA9tGasCHney6zOaf6i9xm1CT0u/GQ+86dY3StoTu3o0fnRxX37XrXUz7mfR3DNUazs0Gmu+C1ohLoiZdRrbCeV6fFy1omY8E7Q2eOgzpTP+Qjp5UpgVQJgZ70YU82XrYQLo32CMyFRCuTUH9USuT4jqp3lN0ouyrHBvriO2NaDOwOcZBIRoX4Hp1SwENx0NxRr/VgWlBMn3LX1eJleR8mfRGvOE7z9y3N70+aJBDXOT+4jHQnNjLrm5thZR9i/TxIHgmZbHKHf81htNyQb2sg6pi4rk7gO/d/GVCjG3VDsGP1Due8P2DEqTrAp0T9RtA8RLiQuTSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=clT28NDDnXG0lYtow9Jcn0FNxd+1sybluxxuiLZdlc4=; b=AOU1yxGPbg97ZH4E29tbNY60nThb3IEH/AY+k2xlXRKkUZaPSHzYOQzHUZ4NEY+eU9IXYGzGZ1EKiNPaHulLb/8aimsNm+rh79zUhgneA3tsWkGFpQis7c4Q9hgjY3oSssrMmvz8yM92WyZ2DQPLYsDIgyA/8n6v9hrCJHmXbReVxu3hsrnfP3jBwir56p/fbzEuJQX64ev5BKYaBzg3OIcoGHX0Z3FLTf5dzSglQsHrhsGnO4bXujJgRipveFFUrCER7Qcm0jzGQxhJlPS6gM0oJ/y4NvDAGOpc/mRu6T6mJ5yMAJa1m2CSJhqWwnuKNLwrY8aPhWe1L+JPKT4X9g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 09:55:27 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.025; Fri, 7 Jul 2023 09:55:27 +0000 From: Yangtao Li To: Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 01/11] ata: ahci_octeon: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 17:55:03 +0800 Message-Id: <20230707095513.64224-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SI2P153CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: 63c0216a-f71d-4522-d2df-08db7ed04a7b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rz9SkEscwIrR/DDOftDFaWTkw/IAD4KaBGaiyDtDjU8r7S8s8lUgB9pTIsl31sydhCRKVZHmuFRJwA7tVM2AeJcze6cz7hNsnhktfunj21dTFsVvyonWNw27PONUddf2wpaniofNJyVSH1+uY1ejD3XB+MyQO0efNVDEFdCPS7GOurKJsXNbf3Gum/BKWqjlD1srUo+J9BU/ezStQM4n972zEd2KD1WGk/0FYINbHKrVEwLtpj/a/HUhTAlNIqmYkMgBXBJhtR2CWwDvlgFttIZMyUkDkX3zN1xVA3NrTgCMkBUNPN8UCEkSMw6DMP9H/gc2eqadzRwHZHS/xfS8psUJcjECV/PSUEy8L4Tr43kR5jS8JNG/pM3LLthSRhfDb7SppXZZdMO9IaETxhoWVGouOv1D+QYQIt6RynBH21mivQbvVJuVX0B/PrzY90ztsDWi23Ycv/1SuaDQYOpFrOMRk/fOcqnsg2dYA0E4N+dDGt1cLSJUcmexZ/24lmvcsLKuZ8FWvOK82Xp7ecJKKbFVWy4E6tazKMrGQcocAH5himd5oZGYnqbkaqtFhnX78K5hiQm6MzPbHfC8U2qOm9IhNlNXIjq/s432lfwovi8iIZP+hKKKvKTEhQyn06gM X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(396003)(346002)(376002)(366004)(451199021)(66556008)(66946007)(66476007)(6916009)(4326008)(2616005)(38100700002)(38350700002)(86362001)(186003)(6506007)(26005)(1076003)(83380400001)(36756003)(52116002)(478600001)(6512007)(6666004)(6486002)(41300700001)(8936002)(8676002)(4744005)(316002)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Wk15DWVsDubNBIF2fPeEO6bOr5jTF66A+SquM6TgAR4bxMfRG+GnLtFE0ZFdRmSLC8ZaLgI/XsBzQhsXY4Vqalu0lFCf2Qedrs9wOWP3a1o2KiFnfX8LwoNg4pJnlp7sieEO1aDyxDMI1DRAfJgyEQaGb+qwqNq79/w0MX/Gv+0k+BN2ttSs40Fj+7cr6GIEgulSQ4XGjsU2q9MVTRsaurTvDfEjgcJ9N/FRws+QABtFWNPq2ce+I6IZ5DsmWP+jmV656FE4FgP/yF5UHDbmWo2mYKKWx1lYhYh22pR40C6xiWj2wXB0sKapghowJGKIcQG6mRKWeoRtBCgvRqqrKBEDvKgYfpBGA+VuB4ZyGeiQWJSUeexGy91rDR/q3Be0BMXCKbxHwF3o6qtR6nin3EuSGrQw9JfeWwA9D2MwUkTrmJo5ALtf4djkFILJIgt1aKXDozlr5+2z02C4aYlHnQc7LopeiSas8Bnpz2Hkz5e68ICf/He70z3L3KPMIS96CSXortW5Zw0aAJMeNizLA+Fq35IzfIBscmzEbZSpr6LUK83yyyNqzCYi0b3Ie2T/RcRrz03XZ2WwijD99rzFg7mbju2olUAdy1U+4+kbAKPJiINkzMWx6RC3XuYQReTWqWHePxqyhOvtgagQjw1vgPgqsZ3G1rKcyjTIHqyRwdJwTnP590Ps8AbmK+ykOWixmZPdHpyhr7X5LWCqH+jVvWj3TE4bh04kr2fydwrdXpNPDko1gj4WKYIYX8RMx+xMOh3qPuGz0G5Cnx9pFlc0pNCq9kmlcIVRczLhrfKHo1Tr8do+TZU6McS0ie3X9sUEugwBaLx4saZ2HC8IS/EzBMbGRkFpz91UARsa6oVpdGVsaGIM57UadUIg2Ja1Jb1nbgYlVdmRN5+p67izs6uGGdtbCRNcAQcsfs7VXVfXlUkWODRYv1/r5P0SW40guFfit6E9Jw6pC1ZBeJ0Md3leqP6af/6l9j6wmysM5z/wbgYGgREw4qH+EmMtDimJpJ29zjgUCD1z+ln+x1kQ84Y3laqrvOaN5fmDdy9Dr6Sw6BZmvmr/1PO+2DspHkfGoQk3i7Ol/uDqLvJpMrlQ/m67a9UmXz8cSkLk8kXjpCDyPmcGpGZTXiR6MG+NHgMc+i69ILl1gt+Dnxhtp3gIVGEMmYldn8Cng6Lx+7+d+dJncsVLME7tc0SQ6fCFrSZNWnNmz05KNdQqyAzZWMhJDFfcpy1o8HIufpSvHceIAjZqYrjElH75dUOHeiMzUAOA68qlXFS3tvbiyXc4koNrE6RaCFLFNPYua0aUCztlgoqkDDYsV8w3FkduyQ6cvJDh7DcYhI+xLvVnkowynCLkw/Uqj3YxTy2iio0tWxwQf5ws1DQPGdSO2JAi8ANbphgLQoqS3+rNzlNflU7FvbaFba0HVb8GAyAHptdaOW2pze8DAzAJBKTexBG4/Bm2hHOjaA6HqVXjorP4dHH3qG27eNdCcidEt1m8ACm5H4GNK/jpKe2xkyxklXBGmn1v6JZD/CBX37QKBn1HtwNHB6eDx/+T5i1fsiMbLUhVZIyozDhY/mNOqnnstzDbXArq619VGLej X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 63c0216a-f71d-4522-d2df-08db7ed04a7b X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 09:55:27.3488 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Q4O0zW74lQgnZyWAlwB6ccqu3uWLRb9Px+r4+b8HFHFPp3LdWcv9ruk56103+pyDNMykRrl2/OQpkpO+Jh2BJQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770755287071558932?= X-GMAIL-MSGID: =?utf-8?q?1770755287071558932?= 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 Fri Jul 7 09:55:04 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: 117056 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3152938vqx; Fri, 7 Jul 2023 03:08:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlHkCbEd8PDu+AyVN3pjAPExndSB9UqYU4/ucrEizdeyPWeKEWRNM5dZT8hMAGpgdJ5iMgA0 X-Received: by 2002:a54:418e:0:b0:3a3:940d:1fba with SMTP id 14-20020a54418e000000b003a3940d1fbamr3997456oiy.33.1688724482824; Fri, 07 Jul 2023 03:08:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688724482; cv=pass; d=google.com; s=arc-20160816; b=MJ70/1hurC3HznBmg1lkBiJ+N56ByT0sv11ScmApei3Q1SFwva+ZcdInwlyMunRHvA 62iz5M+krTZ4ENVf31yq4OYCu78bI32MASSEJWmlHBkvsOn/oCVFK7zmTuKEB0tN0iEv g4CoQBpZbRPqSrguBJJiHDK5VeCBuDXxopMEptfeBpUyl67MRqczfWOd5zAcSdz5giNw 7JugNHIxl4xZtHrJ47BUg+Z+W2sGjfzKn4EF7xuxT919Gps/SPm8b0+rNWZ8PjVyfLee ndyPTU4svCEujJQ6i2Slq7z3HKuAhXLG0R3XSq6EvnUG09VF4vy4Q2b21/LNmL7I4pA0 gd0A== 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=sBwL+zI4mb+mW6egFVLUovKjjeFZHS33m/jIhEGCPIv/N6FqNkMFLp0HKiM6L3ZyO8 3PSeVmFDMieRspH0FvNFHO7fqoseBUf0SKqdaDGo19z3H4fCgN3HbCTVVqzCsmqELy7u ydwtOvp06gh4kA0axzXqHbQFo31phq9vWawf44t0FoEcL3WPivUTw1/CLxzcL1PIDzk0 JSkNedXDxMkKfGTMCbgyMCDSVORxOY9D1u0jF/Vcy8fomAb08x8foojuytbJlwBncxOn 4hjbDpL3NJOdStvMcURwepKte0XVeX3Uc9AOVR6cZyRIHLZ5aapB82P7zKkJgSEnXvRi PXZQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=hYkGR4Ag; 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 gc24-20020a17090b311800b00252733f522asi1671264pjb.109.2023.07.07.03.07.41; Fri, 07 Jul 2023 03:08: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=hYkGR4Ag; 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 S232954AbjGGJz4 (ORCPT + 99 others); Fri, 7 Jul 2023 05:55:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232712AbjGGJzf (ORCPT ); Fri, 7 Jul 2023 05:55:35 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2095.outbound.protection.outlook.com [40.107.215.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F1892107; Fri, 7 Jul 2023 02:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TnDloWQ9shSLG6UjO0RcKwveiiEqHgctgQij5YlK7RZxM2CXHWYJorW+PRPMlnJLYrlldHdP4Lu/MnL7s4Dz5G7YdDlOCQSmoaJrsTz39RA3TmNF8vbxCm59D/eByGka22ZkROOC6F6/HiqfO1YPU9AVVR8pzd4YfRH72UkyOeMoRrV+FnYb9+RdgalQPzZIkzw3Q6gtUcMuygXmn0ps91557Sd+s8UA0eRMDz12OEblYpUMSHFdhfYiI4O4z8XygKPaocpqfczFMa9Xdc2PY0hRmpc9dO6mCHk3ONV6L6hP/wgdYQsVNsnK93GMHe9JP6Kq7PNgB2ImJVL1oU77Ww== 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=FjnKygDWBJpWHwPqAjONexeP/Pz9jeao43gHgzQMBfmyusxooSII74HQh/OnbH8jYbgqWUlldtFNgtjFsevx4JJTu2QtEfZ6nLq/DV1Rslknjm5DLetNmaQ/i6pfkb62mJ4GOTQBDNRx/8aZrcfX38/62NspjxD25CtcyMpMiVAB38ZpgLCRjCQj2IEP+Wjhy3otd9rHpmdkNoih7httGVgLEeXugaABaOFgoIbeoJFQaruQSbI93tcqtWg53QV4viA5CmIZ10tfo5fRxZyWlV6MaL3g/FcyqhS3zCGpBBVp/imudVuN6IXCRPdszYBg7m2/7UldZE58nDQCkV0QQw== 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=hYkGR4AgJPeAqjl08baE7NcFYi+gTKKfopWRXBXeKBNXVtl3PBDtbf8Ukh9Ti+xk8hgfh/2bGgPOMc3rt5sQZGYYUBmX2h5006rjNJ19QWbuFBN8Y843Xj4JiZAnORC1+E+VNIvoafVnIZGSyZHsZnegDpEthcDLXgLPPbRd/poUVa0+pZkVdzcN1ZkGl5wMPomtZnEu0duXDnL2B0N5ukuAk8i4tljy/Rwt/xOLihpwqlLrdKg9hn/LOoE39lLIkKs3qD6Ws9G+yuBKR89GqlHOXJye0vkSBDqI2InyztKM3j5Su5QYLg++Eux5Hq7711dPpHzvFDzvst1S1MgxXg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 09:55:29 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.025; Fri, 7 Jul 2023 09:55:29 +0000 From: Yangtao Li To: Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 02/11] ata: ahci_seattle: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 17:55:04 +0800 Message-Id: <20230707095513.64224-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707095513.64224-1-frank.li@vivo.com> References: <20230707095513.64224-1-frank.li@vivo.com> X-ClientProxiedBy: SI2P153CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: 172d321e-a2cc-4e80-08c4-08db7ed04b82 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dr5w2Igh6AGggHMbIWqUdTECr0XUsx7FtP5qST5zAP6kVlhbPcV8SB9uoW4S8/XdudrTA6DtJkuPApd/XbOg4Kqllvjer1DwJk72/8o5PRwFeOZ7oT5t/pOq6u/n9n6rfvXBNK5X+wOjEMPnlDCkQ0NRvDAVeD0Js5eh465TZXIODZ2xr8qXEbzlM4GSOMcO5ZoaCVpR+6wN5Kflt8iHMo2E4CVEsPbvYN3Sl0pSU6nFKv1DIhkBHOZsyhcnJh9FG/CtYoMOkjGwgYeORT3vasHqPB1o5Ap1plAvd9DAqGqLzLANV9q1U/G9b4L9kgQvHegQnHGb2RmvNeCy43pS0tjiIxpkO2KF6Yat2Bvb4la55tnw+n42kBRT5Aq1h6wRRYRow/hlF7oMcWLj5DP+WMCQMZFfm4y1lxMIGO2VjzbAnoOvcZIog012t0nTTgwDm34AJFaPggWP5TnNUXJq7WpJ416SeXBs41/dVzjOOU1onq8T13LxjvWOi8qEDDGLvav6Pket2JSx3pXvtn5bNJl4a6EbbomcluKjLXrBK1W3s/i27a1nzknx8b8qrI9hPujlAFqJC8PMIJCEEAJYUpvOdcVpxQMND+3Monf5EI+eHVnRGnaGDvqOVNvGthtc X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(396003)(346002)(376002)(366004)(451199021)(66556008)(66946007)(66476007)(6916009)(4326008)(2616005)(38100700002)(38350700002)(86362001)(186003)(6506007)(26005)(1076003)(83380400001)(36756003)(52116002)(478600001)(6512007)(6666004)(6486002)(41300700001)(8936002)(8676002)(4744005)(316002)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6VVGCb/imcr4vhCOA+oOYF1tloV7cgrMELXVjimlLR6+vmfswcJ61GsPmZTwy9Q/xH3CMIi0hLuQh7DuZkxxHPUMmjIalYqSx6yI3Hu5UEWeKLUKcSL4/GXFOjl/eP+feYrBJz/9H2yNYcwlQnz4xJ4tXDQjG6h2aMBnqUvIIInYqSZLJcejgknZu9SQ54tqPGCxKGw0IE5XHXLUC/Puh4jINWz2Ow/p0zJCJJhDwmzC74fLKp+9W2JW060Cfi/E1kf5kUn4JG6svLGzBp1KY+UpWjkV/UR8gS2+le+9RIE/ABKp3a/rMXME+p1b6m+XICiWMjo/2+NBklyxB6GSIyHON7AVuXJKYExAC5JMFCwZjZ3wvVWNt2UPhbjZpSKCl3qmJNJeKePcwy/u3/szrabHUxG0owol08RrJUY7Q0ruJBN3duwffxcT4vLZkG5ayP5J6OIJm+qAf5u6JiaOTkd/b9HbCWm9UM87USZhoLrqusz9uHlwBRiDAF6tABNW3laB5Vd9LsPPX57RGgwA42J7nqE9m72gnu/dRWs3wAA00riuTT+5XqyjMcL83quchB33yy/f8+WYW0nFe4ddNmalqmA2Fe0w04QG/l1UUnKVw84/h5mKxecwpHxneJUgpKnKMAiyv+ZE+XQvEni7G5a9Kr1T39eRxj9OKn+yWeaVpoH9wbIoQyhDsb3xDthL3JpFhNVnSMffEVIjEldetYkfbcYMMyTFoBzhfDtj9tBk1EjckjfYK9qDBJ3voWRzpMelDK7V0ZYc2d8xGdiUp+ATxf6dQtHy5UyPiBZIri+d4H3sjCIbD9Xgdxn9Maxp0mH+1Yul55ywSdqlfr40sRQB7tCoYCGBa7NEUiavs0V3Subm/YrCYemHsZq2gIeURCyXebR4CM63r4O4UKVQQYe5qLKaqx0XxKlpi2AptzR5o/DNB6luqoPTLRXIxj5Q7FLVP8wh/Mn6o0xhlhuWi34bEy2sugHDeUo2FwMehHHw6tClg87PVQwkyoGB/MHqV3+xRdjfvq3gyR9h7kF3sGOylQjOPo0qQereryu1FwfCnWp/rYZ1qNkv+4OBl4ThjybPVPk2Lf7FODWg/ty+WKi5b5aqEXpvYt2faMG1zk3POHL5lypkVYdtfgmsVphy+uH8eC8P7K7u9f+9367GxD9OBLtLQmIimkzkbY/lojaywZ/yU/YLpsaRVLtBxEb1iFvoqYVWZMSyEsSZ+WyMZvuiC9Pi7lsrth6xjn4hqOO4kZL/lzpNnwcTt43eX5SU+PB0gJ2yzFKl5pAwOHxJ+MXz/M4R9JpvxuR39Ml3VZ1X0dqYznlJGt3YHjp8bGKG35LWI9Q1h7ljAOVeHJyt1uZyei5cs8Jgpk+tAgAFjres19Uh9Yiqt4qLtPxjPh92as2+nNzB0sO6/NFY08SESIxiqoP3lpxtW/vEMSqrviNkgmOMNzcWlt2uy0x/0Y9MbdObUuOzyvtBiAsZH7x3WZ7bMeMOAyBuvudzTV4VY1Mx2etDVFdpoY6qxbm+BlXzt69wQKnDbnaib79UD6+gKs1ax4qhpIMyESoGS8irHHLKxlnSvpTmT6NcmZRDwVFH X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 172d321e-a2cc-4e80-08c4-08db7ed04b82 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 09:55:29.0137 (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: tLTvu2PqnWjbpEWNbtPp6mqSaSTBjIQhhAPGG9TOzRb5AOUOCGljcw7ggG4NA1AA+EpAWol9e5KPr6l86RPT9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770755963334072237?= X-GMAIL-MSGID: =?utf-8?q?1770755963334072237?= 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 Fri Jul 7 09:55:05 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: 117074 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3158001vqx; Fri, 7 Jul 2023 03:17:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlHffvaTTluX5bDKGNQyBK6XZughM/R0ZH5cvTQSxv6jDknRXpgHnRFj6uXtjMkwRhV6ysje X-Received: by 2002:a17:902:ef83:b0:1b6:b95d:768e with SMTP id iz3-20020a170902ef8300b001b6b95d768emr3145409plb.32.1688725076521; Fri, 07 Jul 2023 03:17:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688725076; cv=pass; d=google.com; s=arc-20160816; b=jmL+dZgqe/27zc0gFsEpgxqoF64fFJ40MCRJiwlZKccGQHmsHtB2SPzSLeeH7WWbdQ emDRCr+8RIO8dWIIUTNjRiN3r4HtZxtDLPDhBKJmcL7RgMpXNG9UPioZfgnL76ZpG2eI 1A+UVXBMVHHB08hUqThD8vv8MoRrh+bS6KUuIa5i3RtY4aFrMInObY3QhuAgOhv+bOlQ t2GWxGdChsqL4rfy0VncbKWNxUbbnE0AStQ0NGQZTKx8kabv2H+Z8C7ZpuDkn8Fx6RYK v5UPl3OQfk70Hd56mKMf6l2rIO7aqtXpRt3NBAatjUEqiUAOLwLStooK55ifLM93dGF1 OyzQ== 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=RubyAJd3NpHfYLD3Wo1ourByS0+6BFhtyjVn/BFgVWYzPdioKLO8cPFMo/w8K18Ya5 lv5021m5RzVhUeI6lcCYtv6Pw7zgZgBkZ2at7CZiZPoBKsrzjRWrUB90tab8Q3C+uxft BVodH8P0vlrGhPf9T9hqqWWZ3CRvJ5eGL0lZCT+Y6agTApCHQctyQySEOYIUWJlm94l2 anPVR7gptvTekSluigSg5z7KIiiRXzkBgqAlCmKOKWpi38ByAuB23OmtqZV77P8I6x7K /3XU/P7PLPCgYHXSuU88DvqrPag1VoKJ/lNN94XmLE3BGxzWEUahM5hVfcYr0ZgSOGYy hojQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=UDC5fKxz; 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 j3-20020a170903028300b001a97a54c3a2si3903091plr.197.2023.07.07.03.17.41; Fri, 07 Jul 2023 03:17:56 -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=UDC5fKxz; 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 S232818AbjGGJ4A (ORCPT + 99 others); Fri, 7 Jul 2023 05:56:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232855AbjGGJzg (ORCPT ); Fri, 7 Jul 2023 05:55:36 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2095.outbound.protection.outlook.com [40.107.215.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B566E72; Fri, 7 Jul 2023 02:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YoYnptBWhZri0mNHLy4d/7JAz3BOrBrecn+U8tQfZUei9/rmyOGat5/eCWLx1dbD3kANhLKIaGEYOl2AeZkLXXpu4EbqBe9BLViuMsvnARA+iUGAeL7XupSpzCnHFI3ScPx5st87UnNRCQpkrqTVpJjwQIBEptDeGeKcXtTymOaY5pvwV4OqjJdRHlknhXhdEKjq3s0mgF1FslDKd/2DDuvmzR4V3jj8Q4lgGLTMf4zclH6gK6Mnx2ADW0LOjzpxLrboVWw/d9gul73iePQfj7it+fFA83442NgnKe92UC5h2P36mnZnjpMBmSkQVsgXT/13zLNpo1OzD/ZWwNGBmw== 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=aLCx/Q7xEG7Vo3nnbyY+5inG6qZIBHKOQoTbaDOSiEgAPIu5rjhiH5uUyAjNt10ctcLK5XDIO1wllGeHKier9PSYyP0CBoGXYOo1Tnl9yyiR9xGIDUWHb330U6KUeccz+UB1MoBplhyMUWnbOLllzh8kC1Qg0XcksYjEqOoMgFG2N6GhG/BuTWuu64gjXPhyXzSD+8NphMs19i+kgq+7tUf/mbDBaP9t1oaUwJxtiqWBUq4x317Gk/w1epFgBTRykfdYxbte4zdEtu4U3SJIeuGyHx1fHU1JXQpTBSx7dKRp9KhuJBvnnZZBjBZNfZXkkpNmMGvBkRFHQASPu39KKg== 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=UDC5fKxzivHvidsxCOupRLqRzTnrbw6h1OVbQ9mIO5ck4U7sC/81NXTKAX6AHp7Iy7w7ywS5yRFKJtSPeR//AKs6LVZv/MR7y7rsVqjAbQoxWJh7qjMe03pJfPU80AwYZ2C/yrcRDcZ8Y/9406oo51+gDTpJ8kuqnCTsSYr+K4Lp06a9Rp7SVytqmZ9JtECaeoSr1uSSoshK/Ggxppor/OarNSKcrqng6ElODZ5rF9CXuYLp2T/ik/qAlSfntJ4AJSFSxWfCq4S26CpiLAJUActxzw4EwZYczn5Vt0fI/mUmW49/mFBBSzsiVbVQ3fcW5QAhGvQNz33PAHToGFPsFg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 09:55:30 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.025; Fri, 7 Jul 2023 09:55:30 +0000 From: Yangtao Li To: Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 03/11] ata: ahci_xgene: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 17:55:05 +0800 Message-Id: <20230707095513.64224-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707095513.64224-1-frank.li@vivo.com> References: <20230707095513.64224-1-frank.li@vivo.com> X-ClientProxiedBy: SI2P153CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: bbb23946-17d1-45a5-0625-08db7ed04c6e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nfdwRR7iH1Wuu0TxdAbjKelwyCtJV+O5BYwkCRGHZq/RJnCAK+vSr7tsS+pL1kEoG4ghZT76BmfFUzPBBaikJDqllKIywEnrRBLdrnvEuBM+V8FHcwkPLXViVIOo8CAQFymgcEPq9gCU5b67+1LEj+56H2fS0aQYTTQU7jhz7kkgrcr88FeuqMO7BDNfIE0lqd0RIWVt1nVrAKX0zOtV/pZdw28WrSZINuQ0dgiA/c2GcEkDj31NxQWcrX+qjVvrSpe4MyLCT8RYCBMGmqERjr0KxIO1LisksOo5Ocr+F2k/nUEAyc31IzZCXyqAKkoE/nxMNLefy5CrtLMc7XbMZ1NCVESM/9z6m1AoVg1v7SZzQwzuAvNpSjgDKkvtKlehZHMVAWakRHg1nqJ4+gvPQPh/Q8ASwMogpl91yRhRT7qIbvi2xSSVX3XUeKe0YeMGRkJtVb43G+fACj65zsXo3fkpTnDtn+wcwF3PKT01sc4KYuW7IssIuidzF45Lo3PxCGM3ORqeU0f8vm3fhnlu7EWsjc6IQRzIXyMOqwbtfX5d/MPtyYX942gAlV2ic7btZHlKNCUv7V3A33HVZm0jMk02AzyWJdKJ9ke/XrYuT3AYLxSXOj8gRMUkbtDWHy99 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(396003)(346002)(376002)(366004)(451199021)(66556008)(66946007)(66476007)(6916009)(4326008)(2616005)(38100700002)(38350700002)(86362001)(186003)(6506007)(26005)(1076003)(83380400001)(36756003)(52116002)(478600001)(6512007)(6666004)(6486002)(41300700001)(8936002)(8676002)(316002)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nBZrRoK06dHOpivwKNRTUR3YMHPH+B4wakTLECwcxtWYatvwdELkji0nKnLAqzX6oqdvhDSLCsAhsy806FfzpospcTSztwwt6oWJ3BKVaBLFyuVQ/Sa4MzT2qf3UDViXlXAuDZUBBce9FoSaRiM7LEBPIEIsJAlUrP9qwjMBV/Iv4RZ6p3duZKwDP1ookJd6KkfHruV9vOdwgTqtxgaobd6LQtlCSYCWzSxtT4XaFpUwycJ5NQIi9VS5s8B+ozMsiiCQZll8qHoYh7TdRLK6vcTEeOzOfDDZMePhrhHW1SAJen2UW7ws+hQwe1oMlyGP2p8pIDVd+dOwn1OW3/b9/Ds1+uge3eJZMp6MCszU0H3OTVu59ku9b6M+2WDM2LWlh/3yn1JgTTTwdsXBFZmJ9K5F+Nxpqf2HSsl4BVd541nWBWCdcd23LwFLq92DgoNL19qFcQzaA5GY/W3+O3MtrVkFNteUy8CzWeuY1x0pQgRzCZF5wF3zUvYPkuIyTWZWMyP3vO6RqVyibhm2ZhhnpD/eewJuqPpiNqbDeYKt+ybMK124XOgy3JpNl7KqeJ4K8RweoZeOSVTRXNXuJDMOuyrDgfPSZQRFvHAp9ZzITRSV97iT/C01GCQsATwBLK+h9RZC1usd5meeTwW7MLc1b3OIqu6O5haBp54xdZbKTPR0OyptculUPclaEQsC20bd5mMANbtV3FarT+HogAf8ck5frrPhZxJ9wKClsZmPS7u1BqN6uj8O0ZfkPYvXD97YXdeVpbV+rnaGTijSMH3Jqg/vlzOSp9huW9lv0aQhj0+ZTglNNo6yGg9RLyH9M2fKJHqyQzWKdAaBS96lbWgHv/6XgbqKaL21Qc9tQEUjSludlHSAU2o50POoxxrceB94bZwslitn7zNag0KYzNWHlmZfLLTA7c0TMzEkg67mU24I6Rul3fN/YuEicwJh9EmhckGJMpRPOxryfK2QPSG4R11IDNAO7W0UH9CK8XRK+VZOJKKueo9yk7mTarLEMLhOziMpT10VpkpU+UDxDPdAAWB7iOk081rg/z6Rj1UeXg+T7DZsXIXGE3i9M4SXCs5XP3k4t4s/aUDi51BqJZ9ZsQpQTYcTOYpkW3RPOsPFnmqa4GicfqT8LxqDGSod1/aqjcpLSP8n6WKQtMX6HLf3NimZpDQg0Le4l0Px5rxMkyMBrrZiqyY+rqTYRkwcBIkU37pRkZvHlQF56Kqu48fCAQKZMfXZ/nTrB7Jhl64/GOWW90mWsgPsk2jrEER6I+EDYb3VyeIuP/6SQYBivs3IHFNvuFWi42z04XdwxGg6/qXeSMFKy64AjfEWzU9DGodE7UOGf9cSBt0QXijQ34dWkYVhuXgbsCxUF0CKrVL2OyzuuV/5pyK2fIzWsepJ7Wt6YgTqp90ue3x9medDOepobSIKafY0uC60L2uMnvJpCnmcEBLuwzQB80jAfzsHNzF8FroGEVikQlMBu6vp6E3JlC00UbQTKTJT8qf2AFSiQDq8gSdy96xcy80uYKvGSb445PiiHZJqNDk8iYw83lIgomEdE90aTMkbMjjgelLT+hhQ/0vDVLP99KCqCChHdX+u X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: bbb23946-17d1-45a5-0625-08db7ed04c6e X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 09:55:30.5811 (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: bRNn71jG72fNuCQi58b1c45BjUOpoUZS+WjJ1YRz8NVh3buzO584+N7SJ/8yrxaSAXQTwcJ1rCuU7LfErga3ZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770756585834825160?= X-GMAIL-MSGID: =?utf-8?q?1770756585834825160?= 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 Fri Jul 7 09:55:06 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: 117070 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3156376vqx; Fri, 7 Jul 2023 03:14:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlHZdgez9n0sQ32uYjsEZBV2lps/mMKJa1YH8H0R4rvyM2hiwmBlUfGCuM/YF3Xjlo8N9G2X X-Received: by 2002:a17:90a:fd01:b0:259:24c4:4dd4 with SMTP id cv1-20020a17090afd0100b0025924c44dd4mr3397924pjb.10.1688724891588; Fri, 07 Jul 2023 03:14:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688724891; cv=pass; d=google.com; s=arc-20160816; b=N46C9JV9tsKz3yrZ4RwGivFrJFNuu22RmeZ/JwncUWFIabowOE4I/7HOmVN3567RZd ia4Z2BJvUwNlwbOgVIcLeCO5pkRa591oOzY1xKtc3aCR56VxES8DT+mEhB0rhnyLqTyL 5fx0aZohvFhf01C71oclcsWHqiI4KmZ0TbDkGWbW8zFhHJYJSb/LROjhZGsMOFLBGS4E mkQ0Y18t4N+fUjLwqpb6Tf6iFrNbL18LfDTbkGGFXbjf2kB2Tb16sbur9ZTfr9GqYGQG GJ1HIcuAJPnjhVWL0/RG+51+syVnIJLaWN5szNYkyW0hk0s/XT0y9Dgv4D9AhqVb8z5o oZ1w== 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=aNcpebnjxy7bWsJLD+7EG/TRrab43BVc0Rwa16OACCMtysN83tB1vNlLle/fiMumn9 9C/Yag84H7CwRlZrabbXT5Ioeknqy++vtMzQKxolkRB7jgX0PN1KFJX17GPktgpG4AVf dIjHhbZ/8JcTqH+vs7anH6U/Sk5RNajiLnPdKrzW0k5JMg41V5Z4wdcwHytWuS9wFiEN blkx0bMdllVeTxUypep3DB+wxJnc8zfBsZTVm0FNcBxMl0E88EApIrB43r23JJOGNVsx OfoWAb5vENsXPCqW0zpqi+5/qMyICO9pcpP19jdUTf2OdeNgeNYuqbR+RTVlKy420WYc FpRA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=CuuHLJ5u; 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 x6-20020a17090a8a8600b0024b9e5aa258si5924533pjn.0.2023.07.07.03.14.39; Fri, 07 Jul 2023 03:14:51 -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=CuuHLJ5u; 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 S233013AbjGGJ4E (ORCPT + 99 others); Fri, 7 Jul 2023 05:56:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232797AbjGGJzi (ORCPT ); Fri, 7 Jul 2023 05:55:38 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2095.outbound.protection.outlook.com [40.107.215.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F38E5AF; Fri, 7 Jul 2023 02:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aPcttlvRqlgOatcQS79WmQIQgrhcgdH0ati66GtYZV2JZ92qGACx1oGvuNtAAjSVOS9jcpM9CVqnwYq+d4UMUHesIYD4HTDaz3EZ+QfRaWwF7wS2Rspo8MdAqr2l1Suny98EDQmTnIj+WUwZhipv+sXdfqZPqJ9oMtZnpnVBerpUJqGFYgRvxnWCTrE81NA5Wo2GFiN1C1YfeDF7/deEfkC+2s50/GRmhgPU+PN3DpVLRJTESBiCVKWPaVYw9OcPMUvdxuPx2gTsieE1rVm1fEbuYNjrquM67nyaj4U21FgPhru2enGSQ71e1WH3M4ra6+YzzmGuTQmf2B3hs97l2A== 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=GAIblYBRtU5PPGkJLZ5aB8VbfzCge8PQ1T6lkUASjRAoHemxc/gEgfK3vWfTjM+Uok5qAMQ3nXrIGD66hScm2H13C+6fhXAmD9hPDyI3MnwGsUA1iD7hyvAkwJh/+xYtFxl9bkBUncBVVuRHUKBgRnOxN9/igW79c1WqIQlpNAvlaJxd/4oL1/SGVdhUohMXDeOQDRh433EBP3UjQDLjCx8Mwe+J9o1uDBz4HWfghtV1hwnfMXPaanATmzH1Kx11gnlclOfVliSsdXEUe45XE+WWZQnz6g0P7vrsOfp7PGJineA0fDWFuVSpxFigNK6i/y2cSvbvyyOgWbEAdKR3rQ== 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=CuuHLJ5u/8JIdQr4dVUEkSXPjza3J6aNhCebpbCfIPrNmgOZCm7wZu9HZbQkdv7Q+9DVhXBTFTthSTkSYz9eo7IPA1sz/mIZRouL7hKzmZ8k2xRExtOnm6Jkp38LOGY65aoMRlQK9WTqXD+wfQJlFchUPVKtqZym8UZoqelQYQfqtlM4lVLL2EY3jlNWOVdFh+sWhYnSwrrxBd0wknrHqK2DmfttK8uJQWsGKaIWmesrRh2kS0aL9w0tPCg2KPnaJ5B/Vxhbnred2UMNB2Oc/RIu0kLqekHkJcTD0INF0W98YLV/hA7wsNq9O/GC9v0zntbp7FapS97EYhb9E/zo/w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 09:55:32 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.025; Fri, 7 Jul 2023 09:55:32 +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 v2 04/11] ata: ahci_tegra: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 17:55:06 +0800 Message-Id: <20230707095513.64224-4-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707095513.64224-1-frank.li@vivo.com> References: <20230707095513.64224-1-frank.li@vivo.com> X-ClientProxiedBy: SI2P153CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: 8b9944c2-cb1a-426b-5fdc-08db7ed04d9a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: G2R50rkFAE3vRpkp/Ou88X5B7DJpNcXEma+FtLM5zEWfaBzDtqLYyDmXppn1KzhyRojYLB5QsoamiCNIEOrWeImUn4FU1y3WXRAWqZhCcbLgST753r72S26y4wzoW3GUzH3wqokqlnNEnxOrXx8LFDFJamlnQYwDGkHY9dSf4K9+Sxs3A4ekqhFsLsXTOxcrlebR4MeiRzmDT0nQ2n7tl8GozEJLw8/zM+D/lzmxhOO9vSpng10Ng/p6inV0eoN46vBvItfvjnAYV7ue7Y2anRyZ+G4yDt4goBzgKXQGuOHaPIFptQBA8i2rKcHGu/+8RUpXe7T6fyiP0w4qao4JRw1UH76f8m9SrDQKekTlBbUHbfjaILcGhjX42UWtPkJn9DF6JKRpw2UddBrydndCfrqVRIGqJc1wLO7gu6nnOBj3aQiMgwQAw49kRdj3K5hS++gWMi/hjvoboQp8bZdHrnVRV+cu5bjSv46lyNm3JfjsC+VpQLYhKRiE1p3XWq8Ea1RKuVafbJx86eI/HQRJgS8Izub2p8oEdNfhwXMxKw+tZhqL3kVJWZlbkOqAgKMKjjgPnU6lX0WFGwNOOfQ+NHuEdns9HOha2tl+4t+TXBHwxsJMpkdOn+HNE+mmUCUs X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(396003)(346002)(376002)(366004)(451199021)(66556008)(66946007)(66476007)(4326008)(2616005)(38100700002)(38350700002)(86362001)(186003)(6506007)(26005)(1076003)(83380400001)(36756003)(52116002)(478600001)(6512007)(6666004)(6486002)(110136005)(41300700001)(8936002)(8676002)(4744005)(316002)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eZPvqUQu6tPZcphSuUttVtqcdFBJv/i0zfyoc0yS6o2y/Pe3QXNi9p0iv75mnchkfA4y68crBTzXdNzju6PEzII4Oj4EHkwtrWMmREaCz6xe+b4lZZp13Nfy9AcPbINZOfFMPtp9F3+SBPDB6OXLmoesk7D88VMgvbwfLcyNiwKGJgnLqDSZcXEgcp9qKnzaF59dfMchxIjHtbY8SKkiOQCVj6FKzqyUnvc4TLOOKF4Ga7h/w3lB5E7CuJAw7ETPlobf/7KO9Y0FLw8lswjCSdDRwlEqSzghuYWFGyQ5xEAYHn+1PoRW1bWQ58XpqkGKFpr+hoygy0hqETj/nGPqcB6m5wh+WYg7iacVXuz44H3una00GEYB6RSztOr/vgtikCRZfur4b263KkkjFaTdcPhfqxgn6rIOiomDpH/yqFkIbkr7HS+fIFuoTxUMLgpR6Cy414/4QFZ74R3bYfxLDtRty1WsUqgzQKqE12u9G/6FReDxy9p5egsGoeTUCenBimCQCQaqOxT0yBwL3f5JiYXiHckcI55uDVGlyWvNeYKCG++NyA1+LQVXvOmsYlV2JwAxNHqw+avCEAPLlEKWSlrtGQl1uIm3eXlTGnl58i/P5ok1BxfJwlhwjAjBnJw5aUDCWjUgMgDXzzk5o58DgHBzExI/MJzviPWt8z8Qc98mVaLfiyE1YSua0yiaVB/apR9bxqPEGa3T3bOZaYn7dn7rlJu2eS1hK4lE5eIIU4ZVRu74TpErAAPL8ClkWfe/gIO2rKycNfZFMClpUHClEVIp3Pi0+AnvwOYrHOGR3CGJJ6bS35/wpWs1NZ/9Mx52P/CGsZtP7uH069MKSTaTAHrXIBaFSz+EP8r0MSEoF8dJuekGNWgxDFgRAzPQ/EifwIzlR5Jt3niB1+7dsGR/Y8oF8XsJ3aCwpRcUrWd5QfF7b+CD/2fKEJKdte3blK1KN8ci1KRWqq5E+F3WRR5xpQsiIQanhninUQczB0rW0DnoEl8tao+HiwDHpXt73Yo2drxkcL4BM7R1/KoGayevAGpkQdrxycf4frBw9d+E3Cd+HQZPmoxCUjWRueQ1xxp2DuAYtX0KnXubvP5bnLxCVXMcZ83T5RmkLEceGz4eYRRmlstSR+3WO+0/zB2AfgQPfRAKnh/o+bHOCRksPlDIZrx/5ja4Xmm7cnnH7gDgzSo/onqfCkf4QFStcEt15EyU02OXzPBixYYgM8zrEqKXk17lyD/5G4J573pmazIsq1zrUBekAbczW3RTj4RxV7HrLoPkakPGTbhZyuxeLPc87Za/c5bMeHav0RqFAcku2H0mIhaZuS704ZH6e7ifbMFHiR+7XxdoHRXPhvMAPpowmsqbD6NZahdbwH6Hz/e6HeeO5T+Ojvo7U9oRh39VD9gPeGYh7HZ9q0U3vneYsst3XZx/CH71IPg65BtxnCnORVbmPoXnudnpvff+AN7LMhHmfCX+wxITfT0DQ3HvPttNhL8UeqDfabgcPvmo6VKp7lowbUNyD63cxYUbA0aRIDvxTIg0EuDRJprN0+Kf0TDOOE8n3/MRivZ1wCj1W2VBUjvZZU4Ha3qOVsjFOVS+s1o2 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8b9944c2-cb1a-426b-5fdc-08db7ed04d9a X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 09:55:32.5283 (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: /rqMc2q0NfOfFshaMDHpC9CJg+jiT6ikIXbHT/GQLrKOAeJOJUS8dz+enBTi+td47ZuRK2MipRTGgTjCDJZG/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770756391843940405?= X-GMAIL-MSGID: =?utf-8?q?1770756391843940405?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Acked-by: Thierry Reding --- 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 Fri Jul 7 09:55:07 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: 117064 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3155320vqx; Fri, 7 Jul 2023 03:12:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlGn6e/YLzjKWtWbYYLIV617NZE1zH3s01b6abSGY3R7jl0NfyoqZg6t87VDqwXmppqcC8yY X-Received: by 2002:a17:902:b081:b0:1b8:92fc:7429 with SMTP id p1-20020a170902b08100b001b892fc7429mr4126629plr.53.1688724762431; Fri, 07 Jul 2023 03:12:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688724762; cv=pass; d=google.com; s=arc-20160816; b=BH9THcDlfEa5tnXa+mNuG3C3Vo550a0M/33mEnw8E70zAnxK33LqGNbLcAZn8b732G vkJ8rlUWhnCZpwQV0ij2+JAYWAhRRhEyJ5kJpk92dyUWf+m9o6g8CIhM0+4u+LBL17mA iQXeiLTWaxcMtepoJsAuOEX17qhdi30PvC6tzXhcpprkNL3sSLhDmaD4+eIzPy6rHqdR ejXZrTf1rdZQoxsPfWz3IafRdUO8coSBCUzGvXTqWBNKBLSALAo/LmfT9dEChDwMpj53 E6naqciiOqJK5NKnzjvNM0l1xEycT4CJPXV6K6YHJzj0hiYKJnNNp2D4fAXApYcQGwU4 RzcQ== 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=eZ6EW3nF9FBgSOGqtMO7sA+4CxK7678/Ifrog9feFnA=; fh=+mYli40csuqYWk0Z8DaHn2Zt4yTlX+r+uVJkhXS46f4=; b=fopfsaKKj2zzWtpU4Lv+mmyRTwb84OIATvwPivXVnQNW3YRMooGBhgiFSsB1Bzl6DG VhHA6Q0irWqA/8miYs20GoQcM7M6lG1c/rCGJYHd9mOHnkfmXFgxHidPYXItGAv9kM5T W6IxDRXnsqAlVPRQntJxvGN5cSJd5BWIL5JhaF4htYGnK5QSvPGmoal05qk6JxnOH+JG 1VclUpYCfEpT2KiPxQpCUkiXyADttyog0YeZkLcze+ewfemG+fWQmftR683prnL9XRQg Nthuj6XdJ1bn+W71Raw6zYyB9prC33LX9XRp4qC2v6uKLjETccAbU+/6YXDO36LS7YLc cSLQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=FRoNLPKD; 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 ku8-20020a170903288800b001b88f151c9esi3124665plb.123.2023.07.07.03.12.28; Fri, 07 Jul 2023 03:12:42 -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=FRoNLPKD; 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 S233033AbjGGJ4H (ORCPT + 99 others); Fri, 7 Jul 2023 05:56:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231845AbjGGJzj (ORCPT ); Fri, 7 Jul 2023 05:55:39 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2095.outbound.protection.outlook.com [40.107.215.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43B51210C; Fri, 7 Jul 2023 02:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZRwDUCsF+9QO1S513mvfJny5y+GtpLRxn8dEECG2X9dqZRwccvvg4yOohOpTEa/tQJ9CH5tKtteqYRlHV98/td3prHEEqT2284Ueb3WI65piQkba75R6RpGLJSXbm1k1U0XrEfReqWh/Qlqdx1EZziCxkPf/e2HBo7j5Zl3h11aPfu0Uo52Wv+aJiKAsqsQp0AmNQMxiXRBrG9xcA9XF1t2R+xSG6raF+XqnDXEgU4908YVpGeLnimFwWVkmAfDW+BDBL33oXh/5rKdFVRLqn9Z9g8aDaUeAJMXdvOPNiPU9eBRYMRlXRraB4MCS7tWEiRvhbCKC5S+Fg6GUwMk1EA== 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=eZ6EW3nF9FBgSOGqtMO7sA+4CxK7678/Ifrog9feFnA=; b=BUNGDbl3ulUtxc3FnfCRBtkYUxVS2r/ODMLbaAuuwDCNG4EZC3bsmrSCozK7WRJcWteXflGSjJx9y/xIfdLOh2H4g7Fej48IZ+A2CoRlXV9A+g3fL37RHxGjuQMBH6CXyxmg871casHyqBI2RSWwjmIv/fNekiTNqQapTx19gUdxfAxlnD6BQ+KPln15lSZzp2nk+Q76RwrqOH1kuuRJdF3sxqfj17RIi5G11IVUqbSWLm8yuWeE5LOvDgEs/xvTKv0sJzHIEEy871D6bvmm2y0ClHkoM9plz4r7x7Y4BAXmEgdsnMQyMsdzrO9x8r7XSELKIJpJiG1yqExsk2qmrg== 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=eZ6EW3nF9FBgSOGqtMO7sA+4CxK7678/Ifrog9feFnA=; b=FRoNLPKDSoCZELU4g0q9WyiZnbg5q8yHNr9JZ9L7QeK6PKh7coTIJmnhIwR+1hEMDQmSJ5JF7jRRIR/PXMqOq5UKU7po/wpi889WClkFcU7acda0KruUyH2BNcIuQVoqLvYJJ9L6FPWyl9Xpl/PsCb5vClk3jnu4Jcxxx+MJ+5uDWEoMWKqd9VAzVgeM3+mZ2WoDzGGGXnMswztY+ow46Zv5f1wQiwKwEGLIS7FYr6BjjWjceJ2Q1GyPw9c1eDauwOzcU3WYAU2VlfSXpQFhaF+YJ0XAkwSYqvzF/xpk0UVOCTwlzeMXEfdk+NtI3WXGrEFU3hjqKbs2PHtRGUueBQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 09:55:34 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.025; Fri, 7 Jul 2023 09:55:34 +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 v2 05/11] ata: sata_rcar: drop useless initializer Date: Fri, 7 Jul 2023 17:55:07 +0800 Message-Id: <20230707095513.64224-5-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707095513.64224-1-frank.li@vivo.com> References: <20230707095513.64224-1-frank.li@vivo.com> X-ClientProxiedBy: SI2P153CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: 429e2b9e-1d10-4d74-5d69-08db7ed04ea5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xCLWKG7c35mbONxRTv/nsiGo6ITsVwGIuWICL+K/CRKZ/ekQuzRp2ahq+4kRd+i3OeiTK51iRPojWU5yjCbZD/y2dNZmAFnQ9FOZ60oCUhAOKpZJIbpjh5hlbg/9qOlqhNr7mAopmfIV+olYRysZH0Ck+cxcpiVY8dGMPy0fSoMMlQTMVg2WdQrT66iHueSMexKAJalykO9e1Qo9eAu19hXBgDkuTt4tZRtTXXdRp1JfvBGDlCrwBNzTiw7ZgmbFMZ0jlqNX2f+uD/sx7KAVJBjUpjib7GMWnSTz+o/ViGd5bYxK2Rx4z7WuvGHqQNjxIrnFTBffhFtXPbnjLws7DGCS5NEs7BEILsTLbB257/jOAjlEF27n4oOVLSxePltjWyZGF42VyHp+4eDn/Bp8jEZSe1j+WS7xiU6BPnAbxJMAHLn2ArfEoWoxhP+x5HIBqQ4EENTCHBfYf5qT7Nz1CLDr4Ztp4emBc0USaEtjFJDXoi+nzp03a8ggb/FTJ9IO4SoJBjeTBPebwq7u/HuKoLphMoWTNpE6AVkpH8F8jiA80qUFILN7Uzg78yb3YiDC4a2u6hCGa1ePr1BxMv1yHPHIiqqsnFq6dRehxAcKs41xm97q1JQM+DZGGCnicigI X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(396003)(346002)(376002)(366004)(451199021)(66556008)(66946007)(66476007)(4326008)(2616005)(38100700002)(38350700002)(86362001)(186003)(6506007)(26005)(1076003)(83380400001)(36756003)(52116002)(478600001)(6512007)(6666004)(6486002)(110136005)(41300700001)(8936002)(8676002)(4744005)(316002)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Ac6eu6gjCpR0U4yIC9iM5FrBjfsvB/hY3sYFnneDrEl/fGsfy9CjX3adTdaQgPX0dNnEbWz5fc3RESDcx+C0bHhPoGerWcLq3Z8ZqoE5siTzICsIoZO4qjA4VLC8ab+uVPoZroR/TlqT6S26qVNbxkXd6BSyDQA59lKxwI0nCQNK2QYSPE5ux1HmaRFEcfe2FdhlaenN6DnGL/Jzgar4sUB25g7Z9Ic87+4TsKUscpIzI/FedTovpw9fyFndIaK6V2K7CDxXc8J2wSZpopIzJRKjOOD7G6up8gyng2j17qk1WENUXMpDsOIDE1XV5hA/R88QOWfp6oz2V9orFdie2oasMbZMVjdfGXLCvagHGOd68/PNsQphZiYqdP1DyHsl5QaYzwp3elNjI8y/bB+PPQm7MBOR8WcCv+ZNXLPjzzOpqWB6KxQBMxNSqx5ZebK26Q/Ftopx4ED3US5Y0nXQNRyPqEE2VBUFDj0hPtkhWJHssZuC6+kYmF9xrtvanSLEADaNDEyZ8RanulZZfhsOAowtN4Vmno7SC/fJYueiSGvgVZBTXCj/LSWA2/6yqrtU3dtUFglZxPZ3RIfoonztxznj40IyGXY7t7ZvVUtYfFLe/tFzB2Vu00vrsdQXbmBSONDtpd8ekN/jJoZWEC4khNKOx0EvMmhFD5aum3RNYSVzUT1QWh2LkG8bkaXgWiq4kibV8tqDeUiTnxQjIn0JPouDrfi+FZI6peDQpNJBien9xlonT+rvpjN1++Hxr+kV9dpWcK72oCCTgqgkSjwQwm60/mxl/wptG+RUWTkpHPLZc5kdSqHIVX0H4L8GQOMl9W1Y9OoGRAP7kttq2M0pxk5Ll9Uo3VxCFczcHNIenTLOV4KZ5a9lWbjVg47FfFPd3CLivtVQdXCO7mUqY5hp9LHbTWlfRlStH1Suv+GtTIe2X3/O5oo0bW7grVJUWu7VZv/FAiKjlV0qpdhB/rtg6IgbEbLKkr4WcvXuigytm7uZdeyuOnrkI4/ixOOhG6t0YJtrpdV2IJlabZdpXAIpCdjpiUtjNQEW4c6SCxqeDj7nYoPT2JUgcmU9BtbSWZ8rhdmLDKfuzZsNtCt2iHvCO1+lPg1xrjbR/OshYJIed9bt/P2qkeKvvoFUS3X9X/KTqxmDGAP82uYtmIpxSnjIzbi4GvzrxQrc7dtjMQeklKf8tXv4/G1h8Q4P7U1vI9++UJp71JP6Oi/2tvcrdM20llT5r7keb/zu0eJMdVSVST4dmlJByEaZllG0tS6cX87Spaf5XLVseRHYDb9/rqFhg0ikL3tdVVDxr+RHBKqw7UffQ5EViCg+vKr4j8TnxKZlXYs+UgGQbCEi0rlshP9K1RwyslHiBdnZN3RisFobeH5U/59l6DX7FrJX0mBOM69zrg9xKTaAK7sSCbOZv6zSQSd+DqFo4pgpzwDTfeQLFmriS1Jf2GrxHW/1mXnMhayoXCqhBptomqnmcx9zG79N9QhpF36OjzwqQRFQpgSxOE/9PSy6FLl9Soej+VTGoT/bMv9bjUi+IM3ouNJmxCHu9/DkvNsEhdn4S8W/H9psr3CnAvl/alQgnvpgXcPi8MNS X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 429e2b9e-1d10-4d74-5d69-08db7ed04ea5 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 09:55:34.2752 (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: iu6eN9zE6ImPNpSjMOIUmWtQ+50v/1alsYkZgSpxrTJh00B8WvQ6KNBquF7KrZV0xRQcGLQ61fhPtXnDDcvMBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770756256510630869?= X-GMAIL-MSGID: =?utf-8?q?1770756256510630869?= There is no need to initialize the variable ret, let's drop it. Signed-off-by: Yangtao Li Reviewed-by: Sergey Shtylyov --- drivers/ata/sata_rcar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c index 34790f15c1b8..f299b41ab3e6 100644 --- a/drivers/ata/sata_rcar.c +++ b/drivers/ata/sata_rcar.c @@ -862,8 +862,7 @@ static int sata_rcar_probe(struct platform_device *pdev) 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) From patchwork Fri Jul 7 09:55:08 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: 117073 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3157817vqx; Fri, 7 Jul 2023 03:17:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlF6Z9OqY2/mZ+EPnodJdmoqDsLMU3cBtQztAsfnAPEmIDNDFcndrSJIur6cIBXaXniglvAh X-Received: by 2002:a05:6a20:258b:b0:12d:23ba:55da with SMTP id k11-20020a056a20258b00b0012d23ba55damr3868934pzd.59.1688725052249; Fri, 07 Jul 2023 03:17:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688725052; cv=pass; d=google.com; s=arc-20160816; b=fzPvjJvOfU4SwtQFzSCX3DzEp9ijqeRUcEQljTzY3qaFbxb3HalRKzNyipMTR4k12d DksiXDzkZTOzjlkdvNWFn3+FTsML059Tykopj5rbds8wB8kGZf7ZiuubYQ15T/gd3TA6 WGjbc5elQMMB2Pe1WoDzz/jnToll0H+31yVjnrq3ynidIDp/hfzfJr6eng2goRapd5rs C22JjPMZ7WlXQ9LnkQ46eiBN/RC5SxuUJQHEYBnO788NGR08FS99SCxEaz/BK0hy+8Ke jJjxqxpKy0KLiRo6yQJUI4iEkFLxbWWixWxofxk673QQyPmQQ3LTxPQb4PrsJ8Yf1OW2 DWcw== 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=Tk8Zx6CrKzQ3NZBVW+Uu0HKZvDqlMr64Zf0cUpm1qx8=; fh=+mYli40csuqYWk0Z8DaHn2Zt4yTlX+r+uVJkhXS46f4=; b=AQ5EwjQsemDwsr8VW3vKzr05l2/HGuXqxCHaAoAtSNWLpjNYL1AAw+x/mptZ0MjPWf xZ0Nfi/0/JlLlUzEzneu7W+GsU1ym8MfimP2NJyChXEcUyrjOVMR5D/kM0EpfB8HtF83 JaQsbiM/8k+yQhlQxsSl2JfgDFqXtosBZOYy5zoNLO3aZa9gZ0pguqOjBAnVg4HuN2j9 TFpthRbkgO376lCZPb2fPaN4LOpYPftXEHlVfC85CbPAAqBvrmuql3nryqQNUALIJzyh z2EKH9JkkHJMYJlG2drDeqLCwyhv3TfxGv50QX9oOt30xbqM6vMkUYNs8XCn3izBfEL8 38HQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=nR95alaB; 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 j3-20020a170903028300b001a97a54c3a2si3903091plr.197.2023.07.07.03.17.17; Fri, 07 Jul 2023 03:17: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=nR95alaB; 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 S233038AbjGGJ4K (ORCPT + 99 others); Fri, 7 Jul 2023 05:56:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232831AbjGGJzl (ORCPT ); Fri, 7 Jul 2023 05:55:41 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2095.outbound.protection.outlook.com [40.107.215.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 950F22119; Fri, 7 Jul 2023 02:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DS2Zz9XSjLy60ReM2VWFoC1On45rJaZLQmtXc4dzoGJa4gkCseWBIKGdDB9tEtWaf4xmj21wcaqKzJPZEDzbdicoK5qsvxJ27PByohHzTSN8MJFAebYUc238/W19PGeBUQMN/EZje/zN+Qg4JR9vL5gekPVORzCyKvNHYN86I4aIPAknXDMyooH1IbuwaE6lVabiq7peOh6oWBpNFkD0Vw7DqLE5ijS+4Jxal2xdxxfzhW8rouy31K+Yj/BQER2Nkn07uZhNsVAgcHJOx9AU52uTdbsugVVySBYyCjfY55pQzf7l71JXuwyMVvUkprvk27aAoCEUUjjWIIVqoWKwOQ== 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=Tk8Zx6CrKzQ3NZBVW+Uu0HKZvDqlMr64Zf0cUpm1qx8=; b=IsZ4vagZmVHkBwn05XB+e7MT/jL/ablPNlZaM6nOJM0fdZWs2tG2he/ynP1/IqCN+DW1SKAiOInr4WgQv7UrcS07ddSPvuid4R1jEKrCj1Bv5KEnnC9d2ei2+yKDDm/I5iHgoBKzA8xNqI/nThs231Bl3Mg3GSOGDUijVg4C78P0AVGrQ+M37J5aM8yHaDsGYhpc9efkUMaPe0Lgc/vvaJSF/aFMas+oZi6lfJCDgWFeCKckAnjUsq04e8CPCOKQCzncYvJVQCRVh654+PeJ6PvrOlKv4K9P5Ew1IagD3ccUHa8GIK4CkJAmrJ0NP0TtqHUshEEA/wbdKJB7DpAOjA== 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=Tk8Zx6CrKzQ3NZBVW+Uu0HKZvDqlMr64Zf0cUpm1qx8=; b=nR95alaB7KaZHfgN51wJiE4PpRQWzue4xX2tkHVnTw/JForEfx6kIEwimeugwOhbB64PMhnjkZgIK34umUaoW9G4KeiqT0JdRtqNO4/oZjnpQlsSKEvN2Wmf5+m3YsBT3c3eMSzEnNsBX33n21F1xSZqe8e2sH0TciCa4UWZVK+DznBvIMIXMkbijIwWfUSNOaLbVQ5zDDTTLxxZ4NQkMNQqkGV2P+ag852G7px0FxIODiHJ3NiHXIsopM959K+L1mmlzEiPwR0kDbCOZgKr+u9rExPW0n/yTacjdCL6QGSsS9eh16E5dITPdg/9lIw8v5Aoej4QE2017JDZPKaU8Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 09:55:36 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.025; Fri, 7 Jul 2023 09:55:36 +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 v2 06/11] ata: sata_rcar: Remove unnecessary return value check Date: Fri, 7 Jul 2023 17:55:08 +0800 Message-Id: <20230707095513.64224-6-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707095513.64224-1-frank.li@vivo.com> References: <20230707095513.64224-1-frank.li@vivo.com> X-ClientProxiedBy: SI2P153CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: c1d05c79-8ff4-4d06-2e11-08db7ed04fa9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: L5nZ+DTcOcdQpDNTLqGdqx9q2tLQOVh7P31CRh6sGfGGph6kzzIpDO+h2MXqcszoGI2aF3Fp88xKcdjAKk3ITaUTTsqYDTeACNLuzvpXL8oEShQjbaLA1pytgzNbGJk2q02JBBFMGu414WwHix/NykE/E8f/hiVRbkpOt5sF1q26zMxpFygEEa4TromKbY+JD0aYQm8R+/OpM5+TmGtruUSm8ZAs+zla7NcnCR5N+EtjHYD8uOSRkIxA9yQ8bc2ImAaJZ4ciyfHnST7fmDuPHIwOhL7PFyy/qWwmBvAJPlSh76kEOULlLbZ/gM6breZtDjhNWFZmG0j83XhJdOx3DJMqMvrgEZiLx9qnTfBhF2+4tgnX+PeLm3mxVkNvDvFWXrqq1+onFq8+LIIAE5f3s+wd0EQdzpVChmKZv4v7GE+zr+sfTnEOX/Gj6tiwuG7grIDHSBd74F4hb2Vpbiq6FvT0q8gu9k+v705Lj705Ji7INy2Z8MVEq7W5O1heXYwDsckLTBRECBQyxo4295m5u6Bpfsd2KaFEEXskUPZdaMeBKN1XXnADVceJAf+328B8yS/TuL/aU5LmA7QbmeH5u+rb5NnBoIH0JrEjXypFsXm2g66ys6+yFAGKpjFx1h1V X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(396003)(346002)(376002)(366004)(451199021)(66556008)(66946007)(66476007)(4326008)(2616005)(38100700002)(38350700002)(86362001)(186003)(6506007)(26005)(1076003)(83380400001)(36756003)(52116002)(478600001)(6512007)(6666004)(6486002)(110136005)(41300700001)(8936002)(8676002)(4744005)(316002)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vX+QZquJA0/RW1HNVXMJfA9ij5Xm0nZziKnc27C+iGmOu+mMjAHl8jyAu3Y4W7YT7mX8xxhV4ye1T6CAKP64ynFq+kiIQ7v/ATCIo0lx/RZQEp3hC4F/4NEJoCcJr+o9PUHHi5Np15cD++QWnjzmeC0sAZ9tJdLfqf5ehZpgRSQnx6mil1m/h9sOxMloN7PNiZh+nDvjJcBGc0tUoRjgovMTguqkhqSFmknVEXqn/mGZbay7Ieuve/o6VfrGAmCc255bCUJniuppQbjUQtOJ58sbT8zSCK/+9y2JUaLjc4aWkNTywqeLGXfU0VkVOoolUH4iARLOJI+okhTIpxIQ3LePW0XhP0Bnyk4Qk6UgNVhq6XvaqUkSUty8XyAE4W+fISGQ+xAqlJkuziSTuX55Gsi0IGRCeVrQzN9BuziRp0wtLLT8Jd0l9Nhou2FNxQgZvlH4kI0ucDWtxPXwBRp6HtA1eDLxzlvNcuhHIO6rt5DRAhoDaOoSoy+ZEZ5N7AL19AOTZkPWS6cVDa3baSsGmpD1+ZccdAnaeY3Nihg469DYJlOg8UQzJwyqmpBZbR7Dz5I5Fbw60802VmfWMdradTR7BuQqtGOQAQ0MAkAXDc5u0kFfLLsRs/lHd3P6n8U/BatrXLNVZMxSMXDnq5XhVbJ3va2YPPMoB5IidY3lgMbx/UbaB+FnIft5i/ndFSFaOgtiXC9bKtoPJkIsT1tGRLKvxAdGdTwd3qq70BXOClFSppTiBsiByn87/LeFiVSa4fozmYWENQf/twik7jxWSqoA7AINLBp64cnJ/itCf9avtyrXe1+BRHnpt2o5U+zwrjKKcvIsCT57Zl4T2coIIssnxx+I/0aSmYY9xYGdo/l7rZu6kCxJkj9a9BGDyBiX66fQTlUd6LqsBUXzIxe8Cnmkh23CuKhQBl/teyUovqO3mk9mnJFLMD0GitVixIbReiY2G9Z+W/1DhSX0SHzatdruEuPWISK0k/4wMIXrCwERLGa7FYEI/CUjOLwIC6txW672Yzz00JbA3Pktg5vVDAd2aMTcuEesTXhYmiipwsyLoNWV4yXjFlaYhE5mIYpu0mN3Ya7GAePZpnoqSDzMEH4c7CBXxnKsOIbkD1EdmiIJ9MTTEtbHzoTvfLOFQLSQpKBbf4a1X9Ti9MfcmE9enU2kaB/d7bfq91xvqRlPkkSbMoxwbLBYYWf5m4XOyRSVrdM4vrE2PwIaXFDpU/1TRdDlNkASKc6p5puAr19DAzWi9tnPro3bcaATbmTKzI4wOOpetiQBCZ4mutsI/LzaeP6F4h8w1d6cnQ8YLyoLDfNip8ueh+yaYr9uYxbQiwxTkS0jIm3WISEM0ToZ6LNMtta+keYb6c7GrI9VWWIutMUg6BKvw/OsCo1Umm6AZ/soqu9AQT6eRFeLzRjf1aaSiNweqtZxCkkRTl1yqzg4V3eUNtaYQ45f9Oz6TK3Mo22srbaoJEunySiLBXAiW8oatWv5rTbgWRxb1zmChBrfgosWCX+CgW6sn6ABGAsj8+A9sF2MoeY6+UmvcGHgfWmwiDqzFwO2geDhFNCrEGaG8f1vlQwDrVVXqsgirMCBUD4x X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c1d05c79-8ff4-4d06-2e11-08db7ed04fa9 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 09:55:35.9809 (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: YPU3scDOVMtlhZYqO2GN6/dUxH5BzWdhNVQwuw8MTagN4THKUKRdJvQDJjocFq1kCQ+jg4lJioOQYsEa6A3eEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770756560204341273?= X-GMAIL-MSGID: =?utf-8?q?1770756560204341273?= As commit a85a6c86c25b ("driver core: platform: Clarify that IRQ 0 is invalid") says, there is no need to check if the platform_get_irq return value is 0. Let's remove it. Signed-off-by: Yangtao Li Reviewed-by: Sergey Shtylyov --- drivers/ata/sata_rcar.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c index f299b41ab3e6..43c55ac89daa 100644 --- a/drivers/ata/sata_rcar.c +++ b/drivers/ata/sata_rcar.c @@ -867,8 +867,6 @@ static int sata_rcar_probe(struct platform_device *pdev) 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) From patchwork Fri Jul 7 09:55:09 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: 117068 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3156342vqx; Fri, 7 Jul 2023 03:14:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlEAtcKfgKkpqO+KKLqlZkbbnA9x/T4cqpdb1np7l1H2/cjG/F5WD+Mq9MQLD6UesMJaMRr5 X-Received: by 2002:a05:6a20:8f2a:b0:12f:5f2b:cbb0 with SMTP id b42-20020a056a208f2a00b0012f5f2bcbb0mr10982923pzk.23.1688724887004; Fri, 07 Jul 2023 03:14:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688724886; cv=pass; d=google.com; s=arc-20160816; b=rANQPATtrDRqHWMECc7O9rKxBhVw0i3xWYbBjmMTlNub7ym6gQYQjq9seplFbNjmja 49Xken2sr9i4eRxOqNaloMsQQPlIu+Ab/XOdPgzwjFzkrxHGBynof/w+6YDyYTAG3x2d Iqe8JoX6CuhF/dJ5mnCA11l6D256GRnyrNm7OHfn4x9+rADNSqnM5Ib00RRBsPpfCbN0 EUVDSvvHxiJzFd+ox0VQaam8rA5hsBbbXoJYuSm9QZt6gvbgfw69A2/ogkcNUmD1rUYN PmNX3x4ZFF7yrAe8f+FRzHW31ma6+I2tjh+scnAZihuenRnM3kw+PwneSbsREJBISMvL bFog== 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=AiGm67ePCX1xaCe+CiexNCc4ZDy2lzA9Mdjt6KyrAr8=; fh=+mYli40csuqYWk0Z8DaHn2Zt4yTlX+r+uVJkhXS46f4=; b=N8iXD5jc6gPa41w44tQRnIA5nk1BXS59wkdGA5C93IAjLiMUi3Z1Isawz7FjKxbtgB sosbPZXYN3HJiYaMCmZVxKqx/rS+SwhbI1sv1p37a+Y3K1mQjMsYxlpP+W6PmGSuEoyx iN+g/DIQKqdoFsk2yjV2sM9MGPl+CbbX39s43Nu7sEOHmWXOMfc2YryOVWJLavGoRDnr aAcnnaiG8z7GURcpw+T3MsNcCWQ7OH87oqZitskzbNTVEmEoUCP+uTXL9D1VLfHTYvwC inpljzH4+Zlrgj+VkE/vJOz7VPm7ck6YO2MGPsKp27yzXylz2BSdRFxDMXjOuzggFc2v A6Lg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=f0+C3iE5; 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 i23-20020a63d457000000b0054fd0012d40si3466597pgj.316.2023.07.07.03.14.32; Fri, 07 Jul 2023 03:14:46 -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=f0+C3iE5; 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 S233062AbjGGJ4d (ORCPT + 99 others); Fri, 7 Jul 2023 05:56:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232874AbjGGJzn (ORCPT ); Fri, 7 Jul 2023 05:55:43 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2095.outbound.protection.outlook.com [40.107.215.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15A3610E2; Fri, 7 Jul 2023 02:55:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HGEDfdjJD4ne6rx5MiSnWxJ0dLY2nJA8WwijoFhfMu3UtJGfb3OElOD9+qgU9DON1HF9x+By0lwzFVU0V1OoMe/WTD8O9SxKCsuXKS52N5TPL+UFBOFXPd3Xy/hTyctIkhnbjctXdHaiOz12Tl3Ypgdg975y28id7HFS2WzI7cHu13YIQpLKofjXDgHFiOjdWjipA4Lg8Z6LHWiQigaDKIafGYRYOWQ49BqqIc7I2D9Pls8i232jBGDnKW5UtYQ5ZClXuYTCdXbkmy2MV9LrpkpyVBUEcb108vwkAVcnICZma68IhakS3WlrGIwMzW/6YgVSKs8MkPbFWmllyRjcVQ== 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=AiGm67ePCX1xaCe+CiexNCc4ZDy2lzA9Mdjt6KyrAr8=; b=cVmlrWN6BPim4RDykg0OUX/0p+7CrFZK1Y2J9362WTnhm+SEd1mPXnpd2LxY6jqbZ9JBZbKzZxtx/KrGq0yrm5/SLXpuoLYyaOGihv/+tb+Z6U9jMYuIvGKcN4Oag2PnmThccrVCPW+U0oo0/dGD26VI56aGSGo3ukc+gHRxFf9zACMwKZDvNfi9hsoo4beXBpjNvfL3a7nAc2PXvZgMXh0JQCweS/8XGaPJT95OwJsSYfEp30YlANCzsEMSwA9XeU0f4YQBEf6SwWB9fcBUgalu5FEZUilj8b5HRsYqT+3kqeiwSad7OBEWr9KW5XkXA5ef/jz3+lJ3oT/7JA+K4w== 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=AiGm67ePCX1xaCe+CiexNCc4ZDy2lzA9Mdjt6KyrAr8=; b=f0+C3iE5giLLYKoFsb6rW8nLn4Wfkb1Cs379uQkVTqW2Z+CPnU3Ol2E4ddrOWdvXjtNZx+37b2uMC8NiesXg6rlqraQnpf4zRKx6UxqshkNGIBfPX99IVXXlcgfh9ZPlHFGfTMT2gFeKeeTmJ4p7v7oO5zKGjI5IlObNjZxISwNsNmkDBTPfHL8/2V+Nhs9eyPBgS5a5e+GUkyyZic/aLwzFs99EenmMf8dlqrK9/RGJulvzDygauEtwkwrlo4CYrq/nVcC31tzmgIuFeIJZ723MfpT/vzjEsvlv8+HWuei4E6YhRW1Rsnd6C8D3IyF/USRNsZdYhkQNb1fWUZAJvA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 09:55:37 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.025; Fri, 7 Jul 2023 09:55:37 +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 v2 07/11] ata: sata_rcar: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 17:55:09 +0800 Message-Id: <20230707095513.64224-7-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707095513.64224-1-frank.li@vivo.com> References: <20230707095513.64224-1-frank.li@vivo.com> X-ClientProxiedBy: SI2P153CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: 2e5cac86-9d86-48d8-ecf8-08db7ed050b8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Jj1ptkEXdpiGyjYH0OmL6tPeNdK9qEyFPvdspRBy5pDeoLPQSa3wX44TPMrRbW5NW0N63puMEHjyCg21o08lLaRacKDOvo5rkcJtearBgzOub/s87k6p0Luv42HFcETF5lCCLVL+/rAK0UJzWj0pBlymiQodSFm9sitp9f6tAUZgbcJ5E4XaAAlhWEsuV+UG7kuTFHFVO7+zWWleI5r8PdyhnfESDQ3S+I96iGx6LTqnlDcijWL/qdcTD0X5bxBuX5LI8aWOwS5QK0yexSKF/mJSbTWuhcVA1+WxHzQibTDJIczIeJ63nplt2beGhhZWV50p1hDrbkkMYuwSSG6IKj8xQVtotH109Z2h2VEVGlykYowjYUiVilvmuXQHOIQBwaYsjGw9W0mVqLQJ2N5q9sZiF80whXBFDT4jHS1fUFIbeMpMfUg0Bi2T5JZZWhG096p5Ce+7OfmBmQ85v1HrrwqBgt3egKxFIXzDHwC1j6Uw21vmEt8cw5Gh8FHR5IgUTj2eZGBxXrMZ25QVrjhCIs4UBo7AUTRuZp41FhTPgSmNupdN+HhwAtZkPly7TNfgAR/dVobM0houIUic0BfKd+FTLsW6J2FL7MHixAKF8S55Xn350HAUgvJpy08hl6hF X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(396003)(346002)(376002)(366004)(451199021)(66556008)(66946007)(66476007)(4326008)(2616005)(38100700002)(38350700002)(86362001)(186003)(6506007)(26005)(1076003)(83380400001)(36756003)(52116002)(478600001)(6512007)(6666004)(6486002)(110136005)(41300700001)(8936002)(8676002)(4744005)(316002)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JaZH0S67/h3wn3iw6Gr1lt6bvu2JArEhz8yh8vr6eVtyOxoZesDPUHFaJmw9hxhLluVSlTpZQjzOOYAHHuM+z9KDr2dSkWzS1PcBZCxxWhL8IQxCT3IFnx28I1Kw1FopAEmOIAzUHFjxvuQUlw/lBXhQFPDl37+/vkscK5TkESONbiH5OHfOeTEg6iOZS31tXWjAl/WtRTqIOadX9gCs++8MhH6i+DHBiNnVOPABVW8ISKFhhAnf1oMoBisJLWI7ZXV89egZ/uUE4kPxF2CB7uWef9jS5Eq7HpS7QrJByJKc0CgKtffEheGsEYsyaDvlQaIMKjrxdZCMweLNnQydmN6za0F0OG+z0bs3avbKggwROXEoePKMzgmWjLj01+HoDz/l4bj46ZfD0OW+/mEgdkMz2e1fHWDTda6HeMPfb+MQ+iHNxNAXbwkXk+M0U9AkN7IT9IRc1bfrhdDK/AG/NV2dD2Ftd1jo8OZB6pmo/hcnrSZ+odJMorR1Stig2g9iSyO9KY2H2968jkRgm1CtIEsgsyPxZRRiwwBPpPCpRu5FJpG59Q3gpw7NKil7JuAEQFY6aMSBxEPmqYkYuIYPhZaRJev7SNsYn9T1PBgkyc62cCUVBkJnTpJEGW+fN39RusnGmOHFL3R1Qlu0NQv5csH+nK7Oynw5KZ3ndMs6UI4LViT2s6zD7p4O2v/icl9WsepCYWKoLPgvZ01dgxO7ETxAeUFLf8nqSblhsmiCUJ2RMug0d7dawq8IpE4gIETlBnW3613w0hFewyMUA4a1kyNK3OjLBbD+R9Tcrg3Gxrru0FJ+4/CAGWAbYL98XQR/dKE8c3Jwui7VIie9VdsoX6mddgPBGtU+RdE7CnzSv0/JtXf7K5/MngcmmYuvH2YziSZio1cJa0ruGi5X9AvFx4iSiaI+FDBl9NvDAPZTGFqUux9jQVufS6eMf6ecShhRnmwKF0KoyOlqZa4y3KaF3moUNvTEhsemEWefO2G5QabBN7LSMH4ZaMsf1Ck0WahqB/dBJRXaJrYKDv2HrvDBqBVtVid6/aN6GfgtpPqKrIdW+A7XDlO7OIPGyaGqWuQTnpIYbRIhd8e0nrYEPtvHJ6Q2/YKaldBmrqy5jQOMVFAiMqtTxEQPdmCqYc7+yYu0f0ozvUs3DNVyrCgjh4C3jj1xCqE2ERaJ6s/HjpSY64KYuQTFRTdfzf1NRwPq9huW3Ru+X1lChi4ikVpTfVkoVA26FDpfs6C3imFuaB3KTeHaf3EggMsObBeCaIeIG16sOVN3y4wJx+9JKBTABkoQuv7/nnIE2aeZJqzvew71CNPqNGQZvUx+1VRsO06SiMIsLayYWafNnujkexeVTG/GdMSpQg8YOJWL0g2QGEhFWedAJ51W9LFvJ4BDSLy3hW9Zg5TS7mgfpJC02bmGaanV8+ZJ1Cb0XW9jxGKbhsg1WTW+5D7COqQOKlj/LiZuU9129h0UmLkW+wpFZpruI8SLzTfmcW+izYJyzSWlDoRZgahGnNE+hl0bT0dEQLyB72YNSwlU3JAzUXURoWe7P7AM67x36cBuNsoSMfp0y4VfO82YidVXl0KIdvPtJZmoahsm X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2e5cac86-9d86-48d8-ecf8-08db7ed050b8 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 09:55:37.7632 (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: X1vvgthKqEeZs6i1OB4HYqX0QtiHok1kiLkE4bECteVE+Vz8ntTUhMIt5E73WjabcBuhxn8d4v+hPYwxT24aKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770756386846397068?= X-GMAIL-MSGID: =?utf-8?q?1770756386846397068?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Sergey Shtylyov --- drivers/ata/sata_rcar.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c index 43c55ac89daa..63f8337c2a98 100644 --- a/drivers/ata/sata_rcar.c +++ b/drivers/ata/sata_rcar.c @@ -861,7 +861,6 @@ 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, ret; irq = platform_get_irq(pdev, 0); @@ -887,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 Fri Jul 7 09:55:10 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: 117078 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3160280vqx; Fri, 7 Jul 2023 03:22:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlE2TTLk/FZO06uYFYqDdYZekIbe1oC0w5GhlRiT0BVqs6mwXPkk3z4sZ+ccem4OF4te1tV6 X-Received: by 2002:a17:902:bf0b:b0:1b8:4f93:b210 with SMTP id bi11-20020a170902bf0b00b001b84f93b210mr3850567plb.45.1688725357244; Fri, 07 Jul 2023 03:22:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688725357; cv=pass; d=google.com; s=arc-20160816; b=k0wmUxnUcfURvH9Tezl9m3jRLT1rXPbeuyVV56jjKcbBBDzwdxMjBZHyhBbDm1xDKg YZzhT+COf7uAkbQJjgCsS5IsK24llPGOy0CtPgLykdHY9+6OPFxY+aXR228u0gMgVxYI RhM1KLy1b9d8CIQpp3oB77XbRehLIHBEjq3lFZ2Jz/bW0xcQ7y6FwxWpK0oG1DtCndPc Ze3zXRhKQvXZVcNGU5dmfFX3azm8UPdEvOI/Bbqza4QgjxzXgZUYf8jH4ZpMZpoQ/VPi W+Nw+CBq3oMfyPExYjTN/wWN06C/gCP0EnuWgyFIz8eIBilynIK3wqsSQiSQZYazM9VF /EFw== 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=tJAvfRMxI6sMvI58Rwr8yWutZsD7z584ezavB/HPbPk=; fh=KemUqYlx44+jLiX8LKEgRFmEZtcjyKeavCeH1++RIPw=; b=v96NwurHFRmlOWS46em/9CrTpGaD5UcH1+PGriC6NuGWORw3CUBIVGHEszedwf5EX1 C2BGP/uUKzm70tXcMzbA7eXGscnKqAho7bP/IozIW7mX+PqtXp/+i5ijVE4FKftznGEI 0scvlW6IAhAoPpbzSlZQe8PDVTt9ghNA8c9Sq4cfARAfepgyKD36h/H5ytEe9JxBGCdj Kr/4BRJmhNH9/iulvNMYMMlVLJmb1dZs/cD0u6pWdbI7tMeR7DEsu1OuPs44GRESGZJg qYaysyFNJt9G38P2dmuphfGUMRb5MltmVJr7nQVlng4P/kQAjNCvRWmKUufKvfqDBavG TcpQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=QdmUyFip; 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 j3-20020a170903028300b001a97a54c3a2si3903091plr.197.2023.07.07.03.22.21; Fri, 07 Jul 2023 03:22:37 -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=QdmUyFip; 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 S231866AbjGGJ4i (ORCPT + 99 others); Fri, 7 Jul 2023 05:56:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232888AbjGGJzo (ORCPT ); Fri, 7 Jul 2023 05:55:44 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2095.outbound.protection.outlook.com [40.107.215.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B183170F; Fri, 7 Jul 2023 02:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z6ROjTqtU0kY3n2hjPn+rGd9q+PQ0+h8QsVmOpzTgpxwXfQW5jPhCD6P79rnO1h0bPvMn1ZKO+GYDWjco+vNxypABF6MXQnhwFeRgs//JEJTlBKETGWb5iR3M6R8HRyF+gXapwUaLVPAvk7mPuShMtNhIbO9PvAXEAWKeEelGtme2b2F3sU1ObJPtTFEWD5mp/ElBl3dU3Nz9PDmOuaiVpQZSPtRMLbe8mQBz4qMhv6NOgYcT6rzM3L0Wuj8WQqAXbbo68h6ru4A5u7/yD/C4pGkfBdw2xpYCL4adz0r+1tBveZdKQiBYSxGbNky4z5WM185br5dBq6z9kqLcdHoXA== 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=tJAvfRMxI6sMvI58Rwr8yWutZsD7z584ezavB/HPbPk=; b=Ixy1oiIQZwTVJxUXcTmfMS2M8T8eWQO74eC1UzH3S+0IdDKzAD65QRb4rtHJk01ixrF8bjfFcC+ax7dxyqgnSr2BP6K4QI9xVcTyuUJbnCdazjGn4Kvn7Qi+7lL0MLrfLTl+uvlxCo1H5yr5zT46GMki9Ojc6EHI0R6XiPseig/YkvCnllAyVCC9GZUYDitkdtKIYVOTwl7kAR++CvwQuAMOLPmeQOK3lTunK51BojmdLUdKHkrY5JnC9Pxhkox2tOiFebeA0IOtksiAchMbJig3mBonCuEMaWtp0ygylDtpyUstAsLD2fbqmTj0DmKyW8uMz7uoidbOcuDCJPyJqQ== 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=tJAvfRMxI6sMvI58Rwr8yWutZsD7z584ezavB/HPbPk=; b=QdmUyFipauix35OKkexcgd6NDiz7MWFCJXWAab7xGkraPzDOP5ChIR0i1o3QbdAKmpOPvyUEkgFnOfM2Ep6NOXjXEWWtXD141+ZlPZbI/90FZ+cDjizJrG7MQBvSWgHVuZgOxVbrPuvN1EB6FJwoLg3L2Md/3qlFdNuTIlRnntbyWet+4SpXRRmY21viKE2E+gGYnu8LYv3WsqPSiAh5p4Iaj1zWPb8mtg8L691dplTInrO5MmM3qjOxUP5aiZtLGUP/gDHft/gF+KKdNeM3Zd00/KKGlHDHr3ukw7bTb+l1rRlJafuGb0VEmm4GBMF/f+SrdOF7wZACnbIhf6tMnA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 09:55:39 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.025; Fri, 7 Jul 2023 09:55:39 +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 v2 08/11] ata: pata_ixp4xx: Use devm_platform_get_and_ioremap_resource() Date: Fri, 7 Jul 2023 17:55:10 +0800 Message-Id: <20230707095513.64224-8-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707095513.64224-1-frank.li@vivo.com> References: <20230707095513.64224-1-frank.li@vivo.com> X-ClientProxiedBy: SI2P153CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: 021d4d43-fac0-4b19-e768-08db7ed051c3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uVYZBrGfM32NnD/XPSDK5a45ZIojQsJiAn7s37f9blf0f8PyQj/psk/cKm77/fubz5pRmV8MAY+gfhSbQq4EjbAgmqffdNWxfKojrYOLkEKjf2TDCsVWlwnkAVX1jbt3SP3/EeGmSoYbG/YCiZekNmTqQCgEQg94crSMqtrDnCZu4PVk2xWtf5+e5J9AxaKee4RDPkHKmg3GPTLObB/P0IEqPmnmtg2AlcZemj9JpHd5NGBVp3ovD9MM8jP++Xvnc9HAv/i51Rj8mrlNXGxBdc+T+q0YswbDy2tFRTgN5CAxKVBjKBRdmfOgmfJXPmWKcNZVDBzv6ZDRZyEkHGeQ0OgxntXXPx1/EeMXsy3lTUSZiXrqeNI39rAllJ7aAbZTgaFz31RzYINsMS0zOWYC4z+Z4sLmwyqR2IU0F2un5UqMsZ2op8YHBXotwE5xI4+L5QhcI3B1gLRQWUk7a+iFpPRpG+3ewO1C80x1fn24wyVCEhaYOhQQjFT7rObMLylKLezM4Nht/va0hsvrfF4nn0wh97Zi7w7ftCn8pJBdnXS13fvSfr5vIFK+t7hSfO7KnHcs1ByjO2GPN8LBfqzKS1JkWRx4lkGI+u57NzO7V7iw32ypC/cyat9iedy/0+Yk X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(396003)(346002)(376002)(366004)(451199021)(66556008)(66946007)(66476007)(4326008)(2616005)(38100700002)(38350700002)(86362001)(186003)(6506007)(26005)(1076003)(83380400001)(36756003)(52116002)(478600001)(6512007)(6666004)(6486002)(110136005)(41300700001)(8936002)(8676002)(316002)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3z+Jn7UMwh2ckxLy5P0r5aapjaLzvvJdFgGDRnNTaZisuXCrxIZt59+OT8lZBZp+9cRdCcWnHAqlPOlMT9iTFLJKT4m8x2OPAcDlkbwwRvi7sgMbKp+zaaDppr9rWBzLxmxzkxeYQJgle0YgEJRDKfZMnWgKInK6Auu61XMozR8RleZ50eSZC2+DrJC05qnWnqHiCLAIUSnWxpyijv+dIJ+VAy7jbZo7DDcq6s8I5TGRDqZPruK9kbZJKBceRxUh1dqkU8qivTwGskON+UsZQIH0Zp+aRtpOK7DLOrFRLxW4NvB+nAdodh1567etmVlqCqwXIDmGbiCi8qxoECs/qUE+DcWHMrnL8dP2FP4aK8pEBWqmEN/0rv7VPoREJ4q3WF32YR/OMnmJQOeMZC8krTQtDvBML5KUeX94XHwrqTRbNJjXsV9zG9Z6EhoBOk78IEwJBZBx/pTKeMtY+wsKVdu+CoTKZ3yNOFni4qCTAJ4C8P9ySxtk6t7+m1D5rK7dbydCB1KYSKzIvD0KOSUwrRuHPsueAJU5qUIL/OAQ8DIflDlndmtBnXoFc2DKl/tupvbueDs00CihlW5QNygJ6tRfofO9k3e2H9W58XAglNcQRKkeHvJebEGW5sK2jiSde41pVfImmNOG0b7ulbej8cypDYlfCSQkcKly9ySgJtXVRU+9/68qNuQ5+zzOWrRp3v3QdKYY6PqLywbU/OMEdFBSjWFfLT6Fpd83Cs11BkLIaLA+qVv6GQuHgIwJRuxzjrIvRHCAiLBev7rAFeo7YIN01aAHhwVpgnp+EWPIjeV64GEkaWtAyj1rhFbGYriKZXuIfOUjrMopGiuiPml0VzHNqGZfQtkVay5BVQx4lX+zMYsOejhT7i5GZ5ufIE6BlKKLQMtR6DEgdwJrkMIypQunIZ5la8dcssZf9usJEdX3pHDsfTiyK7nGQKefawM97HmPse8XZdjK7bc6dNSIQxPgw3fJSw0Uyfj2est4J+FBMukzT61UFUcLDoca3eE1wJPt6QCd/lOH31yg5sbdsFS6akT1Nn4Uy2h9XMeD/szMB7blmsMpXJoJ5TP/5TYjiPOY3gcbvdOmlBxQCXom/px0n6+a4N7qMevBH8aGqRPOciJ1DFrq4kMK9e/g1GCpBQ89YyScH37qo3c8gb/yeHhLNx3cIXzjYL0huwBHWrRhPjOz19E5QjW2nMWMUTaqivb4Ez+fzz6mKETq/NllbzFj4b2BfZPoXCBy9xGqv1PAa54rzLHBZ5mueyf+BVyx7Ibvm2OzDQDCcGb5Fv5RCk7Z4/SzMnX6gEeLMVRc2aFyOpiWtXyotAZ1YjteDhwwqy6KAqYYg/4aGG0wgPYKzffaxWcqifiElU+oQxlB/mEb35XzWdJvyykBvJdZdryy4EeiO3c5WjcX1eXxQmpTAeGF5DkrtpTTr51B5BojhtqTIFxpx8t9xhkG/vruwok88i/QSxbv69fhSeV42qbv5++Ki0HXZXyqIXOpbWD+Pj/4OaDJIIr6msPYjZGEL8aDm488dG5Un1k6ZNYca4HYHQf7/XUoTCV4FttngTUHfiTDzClexrsd4EqbdXHwYrDF X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 021d4d43-fac0-4b19-e768-08db7ed051c3 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 09:55:39.4485 (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: 1/VIw+l+pCyIcpV0mHp8iU9ybRfGiY6JcRObhNUPdljxbQ5iW9GdkB27F65XAqDMjWj1oGHTRwm/exkxLkmIwA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770756880173643559?= X-GMAIL-MSGID: =?utf-8?q?1770756880173643559?= 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_ixp4xx_cf.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/ata/pata_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c index b1daa4d3fcd9..1b9f67e16864 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,10 +265,13 @@ 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) From patchwork Fri Jul 7 09:55:11 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: 117060 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3154761vqx; Fri, 7 Jul 2023 03:11:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlG5JLjcUXf8HKIEJJrt/LUmKOeWvmiQPno3cOpB6UjBhFVw8XV4LYZ0RDAmMz/VzmfJY6dJ X-Received: by 2002:a05:6808:c8:b0:3a1:188c:9311 with SMTP id t8-20020a05680800c800b003a1188c9311mr4219725oic.24.1688724696178; Fri, 07 Jul 2023 03:11:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688724696; cv=pass; d=google.com; s=arc-20160816; b=kzFzizMPS1+7aGDVKaMp3EGmM9MEOZU2A8X9EE7X5Y0e+C8qZLKUSJ+cPcE/CrELLB 4r5pqEBym25ZLZTuuA6VZ81dECtGGpj/RUHrT7XQdYTu59Z+Zfrq4ENW2OrBiPMDrOlz zoeuDBpT73yT6rvnkNVnljVNfeXEomfC+KS6Tk7eNVEA6jCsF5QYyq9bGHBvKplCBt1t ek7oRT2l6o8Gb68v26epo25zXZ7652TdSbMfT7DFI0Nu40XlauqBRTkWB+J1LvNgwlVk T1TEHdm5IpPQiWJiMvoWvYYnj/tzMjOLA3x/Uv78UGKE4cmIKHr7Zxho4Le1ig0GatXD OHTA== 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=W7rKm46yghVwpIKxFNuMC7ELvRRDG4mgU1qxb7VStsU=; fh=KemUqYlx44+jLiX8LKEgRFmEZtcjyKeavCeH1++RIPw=; b=qG8qFUYjqoAN3A/o2KCpy+/puf/qKINS9qZ97nisIQL1LJOApyXc1y7oFFbEX/iSqY XGgRe6gpfeUe/tf2/o3RGmYlkZctPdIIpRMU0IarxwtRzaLe+6Q4Y47UvbtmY1dH3KGR ewCHUdvaUm7CKFdLMeyn7XVk5EAwzA3Zt2QyWmaW/qgsK84eyXLhJbuWp5ue86Uuid2J aqfkNKbVaJ6Quv2QOcKGefd09m2EU/zJWM6jVdmSMtlaN7QoE/994nQcWwuua5rDjPki eeqMlQUf4Xlw1lc/eZpOnL5JYBjIpybNmJlinfjQFHq9xzMhl8lumbS57vctqZh6gTvD NaNg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=fWPFREtV; 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 n37-20020a634d65000000b00557622c1ca0si3511448pgl.554.2023.07.07.03.11.18; Fri, 07 Jul 2023 03:11:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=fWPFREtV; 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 S233106AbjGGJ4l (ORCPT + 99 others); Fri, 7 Jul 2023 05:56:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232893AbjGGJzp (ORCPT ); Fri, 7 Jul 2023 05:55:45 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2138.outbound.protection.outlook.com [40.107.255.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2AF11737; Fri, 7 Jul 2023 02:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kMBRh4W9JRb1dIKXUn1Wpe8xW+uBE9dkz4Nl7jNK/lZRS2bvwE4CvYitNxLAxTA/j+hG266u2yRJRspqIUg6af4fWhYOELO5kS9HXJNSukslfeb4vi0+4zGUqueunLGqDjIFECCfCmTJ463+JqalG1j/2w7Z9r1cypYPxWCUkY3eS3wWpCu1GNONuSyZwbJW8ISLaGPk/w7ILELs04RRL2EgcVUG+cZAuYj38BhDSI5HVHZ+RjxYWTF9x78OYS99vcPea1kfsTUpOYN3J2GqVmbG3DTh1HNgQLPOpqZlB/u8+SIs66Yh5sADd/HkIiUb1yJAyYgcuPj+icnlcjd7vg== 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=W7rKm46yghVwpIKxFNuMC7ELvRRDG4mgU1qxb7VStsU=; b=aRRGP2YUIJ9PVap8PGY3yYu/m2JNhCRTwWpZLrJEMwfRqzxhMxSAEf2aWuTyhzql53Jp5ZPM8wKtJFEcLXFMMWaB1fPESjK9wucNoIn3VarwtBLj7wfsSVtYsE3AD8h/stoLoYRUfGGipESc7WYk1xw8hSNbLqGU0EGlz8UND6huOe7Z3IUASJ7V4EzhREMCszCyRmVEbBKEIomt0KfULJ74hlkhqnMtw7KjwDNuRhgK6/KxQlkh4Hi3E7OhWeSRbhbOYNY5GrnNzGXzW7SdtsHCtfosAKYC92fZjqW/WTlOEbPoIgW5bZxhsb6iBYvXMHjZXW3e8ujYOwUFAUIuBw== 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=W7rKm46yghVwpIKxFNuMC7ELvRRDG4mgU1qxb7VStsU=; b=fWPFREtV/avYeOujq8v6Bxd4xMQuqdos29OGsfD2mNhje5ZaAGwJMhyzT6IddPXE3tIdyMoiyDbZCHkbOHByXk95LnuBb5S1Rvu0nkfVGdl/cn+/uTwr/+1AZlLbbIApg1n2ms41GWJTwGv9eB/qgGVHMBDen/p7Hh04ZTxWGyLwamr0qJsQ0b9+2TruvCdzp74BbxJ1XPSUJKZzfAjE5S3R5HdcLkhAER7YcfCjRnC5p0NGKiJ2WIoftarjyqrcXAHRVCfE/ogPHWSJzZaowhx9L6CIGhjaU2yqP2SJAHkdSKLsfnJKODbJNZX8mHNQ5+RVvR2fJEKmhlcIoLPZMQ== 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 KL1PR0601MB4356.apcprd06.prod.outlook.com (2603:1096:820:6d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Fri, 7 Jul 2023 09:55:41 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.025; Fri, 7 Jul 2023 09:55:41 +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 v2 09/11] ata: pata_ixp4xx: Remove unnecessary return value check Date: Fri, 7 Jul 2023 17:55:11 +0800 Message-Id: <20230707095513.64224-9-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707095513.64224-1-frank.li@vivo.com> References: <20230707095513.64224-1-frank.li@vivo.com> X-ClientProxiedBy: SI2P153CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB4356:EE_ X-MS-Office365-Filtering-Correlation-Id: dda7866d-2020-4390-a93d-08db7ed052b4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BNPexBnss4qSZyy8LtheV9mBMY+ZgVk/Sufxp0YM+OEuoQNq9BpSZ2NwEmQaSkRwt0fprObc/bfWbMqT53e6c7VxmPfSXsHxa7+DTL2jRv1os/3oAfm8AaDKsEAvefUgfdSYBaeDt1g9aBnAUhe7Q80b8ZCn4pfaziYnG9BO4jwZ8IA8CdhK5KRfGAwFOWH/I5su7AP5Pij1qFCRTZ/P9/YQiA33cm9+T4gNsFI26jDYmxq1cve1fIfAFzQctlfTQcaimWnoMpzJSXVwFHSXVAaKY7sgnoAZxDozEYGwGMn66H4QwLXmGHy0iZq7YuuVwXEKMY5G77EjZF/Dcwwac8U0t9F1iA3ID33vjpRZeN88YVThytOzHNdF/I2ZSwQ4JwLhXevcyX7ehpdJTHrQuX/fffJ9Q/4e8MetBDELxozCjQEphytgOKoAjO/RLUdqXGWXNssL/wCvLvh0BCRhHrvgwOtD57IM0KK6J6MzQptPBaPrhl1bMtX+M/+JTJY5mc8GI9XHc6s8qcDaPjJ0fAhhuVRIgOjU80g5hw0zDapQ0uarAI+9uKIWjQ+ko4H41RnBXGBpIzEvPee3qpazqyhTxtniq8uIDvO2E/7gBJXO8a2udpD+Ve/Jzqx9HxD0 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)(366004)(136003)(39860400002)(346002)(376002)(396003)(451199021)(38350700002)(38100700002)(2616005)(186003)(6506007)(26005)(4744005)(41300700001)(8936002)(5660300002)(66476007)(6486002)(2906002)(52116002)(36756003)(86362001)(110136005)(316002)(66946007)(1076003)(6666004)(6512007)(478600001)(83380400001)(66556008)(4326008)(8676002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nOlgNHpx6RXlzbRFogWoqtnvCRcbh7ahArk222xH4Dq5ZFwK4ezGXct1951h86DzikLbAsLYTYOGuRenyQNWxbn9EuK5BwAqQ5BBkxqdSIND3IA64DWlNXq6jIfgFxdd3CJ43n5CKSeQUjlSiDFuz+tIvMuuxo9jBuhkMC3ozJ1f3chPbQS7rPgqlY3+v5JwdaaDtMmfKfkbD3DK18gkfdR11Gbn8f+6rD9td9X/yM/WNqun3k4mNl6xPGefZEbS2uDhj6aXEbS7Wf3KM+Gi+B+7G4gcV0QZPtQdKSfLKGuYp3H9KTSSWtLiNdnJY+/fzw3IIj0FdqDnmeWMmSDxEqFCukSQODQOvTGVqcVZAV3GaE7c/6ueWzv+elXxUbgaVIxShcnZGmPoR4eBrumCW0fPBRMVUD1RB3lxnGUN3l90j7x+/WludYdkoxjEXT/Z01gWy2CsPS6jkskF2gBvm411pYnVsiNpG2jkr8tmiScb6w3prxg57q/SCfgedwdbN3hLvg/Fmu1yfMBDk71+wWyZfIz9BttXHml8Lo98LfelE4IWumXF4RmQG2c/2ShAMsrb7y/ImWl/6BrLj2/r5XAjd3k1uHCEvxjlc6hs/u2jUGFRtr/jZO2EtnD/uhywKDxA0UpIj34fALX/AXZ2MfczKJvVFPw/Bm7KcaxcYqgOoLxkUpNUYoxDMozm4IlugnZy3nGOLu6+poXRnWvthoPpUQvZi6VCDPvQn74UYir9KRQT6kBGaCoT40U0LSP7oKLdWA/8bznjLkmLpEd9su9Qpwdn1ncYoAsx9nFU4Rw1En2HLq3nDS1A48mykznqMGQjtfXJVoiDicNuJ34PUfC/aexkWyBAy+i26WuYgdyi4f62xMBUeSEyFFQ8C228y6WCe6D9j3LQf8eLbseEagjVTWI9NQDMJ7lGenGl9E+uoEJhDC3r+f7ifSY7L47Ir2+sM1uYkcwgmIWnQSyn3VaZOebs7X5L9+IK3e+JU0NR1C+MySmN3UdBK9EJcg0zgCv9dnXlYZGXKqX2qA2EVAaTZKc1DprP60fd8agA2vDAam3NeC4bDcpFn5j+H7OTpjSwP4uOD9SNimi+wE1DLLitq8xnZb+YOmsK2+USMfjGmfxzcQXZs36Abn9vmhWQRNJza0UexxhWI1PjhdJhLFERhPR9WnxvUfDjWrNDAxsOqFKgrwavWY33opXLjPbGqTjAA9S8Q2JlIJcOaUtjrsoJITTol4XZc8Va8hIppk0d6eX2yt5HdSAHU+lIcVyDlVxUo/Ii9VchmB+S7zpHuTzee8Zv+koBHP9f6sXKh4b98saBFFt14+3iaNTHSS/trE2r8XbJ5BpVpLjwb6z/pV0frV9dBfvj97y0uL+ILgdE1uMXXGZMy8B4uOq/8fVcxQscO0ZG8c2/KqUcOtb6m0KhxbPHjxsRp3zTyL6yRExfqVp3QNfHfEFUNOEY1rMzDoCoyvCKjjucDXvDNUg7LHORdRjCHvxfZIA579l912RwJdES/99iFrCkAJoryQigxU+KHcThr4kapWYvACZP+eDIqOBAaaVmNMdxX65NPxYqTFJ6F1/Gg5E/gWuU6TXv X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: dda7866d-2020-4390-a93d-08db7ed052b4 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 09:55:41.1002 (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: XynZJJd27PMOaMRy75RDfuEg/JHDL7D4jJm2N4QoIDNVOCzMbIrPGDVm3pNF5VzztOxZ10m5sQMEv6Y9esVQ1w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB4356 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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?1770756187132352808?= X-GMAIL-MSGID: =?utf-8?q?1770756187132352808?= As commit a85a6c86c25b ("driver core: platform: Clarify that IRQ 0 is invalid") says, there is no need to check if the platform_get_irq return value is 0. Let's remove it. Signed-off-by: Yangtao Li Reviewed-by: Sergey Shtylyov --- drivers/ata/pata_ixp4xx_cf.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/ata/pata_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c index 1b9f67e16864..246bb4f8f1f7 100644 --- a/drivers/ata/pata_ixp4xx_cf.c +++ b/drivers/ata/pata_ixp4xx_cf.c @@ -274,12 +274,9 @@ static int ixp4xx_pata_probe(struct platform_device *pdev) 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 Fri Jul 7 09:55:12 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: 117067 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3156136vqx; Fri, 7 Jul 2023 03:14:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlEHNRY86L/uTQ25gSdppTqbsgdyMn52S6nT0BSmmf1EqZnRaJSsWkF1K9Xpr14Z+N/+jc5U X-Received: by 2002:a17:903:260f:b0:1b8:15bf:d2ed with SMTP id jd15-20020a170903260f00b001b815bfd2edmr3835198plb.65.1688724863366; Fri, 07 Jul 2023 03:14:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688724863; cv=pass; d=google.com; s=arc-20160816; b=XpanGRZ+0ArYfDgZRmdck1h76cJxNj77+XMnTJHd7Fjf13rIqUqd8UYiH7dKYDkToG Z6yvIUPM0rLdb56Kn40aYQN0L6+hvmqWHuE5rNkLEOGpW7DTif36xcXHUyKfeHLBE703 malfGYsJpvjz/+3+p/Xj1enJE1tvlb8FNK2A1VQttsDJabEeRNYtBe3GMx4hPK2QqWWd uCz1Uua6Xo7jnHV06asEhu8Rtzaj8ROtlemWuPG1rWxzUmWCXKM9YtzivN6emawxJ7PK a47yHJvEbrcv0gVpWC/6gshx239aWdZG9IC/zYFaroUrBTcDPkVA2ynAE1rBV3zDfAGr velA== 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=4I/mwc09ffvaDEMugdzolQ1SUKOTSVAVCt8sK8ABcJk=; fh=vtXrkZc6lrarwnwxiKvSo2UKZJon4pdysOPyLWTj4AA=; b=ICzTLgbGvT5HJv1jplxifRQ5nyr2Q9/az4rQvZqcDIKDrg1t3Q+V/XmF1O2VKXOVtP F6Kexa3LkJaPGAAiEmtU1ldeV7kVG8BUe6ZXa9VeN95KGI48DHOZC41Ohbs4z26WdXYu R6YJsmgEjGUJtuE7WySrb1f13M2qUO36DfvLnXs6++Y6i5XckkRWHNFsyQU2zfNXXwsu P1ywBzL5LKl/2uq9LOnL+PUv0Vcsgz+0hDwVtPxyx16xkNqLUydVfvUnDAwHKXKlfsSk dDmliOXLORgciT53dKZqDnQCQaWl/brjFZrxObCeTTY5bi7eePy5LHolBzXORuog4B5C dKnQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=ZIX6TFcz; 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 u11-20020a170903124b00b001b8866a4abfsi3624611plh.82.2023.07.07.03.14.07; Fri, 07 Jul 2023 03:14:23 -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=ZIX6TFcz; 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 S232759AbjGGJ4q (ORCPT + 99 others); Fri, 7 Jul 2023 05:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232900AbjGGJzr (ORCPT ); Fri, 7 Jul 2023 05:55:47 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2138.outbound.protection.outlook.com [40.107.255.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 165BD1BEE; Fri, 7 Jul 2023 02:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AP4wlFeaQEgQRMXw+XwPZMtmXy2jF8B0elKC1LOvaapDDfVML3ur6sJZiYSmv13iEORMeU5aer/Ho5PsMlNe3iuCwSMhPyC+31UGS02LKqe+8JlHbz+WdshqagrRe/OsVL77J9KdiQ7JIVazWlenJWQ85/WLn8hlcv+Qa4GCr7hi+OfvfkxZDSDjd5+msI5LZb0TB1lj/X1Z0IQdIaUEV9yEx0hRUW47HQMYkDqMbxAe8OfMELezfDhHvX62mjXy2Gr81sfA+kBGcVMGpXDDuc386QeVJBzlENrDr/L+UfMlQHG9gTOydc35ErQRu/MJqDL8IQSkHN9tDxOnBIrIKQ== 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=4I/mwc09ffvaDEMugdzolQ1SUKOTSVAVCt8sK8ABcJk=; b=ICHZYMQseO4lxBmQuwHXwJn2R2XViTapafBzSSu4k9ObP9GOqxXodAdoZKFeNd0+eqIHDld0TP035CuDtLLtNlzerrI0vwAbQx6TszMJvowiMuhs1XD7V0HnVFROQCOe5LEfqVOnBeUnIWCTNHCSerE5sP28Vujhqef2tCELmjpBUfr+fDwKHcw2lZDi3l+GdigAxZCFGZdbT3bJLmNLUWuTRAmQNTvx7VWEL3vsMD2yZ3WhkLu75Q0SMGSQjUWkU47aVkHza4WadaHkgXGu7OCU4aLgDqj0mQMUaOqEL7+RjEMSWtvq1UYO8Mag9vTosWEHAaqJVkObD87xepOSOg== 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=4I/mwc09ffvaDEMugdzolQ1SUKOTSVAVCt8sK8ABcJk=; b=ZIX6TFczR24druyIV35b3mEbbfomss3F/OHu3SOmQdW6dLmBJ9Tll7u72+FwmNHaQdQnICDJLna0RD5v1U8d3S8S7fKG8kU7fLFlQSCIItTU3YO44KerHbg/mT0hsDbJ2Rzojm6RZiPxsI3uKo8UX9hwOz1L6U3aE/r4INQ9MjBDxmP9QS4eE4z/q2/m2L2bJJ0X1Gfy5KMw9Yn5UI+EdCgCrZ5qoVXynfeMNinnuUzYVdA4jBKctA1JlPLokKxSGpqqfJWVm6vrhoGuQUQO8jKyHu4BQ6j0px4PaTRrECwbXYZaWwY2eECjPAz26/4HOKNOZJ1iE4UD1AnqGOGF9Q== 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 KL1PR0601MB4356.apcprd06.prod.outlook.com (2603:1096:820:6d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Fri, 7 Jul 2023 09:55:43 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.025; Fri, 7 Jul 2023 09:55:43 +0000 From: Yangtao Li To: Linus Walleij , Sergey Shtylyov , Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 10/11] ata: pata_ftide010: Use devm_platform_get_and_ioremap_resource() Date: Fri, 7 Jul 2023 17:55:12 +0800 Message-Id: <20230707095513.64224-10-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707095513.64224-1-frank.li@vivo.com> References: <20230707095513.64224-1-frank.li@vivo.com> X-ClientProxiedBy: SI2P153CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB4356:EE_ X-MS-Office365-Filtering-Correlation-Id: fd5b9101-9910-4918-c655-08db7ed05404 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NyCgdGGFUEdL/7bSwxJ61PnkC4FdB09CaQAscC0MH0b64GFUc7jAQEKuv24pHziRQ25yh0BPKeMIQPG7xNvXLmn1o0DLmJzCW8uk8+RjMtcDV0TdXv38POC/CcQIhWxyX+BEhf6E2ZLIhFgGpH6Po5JEBVak1PcYBvv0ER2Ljuh92nuRLHq1AeG9zrbgqUflBHD711IgIt/bq3MfAAkqci/fenyHpwkxG9hfHHDno0yMZTS4PMjsZYGf+4IrzJxvra8PUYDQ6i8/D2QzHOk7zGXyaXDZE7O7DB1yhWmNgAYzPvRkrsvmZhcs2t5k+xV8ko69p0rGajuwOJiWtLucPdnvr+4SFPzviHSuVqTGi2tl7LDL1RN0V74utydtDB+MPSotGSUhE4rUnZE1FsCq5e8n+YAnJ42cIUExQ4pSZ4WTTogRchxnZask+B4gzwkFf1niUDhjWdSh9pUWCMMAjcvjECVkEVXybZ2kRRaCfFhGQLocM8rpOV4IjSZZIrUezxcc6If/fdv7jxeequHZDEnIsNEpT/+JSo61tZweZt77FI03WvHXoDN44nNvh58jvwrOvXUjtQzhXxx5CMJ0RxwUlrGOt1ZZTWU1ja3+CP4gy9CedQ/F+0qJV/O8UJh0 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)(366004)(136003)(39860400002)(346002)(376002)(396003)(451199021)(38350700002)(38100700002)(2616005)(186003)(6506007)(26005)(4744005)(41300700001)(8936002)(5660300002)(66476007)(6486002)(2906002)(52116002)(36756003)(86362001)(110136005)(316002)(66946007)(1076003)(6666004)(6512007)(478600001)(83380400001)(66556008)(4326008)(8676002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BZnLIyZS3VmgKygfbRcw1nU/MXyQkb6rDU4jp+if0N1KWcRyJ6qA9Bm6Qvmuq1hFIywElzPwr9IObdK+Xo7w6hy15ZZpbbrh8qHjai0V0hc9lnFKzGyEMP4epnAzkRznWrFFKuuz5zOUJsz13VLAs5psJr8ARlACDlnSJhoQQ1SxMaR52YOEaZHDJyQUjDOn5pEmSnhe+X54hnTkNmjf3dDSbORZ3IdyfPMsSaVtjERqkjOUml+k/+kg2AFqLPs1EIRAKJcE7uTWZJvLKU6bF+WABA91VsbB04sNOT5gr9qcI6YhuTMSSKqoZE5F2/85IB31F3U2AP/ILMaZzuNj8pTY7eyoRCRx2rC7r2HwywB0O38OO/ptT24F1ys57E2M7s/crS1/lsjMdKdKpujeHpuUo0smk6GFSqd8d2ZB6bpzWemlNeP7HMQUH3xbVlF/zo3xu/WA1OIVqBajguTMXocMrSsddD9+B5o4buj4T2Riaid2HGyJjcLVzKvouFZg7SB97AKSiGPXypMzxs5IpAeys5DXJgjwCN3fti9iqwL3cM8oDpZ429FaVLDb7ND8YJJ//q+0u1Vdk7zVFkfBUqx0mWHHfpPqQ/OChGuogaNDtYklGuTkKqwRgrCBi0Ooc8s7TK0NXV+ajDghzIo9pdu7w8uBb1epKN6RKzYDB3VN4WBO0QUxXKdyssrY4Bd4JrM1T3o4YquWtwvyEbb+ytSTO/fmeLEpdLbVDe4k9Q2d0kBx5Ne9vRITcR2Vi/tXp0hiqV1Hd1gU9KNIxMcdzBsTDsjz/RAhi9WQJCAi61OlAFVab1k8zjDYP7lyRos/vdQ2zbMXUJBrSSuZJlgBQ0wzq4P/9gnI5sKcHmENcDQJnEvDEOl0s6NUSlpRTQVcXDjZYCa3dLqGMr0ueNNNuuAcXfBy7Y5UgdwCAc4yk3FgpVAbuQALd8hmG1FfoNsD8PhU9lH4NK7OpJDbM0mMkpWDpS2uGd2gTQrUxP/sO2CjRn9g6s1vL+WFEHL3KvIABfAKL24angPnGtJGDrJQ0wVsAW2pfXTXy/omVWNyiROAPh/v59R/p9KVsOSufrruWVtNYP9oJ8g4ZwCMdzL20PU+8Vl/VCNbX22mXGqckysk6+QxVhXcyEitrJPuXAMIwG8BkiSsNwdA0gEXulCec/zluoH50qRYOH+nMecwuv8eInBp+ADMzMkwM+fgvYBxchh0MwcNyyV+TalYt0gGEPSZ89YdlHK2HLzzIVZ/T09upLrZ4XBPg+VaungSOVcmWgYIIz7eETzpxjAhxZb4LaHns/y4hFjtVZT02FhzQSw6utKyiqDknM13a/dEPh30OQgpCdHLllkemAp5fCZO4cDJ4UXt1FoaimgJL5LLtziURHCRj+N3ynC+bkcbFEpHmlhcEuves6Afw3FKyPItZ7hOvLbHD4zioJUXZmU4oUK5WpId6xwzxhS61oMtLIkdne/6VClZXkW00X6ikHtwqScIOXvd2IXwDJnSANBccI+MgFm9qortES+1aGRrSVGr021DJKGREDFb3uW1teVtfdxjPU2syqY1v+OaL62lqZWPFozCExyzJIYs0sawpK+I X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: fd5b9101-9910-4918-c655-08db7ed05404 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 09:55:43.3138 (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: sh4e3ElvzlHrXSiSejANlvnFptgmeojiLkSh/X/rPAj2D7pByXVAvlvUFSi+ZNWCQqHjakX0dXG1134FRkvhIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB4356 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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?1770756362407635625?= X-GMAIL-MSGID: =?utf-8?q?1770756362407635625?= 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 Fri Jul 7 09:55:13 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: 117063 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3154967vqx; Fri, 7 Jul 2023 03:12:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlFiecXldYMDvlUcws/UGBV0VT+22MYQ7ipY4wzVOfYM+eDrPjnEY1k0dvG4QNK8tDB07ZGR X-Received: by 2002:a05:6358:9391:b0:134:e3e6:c0bd with SMTP id h17-20020a056358939100b00134e3e6c0bdmr5051303rwb.32.1688724720127; Fri, 07 Jul 2023 03:12:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688724720; cv=pass; d=google.com; s=arc-20160816; b=x5M4pQgcK4JcDhKygTeamWFYy6+w38WxezcKsTmLj8P7uB57ozksqAK4PIkoJzpeMl aXiXUQzHhnhftgiEPp0DKeP9Cqf25ukrQ2cNFxv1klu6AVyAG5LHhCp54aEIesdOIwu4 LWvuWdSfQUieSBR0oTE7dLSqX9lXnqwSNjcH++s8rmzT2y6t9ZXo3wKuoe5KM8fnVpkt 3GiO4OgGiqRThRRpX245Hdb+ETXEo1ORKHIK2RNti3nh4ExeIht7wbb5P5Xz+jRYnp41 nqXwlBIyZhvXus+o9Tmzmlfv3Yyu4vapV59NV6Y4wEnlpkb8d3EgnUwYTtenYZMLzdcu FUow== 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=mtVYOYMZOlBwAc8uttTTZ1VtrI2xEPdSeZsb4KYuxuQ=; fh=HNmwHMKXdrH5ADa7EQ3284gWFm4MNyterjugm4Fs3ds=; b=JYypOeREKp4YB88XZsbAzBOoqM+BkToDgCVOGE5dKwgmPTmlDPL88Lg6DuPxYKE+L9 ZAcyuqfUmwLi2dKG9QhjZcf7wyAEEhZegrte6hDv4Prwg1NVwKYbGhEEf9y34sRsvm5u IZWkNYsvuDhEOtC4vBrrg7L00jZZwJ0Gyykf9gcecWHBUUJsZFJukY/Y5oNF3OsxMJtg Pt58PQO0TjZT06simE2tbfDwSnNG8OtnVnpC6iFKcClDew1yisLyuS8ROTTJNfcZj3Gn lCrfJ2D/ZfLIEW7fD/WD9RjvNRIi8ixvOOwXvJEWNe/9iOKzdv8SJHHgJ4Kd7WrMrSVz Szzw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=SWS6O2xB; 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 l70-20020a639149000000b005428e832059si3652940pge.468.2023.07.07.03.11.45; Fri, 07 Jul 2023 03:12:00 -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=SWS6O2xB; 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 S232927AbjGGJ4t (ORCPT + 99 others); Fri, 7 Jul 2023 05:56:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232922AbjGGJzw (ORCPT ); Fri, 7 Jul 2023 05:55:52 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2138.outbound.protection.outlook.com [40.107.255.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFCA52127; Fri, 7 Jul 2023 02:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AJxgtZMvE9bAmvEqmWJceX7LjCDHLVz5YO2peFR2s6pSlPSzkR1ThZf/GsWQJT2GU+ytN/RdSX2kuiwbJUk1HiHlE12YQni5OxViJo/+kRoQqaQLbyztLHfDTPx2IsPLhGzDa9HLaCCbvO4aqt4OSbAnMXCjZ12kQqfSwP/LTimkysWm/j6VTbZwhvixxQoQCkUyDr4xqur2JzyHzjDyyR9Jy4Cib2ysZgE8nrqBE7tobtBU/obbGae8e4f1pv0bt9FghWBaJVOeqLqddFXQP8ZG1pOWci0FkGOXYPnuOh5eeJtvg75lud3JFovreqW8OWrBrODG9vMYNhrRM+NeJA== 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=mtVYOYMZOlBwAc8uttTTZ1VtrI2xEPdSeZsb4KYuxuQ=; b=a0GGTJdLdzjaYt30luFHdDMwsmef84l32SfHfD/h7WU89O/yc9YfJvFqWKlO/wq7HVDY6ZgeeWmJAHe0OeXbMUJv9HBzVdG7ATEMNv+AKr+anE8cL1921lR0tLEOkz2NGT3ohKW/Fqr1JlaD2QE0EASuEQG9Nd5QMwpzsgs5iYTFDmUNtEM3EcTz/ebrenGR6vv+i+CJnJ5hoVV5YqhvT7+Tx9Cz1uAedJf2IbXNlaQ2RqZ639fhYfuNQ+aXVCXQHwUrfk98p0tm8snuwZCwPOcaKvJPOZeUmWyW7gwXBZPCb9z3MrPd9+gQ6wIV3WCfHg2gG2n4IZ5qziO68zcAyA== 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=mtVYOYMZOlBwAc8uttTTZ1VtrI2xEPdSeZsb4KYuxuQ=; b=SWS6O2xBaHf6tAvHlq+kXp3KFzgrzVwHSA5ZUiQuJiqg2X7eYBd79EGOlO2Xs8l1hKqGGPnLIqjTN5mBDLCUfPrB0XGOW5POIRGUvM41wjHc+uGgUjNicZNuCwogJuYZSPO/Qu39/sgs4KMGF85nUv8CiKRUEgSFNHfMbHnKiS6x7/VWP1OngNVwBjLJbLd4m2dOm90+4yyB040Irqr/upGNgLg+qfFvwlwZKPtolzfUOJ8RDLQn68piiAUxKUKR/tfBWAUXlLNX4bCmSFy/Pdyqumee0h0XCGKYqcRczjmXQt2Mm3oImxbzp571nfAUIfD4gBsVx7qSVRlcyZtYrg== 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 KL1PR0601MB4356.apcprd06.prod.outlook.com (2603:1096:820:6d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Fri, 7 Jul 2023 09:55:46 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.025; Fri, 7 Jul 2023 09:55:46 +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 v2 11/11] ata: pata_imx: Use devm_platform_get_and_ioremap_resource() Date: Fri, 7 Jul 2023 17:55:13 +0800 Message-Id: <20230707095513.64224-11-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707095513.64224-1-frank.li@vivo.com> References: <20230707095513.64224-1-frank.li@vivo.com> X-ClientProxiedBy: SI2P153CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB4356:EE_ X-MS-Office365-Filtering-Correlation-Id: ce2fc700-1556-424a-5d29-08db7ed055da X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +qHkd5zB70sqjE0QCFEv0slivRWyzWI9XPKDxJRftuSdYbS/YrL8y3Cd0VtdiEI0bMU2zSlRHdkzd4y+KKFn2nPnf6NuQ0Q+nGbf/I/IFG1TDEKuT3Yp/bnP0vu8TJ2P+Z89RL8sbaPIV9JvpulzCL9wz9rD5nRgYav3cCATdhdxDcHpcrn8I71R1vhGcJTyqJTR0daA9kE1JzEbBP/ExzBb+mqU3vKimzSUN4iQH03KFwqU2lYeI3nrAL7xtc7GZYAj5mX6mxIdH8bimyWvhDJNRZz1fJrUsG8ddPeNOyVfJc8bTQHls2M3VfgcWdiMfUVxYFvTpItts+mKO5kIakcoHWR2DaX7CXrHJ//P5qB8Fvbf9m2SwvEgOOf09XAiqZPEvSOSaI5crE7MNoLqy/oIQL/jy0jNT7llOGK7cDHoZu0JQdlIbAZRPMtNJMnn1JthYYoS6hmaDjYgszjFidHiHObkkgAnPKqaSt4qNLlJcrZffqX5j28PTlZ7sban4DXj7IOKZiC8Vf2VKAcXOnliNQ50VV40d6OsgJky4h9/mdpKmzSC8UJxE0IMzlT772byqqb1LDUMzK2WLoipveJgPLdWe19bHz4n5kInROvSKuKqe9VJ4soWnBCsdtEV 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)(366004)(136003)(39860400002)(346002)(376002)(396003)(451199021)(38350700002)(38100700002)(2616005)(186003)(6506007)(26005)(7416002)(4744005)(41300700001)(8936002)(5660300002)(66476007)(6486002)(2906002)(52116002)(36756003)(86362001)(110136005)(316002)(66946007)(1076003)(6666004)(6512007)(478600001)(83380400001)(66556008)(4326008)(8676002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QPTdjDEbOnbDpgaZoSRhJa2Oe1Snk4UFJPLavdSpqVUZKmJXIceQK3cQ6hOx2Y3GQDgdcjwXEYx0Ia2vCZdkw07mLPUJEIkGkQiWqcuZw1GK8Hn3dW5CjmbOh+czjIzv72GR3p2e+0F14DV7G5SuzdB3Iy0KZDNoqmH6nRA2zYFUyOkBrZfAMQm3SGaI/xyqU2RJRho+saMp+e0o+yRritEaONxAeJXHeUNnpd3sKd74kmYix/pxwSmZfkIByzivWOnpln+2g6jxg3aoDi3vjAqOHtZ1PfyjTz9IJqqRv2Vs/DNT8EAirA0qZNMjqdGSOA9v641eDJkW5u9cSfxmwbSUnX9Xl7cl/daE9CItsDpgKcdbo2T5+04R64xe2NuOJiUI4YGXZuZIIuULnkfKJdFVoa2yXcAHejeiNS2jRE42yP15B5/D2I5IVghnZThR2TU7BVNSubyH98EfQVC9W1an3CtJn7DUsKCXGmMnZDteGv8kVAibxX+drovL6zJeo5jE6QRucgz/jY6vzC1bqlSX0n0iGtwv+T3QWJKvrfaYYshET1Fr1B74YVKd+aOhEe/N8xPxPKfO4Rzx9UhjQonjq1l3hnfL+YOddzMJXvfoRyD9ISSQsdmlh/tFWA0lBFYm7st7HDWrpXXp45WbBiik6TSanOt124xwdwq8+/LN1wtHpX4vT9Rnn+JgBU4cXXigHeVjl/1sUAadOxoIZ9ef1m2EunmbRF36RB/HuJIpI+SzrRxtUgjB5+sENWpZCWYHfDlPEDzdfEwSINuq8Q4QiubbLTjSFBPNgoz8+LrYT2ydRWPf3ttX253s9DQgKTpnWQmrnuxGdSyB6fpU7WwJUs/NYtZge9Fsd2QnzczhuBkDZifh6LwS0FycG6iOplwHSvzg6QsnTZu+SKjHbfBue9iEQcGT1AKvplP115dRNMzabuzZEzCjqPF45H2H9tMZMj3ES+xoDif2QQIzaYma6O1Q9ZwsAkJiQU/7/1X54P2bPmuIC+oQImyz/3K5CKcvmGOJjCwM/QSFdWCQaqsQca173cDjC+thrIuSToNqaUCk4bua5DCY4Bt1QEsfuxHvyUCSvQEGkI92Hvp2/qYr5U4cpTTxfEa5GFR8+x1Yb+gLTTO2TK2DB8MlRvrNyV7FmZL6bFPHGiqUC+GlCklWlEfGnD759mQQPH9bzEhb0Ct2/lvr/fUMnNG+lNq22LE6LSKk9qnA2CbLJVFs1K8QFZtHUwYKHrpwbJECq30krjZ3rtol8i3/ibN5w1reX8k1UwjgLxFuqt+QA8ngVFbI78jf7VoTFQM9zJLQFvZaFY4kVksKIyfJwd5SLE4ZIlvkRY3/xYcVjbC8G24O4zvU0jCHBr91NDMKLNdad8LZFBVrBSuYACfM7liOZs/lzeVKW3dA+ZTYyMqbUq/NYmbOHnR9Q9B+dPRNgt09OtSVuLFFOqST+y+M+Lu/PgmMp9V39xYewHWcWGwjcWt29Texi66sTPI7QJOMIsZfHbc9ChddPPVqh7S93jTBVMCEDkPjDtox0NIOLoQITCp8lbqboz/ez/47LQWKVDP1uYKPPkxgqcSTpSejBzOk36lt X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: ce2fc700-1556-424a-5d29-08db7ed055da X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 09:55:46.5908 (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: YymNMHZu2lQxwqdbK/Fp83y5GtQ3Ml0XCoAA0wPX3bZcE3Xgl9UuuOGXcoSAgQu36XGg+cZjysT8ftWgtF6tjQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB4356 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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?1770756211602507235?= X-GMAIL-MSGID: =?utf-8?q?1770756211602507235?= 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;