From patchwork Wed Jul 26 11:38: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: 126321 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp366024vqo; Wed, 26 Jul 2023 05:29:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlG2LuCakpMBSW4u0GwnTMwaI8/quDtv3htARoM/ro5KXbHl2zOZ4kt3r4bH6IF98ItOA+xY X-Received: by 2002:aa7:c74e:0:b0:522:20a0:7eb8 with SMTP id c14-20020aa7c74e000000b0052220a07eb8mr1454601eds.33.1690374563541; Wed, 26 Jul 2023 05:29:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690374563; cv=pass; d=google.com; s=arc-20160816; b=0WyLWchTAD5eAJ3iJ2w7RjR+JK5fXK0E4oGura+ncZsAJ74C815PATQrBcASd3ppL+ UPktD9mibGKllOFTqp3fl21+dOwpK7kDU6hxw4Gd6OHIwG4Mgi+30kah1vX8qEMuAhic V6x070QgZShKhY1n5Bb2MrlQKHlPGwDUqDZQoDfKMkpVPlC7QU+j12hk6iYhnZzqPTYy S6YHQNcRRTX/ZlWvod3vX1ny5apCRz0F3JLDuS/Z1StrmCI12sdI9RpL0cuJCmEta2+P URnTwTyUIBSU02rfhnolXBe5s+sgM8u/4do90NOcbk9aAx5/bBMyFsa6vJkplaQjMvGn 8vkg== 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=4AkmcOQNPKw/mcHPVfZKKDIU4rPREB5KZt5XcEEbxl8=; fh=bMC5P8+r1uhJNT7JdPC950luRXJM8ZVXe+jJ3ryOPds=; b=dSRM7LDvAcx35vLC1+zvv0/7BbHYhu+bRjyskyHjGpHP7kfd0jUgoAd85jO6wu+4wT DMIKKp7wzauM8eZTTId+95GyffcN8BX+3lIq4lmCFr5thc84Xa2L79nYZjT6IKaGBZj2 JdHzVxMWzy8dXVhD416PWALTtO4Q5uNaRy7nGzW57AvEADqIwKwwd81jake13VCKc0qj li9fXccQFLG+W8RlLvUA82Rt8mfJA+ZrV3GqQrTvVhLGAPu2V1QfVEi14KE6bG6kt8w3 QtLWIrV14koXfLdaU/Y5vhv3l5iUhbPE33rkVyPOKT+wFwAqAN2TpDiOjg3YH81JkGyN jvAQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=gSeWR5Tu; 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 m20-20020aa7d354000000b0052254b379b1si2137008edr.165.2023.07.26.05.28.56; Wed, 26 Jul 2023 05:29: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=gSeWR5Tu; 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 S234329AbjGZLmF (ORCPT + 99 others); Wed, 26 Jul 2023 07:42:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233134AbjGZLlu (ORCPT ); Wed, 26 Jul 2023 07:41:50 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2070b.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::70b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB6B91FFF; Wed, 26 Jul 2023 04:41:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fKh8hMgk/XznrW57hMzuwenAfBhfeBkjdynV+72yTsNVx9sFlKuf54wYd7LYQrivXkYEv6MPhzIHzNtirj08d8jGS2xX32ZjPiTFrmcctTgGhJj542wvQTwR4cszpntusBGh8Duaogy7zCUqAAZ3mMKfW9jmIXhoFio6zkkVs43+mIaoAjWRqr7YpopbID/w/xuVKZOXB0+R4tAvvGnDnj/ORMeSCKga32CjemJCV4/MpFjbNmjFgWFYnp/ktwhEoXR9ywEf1o7ECPTIJPkjAYrA2TuRt0oIfrfWNWdK1yGYhWR6+vFwPdhIeQ8as70N+HR931eqB8l4smumtmMXAw== 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=4AkmcOQNPKw/mcHPVfZKKDIU4rPREB5KZt5XcEEbxl8=; b=lIa8zHM/WP7TL/KZE6Lk4cJiYiatv2Yc65IxbjmGMR6YzfP2otlGhgHSiu8WY2R4llJtETMvqJu0lbJeuC8yWMQvkNPaslWRJeIliQI1qygMl046NvGmyDBcFEXqVAy518NmYS1zVdF4hVVGMwgFJQrA2aR5h6wSnIBMJRJm7KLBAcIjffSlKL/hc7DYsPBESoc2gHOiBU9jb0/eyqvsXAlQBGsZ1ktB73iiB/sUxyZ/JMDzU/Qofm6sz62QwYeMvnjt7sNty/A0o2PC8zptXgsjek0MkhTN5DBhFO+cgnp/wezBVTDd9r8KVKcLspKzQVyJBHW8Vv0vuqez8zqxPA== 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=4AkmcOQNPKw/mcHPVfZKKDIU4rPREB5KZt5XcEEbxl8=; b=gSeWR5TuEeQ0a7RCx4jZ4B05J0nIBBZGBsIS5RT8sJdfkZRwnoGrfwr2q1I+qkII0tFIuDrzdCwn0LlKcr4KkYXicpccUDv455enfForZ8JEfxWsElvR3dFtBqU0tPaWpZvUMMQla+cN9Qbw9Ey619L8OSLWn8IpT9yct2TLdoVfwCEtOMdn0v98HtkLypz9w/8/8xtGq1uMzu+Mguee61mmp74EMnnqU/NmbHNCj+qsQg7PQ9WjblITf1ziEOraPh7qWWeJZIWljSuEBq8FGFdIm/sFjA5Q52DnerXba9LifrnaWnEZHId2jvJF6iOL8D58VOXhhO6Abefiba+q/A== 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 SI2PR06MB4203.apcprd06.prod.outlook.com (2603:1096:4:e8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.31; Wed, 26 Jul 2023 11:39:06 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::732f:ea1d:45a1:1e0b]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::732f:ea1d:45a1:1e0b%3]) with mapi id 15.20.6631.026; Wed, 26 Jul 2023 11:39:06 +0000 From: Yangtao Li To: Alan Stern , Greg Kroah-Hartman Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 26/30] usb: ehci-mv: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:12 +0800 Message-Id: <20230726113816.888-26-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230726113816.888-1-frank.li@vivo.com> References: <20230726113816.888-1-frank.li@vivo.com> X-ClientProxiedBy: SI2P153CA0033.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4203:EE_ X-MS-Office365-Filtering-Correlation-Id: 5f4cc424-7012-4f67-0633-08db8dcceb2e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Nw1MF8541F7idI93KYv71TZXP35gOi8Op1W84EVdsePdbR9ia0zZPxs/FiovLrknvosOpGw/407s5uU41vgQO0eCGq3MksFDYZQhNjgyeyFMIdIoJLgMYey606VRnImIt87gwTtfaUsIULarcWE3twjlvuLf008Ni+ETsTbs9oFAhyy3SPewo52VIL3EWr66THTD0klDM5A4tLMwnIXOwfinhg0k4c8vhgnG8ib8lKWMYHerYKpz0/sKW7bREzvc6rD0fiIQgkwUPnSSKTSiiG27II60ONQkcNS1TZYPnYFahFYzCE1n73SeWa3fAEB+2yLGJKAdb5b3+uxrl6S/3kL45KRDLH+5597GgjVPj7WLiQK/uCoo7lojjTfACjRN9f0ln7LEvMmA19i3eIhHMtm32JVDJQt7UT4fOC7mlsmODTblC2TL5Z9u+Ggr8vc6zi6BsfnOlHhH30NT25Qs4T+BZ3Hf+HZY0YWyrh8cOG7U3Yz6Aq9o0GsZvmntDiqvXmIIgaGyxLtmYP45Io5v8U6RxcSEL5/P5iOoSMsE6W/2yRQHe8lPb0OcmA3Vd61dxSDHEjIizEHiPzrvKr1Pi043jD4/BW+4iAum+73SbJrvQiEYBeIWk6vY9+1k2s1a 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)(39860400002)(396003)(346002)(376002)(136003)(451199021)(86362001)(38100700002)(38350700002)(66556008)(478600001)(4326008)(316002)(110136005)(6512007)(8936002)(5660300002)(8676002)(6666004)(6486002)(2906002)(1076003)(186003)(52116002)(4744005)(26005)(6506007)(83380400001)(66946007)(41300700001)(36756003)(66476007)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bm8YGnRSJ4fKYO/SGxB3q2P+lG5aC9aDMd8pkuLpCssixBCxzj9SO6It0mcfymIDmvxPuVZsoHQTvR6OovFJ4bGi6aJbyt6R36Nr20xoFzV2ITEAXyaeVPagzqimdxERzdnc1gw8PSSQh9aw69yTDE2PjkOnSTzB4erxBXllgO1AY5zv0hlQMhec3j0t46bnQdUXqA6cM4D3F3K6w5ohCMbOsgpbiaa8A6tjNVicwlAkQySqdfm8wLDtqAFHKyvOOzisoLJNYju4TQib3IqCVJ5Zwjr0i9hL81SrwH+sgEV+ENA/FQSR8xSISVsqL1QOkUHpdrcMixTNNCF9cuYmCXHy2jfOu4qJCAOLnxuhvThy7/7JqMETTxd+vxzwQiGg85VWRyBhLkJ9YjPCwbZ2Pk3B42CkeUxfi0lI0TBksND2Efda+hPIbzP9WmlaW5UZD/LPfYt//jhc/3vTGa5B/L1J/C/E4LGetegHof2QdLZbQchd3ZFx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qoQnckUH46h3GQve/ckNvFiDAp X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f4cc424-7012-4f67-0633-08db8dcceb2e X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2023 11:39:06.3509 (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: FisU423//DOMZbU636ATJjFbXDpH9IBatF2h75p8hqCTp3BaaBEwUoIWajH6eJGsr1vrnl1xpF4WeTCvm8tv/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4203 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,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: INBOX X-GMAIL-THRID: 1772486198438898369 X-GMAIL-MSGID: 1772486198438898369 Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li --- drivers/usb/host/ehci-mv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c index 9320cf0e5bc7..2f1fc7eb8b72 100644 --- a/drivers/usb/host/ehci-mv.c +++ b/drivers/usb/host/ehci-mv.c @@ -142,8 +142,7 @@ static int mv_ehci_probe(struct platform_device *pdev) goto err_put_hcd; } - r = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ehci_mv->base = devm_ioremap_resource(&pdev->dev, r); + ehci_mv->base = devm_platform_get_and_ioremap_resource(pdev, 0, &r); if (IS_ERR(ehci_mv->base)) { retval = PTR_ERR(ehci_mv->base); goto err_put_hcd;