From patchwork Wed Jul 26 11:37:47 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: 126319 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp365626vqo; Wed, 26 Jul 2023 05:28:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlHhyAmSDx6nYgjkWeAOpJ6rEfF4X/JKfynW6jClJOSlIL35q1kZamK/oTHJ9sH+wKYzlNy+ X-Received: by 2002:a17:907:2c61:b0:98f:8481:24b3 with SMTP id ib1-20020a1709072c6100b0098f848124b3mr1917189ejc.37.1690374525470; Wed, 26 Jul 2023 05:28:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690374525; cv=pass; d=google.com; s=arc-20160816; b=bpHVUFY3lbu6ZNUcLCu6omU7J8rcjm4lCkcV+5PipcFpWV4es3wQqGFF6KbHt3iMeX WWzPJod3Yd1ZgPTS+nX+yTTYozkHdWKzgqEYKctZDXSDKbl7Gx/cTGi6jGw7WFKdTwSZ m+ktjBKOyVsn8vNWeOAWZPoFCk3lgi2UcWEwGZ0BTJrw8Lwfjit/+KEiUR1bBdv5tyBq w6hy7izhxatgnr1pr356OXuYf4v/qb9qYHODVOv+2u3vfLza5jSbEiGpALUjavybEUtW 6BrEPkMIzbGuZSm+A3nOYywano+KNJhuCIovL1mwN2qeCnwiHVrxgaTEHpIAsNufQVm2 OUZA== 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=T0dsl2E/izh1uN6RWG69frHSuDanI0GtNcxWA0K8Ov0=; fh=asWmNyLUo2fdhT4xOFc3PNVSx2FBPPexgYKNjjoF1dQ=; b=wbucRas3OcXKB/hEp4sbJzhyxpRXRwSeD5fngHfIgc501Li/fMCiySP5mNVAf+tOAN gT3Hns/TXioRDC8pKEsF8mwn/jpdKMHN4gxhuITC88BypqxSl8sreWhQ05UL2oy9tuG1 dyp5AqHN4WCx+/tayewLIQsZ74KIlZT6csf1aQgSy4traS6JqfOD5NOBlpYOKvQ4a/Pp ChMoojRZKEZNGbozp0Y+S9TjaXit5W3HZeF4G3zYp2DXEoCxDCCAQ/gEL5mmRN6EbWRc gERSNKMDE9A+O4E6ikg/W4JBhrJNWRWT05JQ1cq+N9KL49epUy7bZzrg6SUlHAjjSZis DBsw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=RtsXLhTh; 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 kg8-20020a17090776e800b009888aa1da13si9799786ejc.752.2023.07.26.05.28.20; Wed, 26 Jul 2023 05:28:45 -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=RtsXLhTh; 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 S234116AbjGZLi4 (ORCPT + 99 others); Wed, 26 Jul 2023 07:38:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234104AbjGZLio (ORCPT ); Wed, 26 Jul 2023 07:38:44 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2126.outbound.protection.outlook.com [40.107.215.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4652AA; Wed, 26 Jul 2023 04:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bBdjcfEW1snCx8me8+U3e57bkQwx/P2qMXqRNV+Y9FqdoCTdsL8ZgpcOKkDWB4fOPgXyY1eYcsvid0i6MRTPWdICWapV/iZh/yZ7rU9rQYTVTaAgimyIJ0WttgCHflt2cB0TKBjBV+rttz9UtdgDykGM3yEA3Nmj1w2xONyuBpvHIAQk+gIcoAFYfqA7uNwn0AT84NhWQnlN0v5bAAD5ELQZqmaDRsbZHLzj2Mb9FqD4rxGqM9HD09FoN0KPdsovbPys+y7CYqCsDps12KQ2ZEEd6iJSBwvOSQp2ATBihC+WeMmYkecFQhHuSCPlvfx0jZR5HYO9haDguDmAp/I5aQ== 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=T0dsl2E/izh1uN6RWG69frHSuDanI0GtNcxWA0K8Ov0=; b=bBXUAen3SZHENNO3t0S5r97ElJ6vT9Bx+bQ3ydht3G48BP+rv3lBmc9jCtUaYn3e4zxj9D0D/Rbdl3bJ+QWchI5UXRVGrNddym6h2lOi1NFj7IDj2Lyzt1OwW5YSGux8mR0aGE+RsHd0ljOueOJsCZAn6UifXXRXXBpqy81Dm3SqTb5F0IKIgTtryEfiPQhQsBW+t68DFy7c13ge2VVB22O7wlrcgiLgPEcH+DsuZOZdIjN8xxe8dr1rJTz00GzujZBpH3DGlIcDuMjpc2n11Lnzcd/1jv2G/FZUjLdao0VTkMUbUtAW4x+NQokKQPwIxXPNgJpNMKwGscZTqAdgqg== 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=T0dsl2E/izh1uN6RWG69frHSuDanI0GtNcxWA0K8Ov0=; b=RtsXLhThw7RU4IV2iKnY5UUJR98azjWGKSiNf00gK6p1dKb3ULZqKAeizGKpU6ldMRv4QhTKwV2flPvNgGVMyRgjq3PW9jglvLHWZKlbvuu0jLySwqWgM5rr4IVHBVUSitghJ57Z4OacLWJjHKoc3vCJSivCtrssnFtQPekXLs4Hz2avoklUBikqcetvxcARwL7OEMjxYc9OsATEB50EweomJFt1KZLzGsUV/SfcESmnBiQUsRJEV6Mm8RQuUC75I2t8GdfBwM9+MM2dU4Ucn0ZdmL9w21QwiSpWnD5rhO9NrxxatLCjnAVEpissoPF2VoliLi+Ere3YLQKQuNyRVg== 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 KL1PR06MB6210.apcprd06.prod.outlook.com (2603:1096:820:d9::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:38:27 +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:38:27 +0000 From: Yangtao Li To: Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Alan Stern , Greg Kroah-Hartman Cc: Yangtao Li , openbmc@lists.ozlabs.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/30] usb: ehci-npcm7xx: fix typo in npcm7xx_ehci_hcd_drv_probe() Date: Wed, 26 Jul 2023 19:37:47 +0800 Message-Id: <20230726113816.888-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 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_|KL1PR06MB6210:EE_ X-MS-Office365-Filtering-Correlation-Id: 4d274978-6f7e-4a9e-93d2-08db8dccd3a1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Uy15++iRILH3+7GEjlkJajjQYpmK7Cc16fD6pK0DYPjAWJ8gsguGVeWvf1S1/J+XtLn+vEgl/NLluBLzBlOt6CCtdcj5w/dX/mec7A8QmZoDNdIsuwhU0feJi/qU3DHzJF7kA8XXtXtDYiECC39i7gsrQpcoqYKJKCJIrUPtUHqEp02w3DA5ZIHZp1mFWhENQj3+fHPpBCWcBi67YsuI4ugB+S5+CKJzjCA1K06i7+mWpfzVFiO/FrFYLIGxO6A6bAXqsv62i53g72WJlu0yGmQ6CMVFoD4XJVXGy3URpE/qEEEUc9AL3T7f3WqpHPPz9RozyT8GSWS2cPlFS4AYrKyrIiDGwsWm7l1b1OG9nr8BB5ty1S8qkGtqWUk1crIxpazR/BnEBauVO+KSXNzHR3pPw9lkIWczSqB/bevCXts6kmSy4hYs4TJ45ugzVWUZoV9XGuArTrQ54+xFEjg+qo0gcOiqsTVOhMFma51wdsBGpPwfhCx0+B4qLMlCWC6FlA8IycmWhaPs9M1qikjGNPy6IhEGbiDWbX8OJQ27Qfv0ge+x/Lek+LP7+5wtYOmvmv39F/liLlYdOehD0ZCMi5MuW2+lDsb1+9n/AnrXbI2lXE76UtSdk5FL6XTzfKyO 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)(396003)(346002)(366004)(376002)(136003)(39860400002)(451199021)(6506007)(7416002)(8676002)(5660300002)(8936002)(41300700001)(316002)(4744005)(478600001)(52116002)(110136005)(2906002)(6666004)(6486002)(186003)(1076003)(6512007)(26005)(2616005)(66556008)(4326008)(66476007)(66946007)(38100700002)(83380400001)(38350700002)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GBh1n2jWKJFi1Cb4TwVMz9meBQiKRfFY+A4mbrsgYXTp1Ul2k+XH3dGDrjVZaORWnb+ubTlRGz0USOLKUQDc6oj6wyQT98t572JWNrCG354dIFdPb+wwzgXwJ9sSf1u1HJQlRisK96S8SjXYLCyYuQ7RrXXBezEKBReSo4qNsEuMJIhkdmagTN/NZNZmJhtUx3zAvx1nbeU9ZopcKNQAHmTKUxqNoSDMjAfQBccieSqWLNMXbgBtZC77QyORqK/qpzWeEu4WUqPGnymLO9FPRfR0Rbpqz8zNwu70TZCmBCTBBn9YV2Qf+PViWdb3SDVXLSbs1LY3YaQ+Mjvs54iEUsi//rNxPMADXFJFVDWWthYptjpwHjP7n16yuWy7L4w+qbElNtaDBkM6FW0ipDBCjXttvj3NqPeq5oZ2b7peES5AjoHgRgxsiV15PH4B1hmAetz9JKsli1XmUATKdxRbIvbxFRcydlGR5YVNF0TTTw4XCdDefgYqrrxigvPRN6qzm4d4469kYI2cd1SI6DBwmzLdi8bh+E4+PdYgXCGr9rhiw8J4Yg8dqfdovKxKx4kkRDjnifJtKOjPd9YZehpxoMmpdt9fWTkcCbfoQRoMHy0aAzshsi3kzqn9R9ht2eefRORFaLGJQ4+QVAnAGa+0wy5Ogd6Ql6lH367mJAT7Cc+O7na1eb22ACBS6KmpK8beQY5UBbB6Q80l5K9p/5+5iF96F0GMfkt5PGUBzdn09k5ymiBfsgn1jwrG74vq2I1flRIGi6hfI5ivHn42utF85ittB7tiomx+DzXKF9m83IO30s/B0CPnn+tPw3M+Dl6VjdukIOv7Puyaco/4ZyNqfDi6inxrEDKgkszUHpoZsvBlIGLiVFp9kfTerQhcOtTBXaq0UiEk/qywQO/8C3qOcS+I9iX3BfofJS6jn9FT/TpTg4pr7xays2CXFqSAWbeyo/AWJiulLWdnGkkQksAm99hu8Hik0oDkLels8WMF6yu6ewAoIij27XkMMJ5qH6/m4r8bPhChgCXq+sLRymx6gIpGymtJjIE+dLuuqLX5DxnAXcYoI7YIy+iMY2kSMD0LQeELY0fWDxq0RQ2F5O7gBAvoARvPj76FOmsCc2jt6edchvyfWYWR+TIExIQyHxNPP0uDDSyooMFTkCHGNZ//WrXAv7LIjRH8vbHjBPliR3T3foFTEhgdz9Nt8aU45JSNtWXRfMEEzwXitbT41CrlBd1Dn3hUVd9FwiHidxbEa1/XbCvnF0fup+Y6OIohJZgvL5qER6mQi4mYfrDh90rzXLxpUC02n6dg/sL3u6Aa/b87uqr+4lmbj8l3ApdKN96cJSDEmcIGu3wHDrv0cCiGCZBkIGwQakzUiWNLJHUXoq33+pzjvy42uSbLZ/NcacBjH0zgJnJboTw/lDePh+Gt/w2L62QN4WHrt/yEd5HLOJla9+h6Qv+wDBa5zDC0ReuJbntCPQp8oCe+E3tuuHq//P2ZkhVl4wfTLp8Fl+2BWQrB/jBB+86L7X2mYKl11bu+DY50sEPqH7NQVT3QfWGtPCdstegQFbW0SBPWBiTHNtZj8aeyoaBR9eHiviRt4tw/ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d274978-6f7e-4a9e-93d2-08db8dccd3a1 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:38:26.9107 (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: P33udgjRDjO14E2Ad6eGh/l5rUpXWOrnC2Y59B0scyXhUysBPvHBbN3kiIJY962Ft8RKnVEj70fIySrGqniNkQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6210 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: INBOX X-GMAIL-THRID: 1772486158794700859 X-GMAIL-MSGID: 1772486158794700859 Replace tab with space. Signed-off-by: Yangtao Li --- drivers/usb/host/ehci-npcm7xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-npcm7xx.c b/drivers/usb/host/ehci-npcm7xx.c index ad79ce63afcf..0b3b3bd689cf 100644 --- a/drivers/usb/host/ehci-npcm7xx.c +++ b/drivers/usb/host/ehci-npcm7xx.c @@ -53,7 +53,7 @@ static int npcm7xx_ehci_hcd_drv_probe(struct platform_device *pdev) int irq; int retval; - dev_dbg(&pdev->dev, "initializing npcm7xx ehci USB Controller\n"); + dev_dbg(&pdev->dev, "initializing npcm7xx ehci USB Controller\n"); if (usb_disabled()) return -ENODEV; From patchwork Wed Jul 26 11:37:48 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: 126335 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp380133vqo; Wed, 26 Jul 2023 05:54:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlFzCoUhztsT/8v7eJ4jswhTZRxek+NR50h/FFpD/rq3yu8TWEET+Lt03VlEeeiDz6Ww1vg6 X-Received: by 2002:a05:6402:8d6:b0:51e:227c:9492 with SMTP id d22-20020a05640208d600b0051e227c9492mr2188686edz.20.1690376088818; Wed, 26 Jul 2023 05:54:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690376088; cv=pass; d=google.com; s=arc-20160816; b=UYXjczmRvuLkvxQEOgG7sz++gy3NBb5XbdC3qPdMqXX30Ju6/d/OCRl2mgr+Zh9qNo wIG4c9ISGV/zxQOF2pz9MIsLKISj/xEmn20Yr1E7TBSjyW0SwpCt/9YRBAbk61aqWGmk xqAZ2S33vVRVJIh5k0Z2gGtb6Mx9ZhEvuWfAOJC7LV57aRAQUpJxOJGGm6Xq+uQTTXCM tXVhnsXRBeWGpMtyLNyyf0ueGt66Auzg32tKO9+i1jpIKjHwdfQMelxEWQHaUUhLAESn 22oWd8l4JIPO+h+hIxdM3rVx1gxGg1dUQVZxoy9Rz0rsOEVzTDRAPHEW1hnzmGP0V9AL bGLg== 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=v8Fj0MzjfsMbtub1RbMTfz8JPuqXLQhflYxBP5U5nG4=; fh=YRBrmZOOcEdgz1GSuzK7iH/Q5IfQZn0bDPIBirsJE5A=; b=ulG/ZCbWMYwbSwgf5pq5HSYVyWgczQbVjRSERbaRj/+fTbKlmfiSwFmTGNXrVEY4Vu HUPyW9yz0zXxX8po+zkLtXsv+HJnK+k8Bn5I2ftX800RLBYAZAuGqBEbc1QsU+WmNfBZ ztIrl/92JrNmDSx2h5o+AoGZoLALOt6Dnr/q/K3gy7mJJwNKhyTNE77oonVJtVj19uwG +gVq9DGdYolzfOsq30+lKwFCLPVSfDK0T7rWVg3s2zikfxQSJUFinchQ8RIu5b1v4j5K ICfGQsycfp5JV1YFloPuMcY4k0O41y4Rc13XfkqEjRHW/+G+aCt40Q3rDd3qBR9jEp1s f7Gg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=J6mbOaaI; 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 s17-20020aa7cb11000000b0051e5322a64dsi9141436edt.420.2023.07.26.05.54.24; Wed, 26 Jul 2023 05:54:48 -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=J6mbOaaI; 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 S234096AbjGZLio (ORCPT + 99 others); Wed, 26 Jul 2023 07:38:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234095AbjGZLij (ORCPT ); Wed, 26 Jul 2023 07:38:39 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2126.outbound.protection.outlook.com [40.107.215.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 247221FF2; Wed, 26 Jul 2023 04:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dnYOuK8ua0t+b/eEK8yRf4ErJrB4n1aDpZpwNRToQGYIn4JvNbGSwrfrIhKfMHA3pJVFpOvL/nmiPNNtAaJCQn0dhQcbzdrVv6dqpu3R/1t9OxBBEEPWioKXCDSpbGoxB2+GhiIvqiOniRatc/cbnZfN3HUwM8L3ijI78Ra/REVWPOSZj2ekpYmZVP4deecqvTHxy2qw+tQO8qeDdvCoVPoDWEFZel3rYrh7IkDFxF5b13WTrBgbuUFyJA/omJaQzFKfcRTjGj6KoEFVJ95Xg6Kf/UiZFbfoPtzYbvcSASEvOGCdjUzGCK9Lwrg99WNLlB94ibf8tMaqRMWN9r7Ufg== 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=v8Fj0MzjfsMbtub1RbMTfz8JPuqXLQhflYxBP5U5nG4=; b=SVHLGzNALHOjfxjQ+fTdqmblOHsg/emUObmXm2OCpFBIH9HdlaG5Joue1p6skUHl4BvOjWTKOy8IxgvzgUJCbf1nMgiL/004MNvKsriCpOlvtG8j74ZdesJN1WwGMAH3LwFQykOVNMpez3tBJW97dG6MqIib3o2N/Li2QiGcOSlze2PUDSPvKgDgV2g0L6Wzt0vDywryB3F2Sof9J8Eu/pXTjsmNoDGE31x6yIsO3w1HZuNCd8QZej8adFYNAWiR3AHrnoglQfE/u9bVPuAAa0cQfr/dt94R95yv3WBFxFPr1LUmANdqJQGNfEZKsMVdm/QecWzxUNxZVJER0bZKkg== 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=v8Fj0MzjfsMbtub1RbMTfz8JPuqXLQhflYxBP5U5nG4=; b=J6mbOaaIQXyb1uFLB649W8s/RpRb2aeCTQzyvTlBdrnkSj8JzfwAGDRBlDe8cIaODaSSscPuLbNgw15c0mfb70bpfPHUjrtmUl2ghuUT0FZp7QeZrXuG1qmlZvMWkD2Nyz28hB5QcAvlByySCY9gcwyHyf1ILwt9s4Yrqik51D38uu+PIQLMJl3f45Ra9O6aJh7QqGqBw8cX0t3ROOXdFI8pHnZr6T5yw18N7DyxHrbP6ULH2Xp959yoeqVpzbnVCrCVdVHlscZ6pG8hjyy65jbtDOpNrgiy9PnFqxcyz2Z5TrlUaPwwqfq0Bg2PZwXjfIr6i1y6NnpgRbsNfu53MQ== 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 KL1PR06MB6210.apcprd06.prod.outlook.com (2603:1096:820:d9::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:38:29 +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:38:29 +0000 From: Yangtao Li To: Peter Chen , Greg Kroah-Hartman Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/30] usb: chipidea/core: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:37:48 +0800 Message-Id: <20230726113816.888-2-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_|KL1PR06MB6210:EE_ X-MS-Office365-Filtering-Correlation-Id: 67fcbc28-697c-4477-cb38-08db8dccd488 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7d4qzhgVWM4afZqVMlK14LpJewRFNi2BbmMO2tnupP86daDK1k2TE2kV+sysygagJsjlHU9pMsjtyHHc5KeWUrUupGgif6EI3X6Qx0UPMIuFtE0qjRYt2j/ZsAyy9VNUpc/CwCbmzzFy/BQ2MDycM8Xr18DvnrkIuhf1R02j5GPA03R/Tg1OGaimM1JBDOhYoRF9V7kR8R33WctPjA5liR++R6bb9VlsNpEuc8YmzAftStV1zZw1IDAehCBrcL5+OxY97D6ojyube3+rtmTmPaaQyNlzCAAvPKWBof2XQwPKQHqIO1gb6wDRuFKrE/h3Gr4gQwz3XGRbQ68S2SVrW2np9TSQUvrGWkc25S++oMixff/Y3DBF3PKF3zqnvYBUaW2hmWNFYTiNczK3QH/mTso+GH7WZZF2gs9+Se8XEERi6z+52A0+kSYJ1F4yPHW9it8fIpJobpNOQl3Obj33aP8+Ryq75LQWiBj9QT5Oz/aNosPfO5rfRHr7Ww8RNp/AxT2nmPmrAvaTH2Kd+5XQfFKbD/WQhEWsznzC7IfrqB7FMCdxskojCgWlWVlrUx+rrw4uRDgPAAl8H95SIdt44U+qOWvEV09HvPZJ+oYTCbDUBR+wtxfF4vA2iM0QMqER 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)(396003)(346002)(366004)(376002)(136003)(39860400002)(451199021)(6506007)(8676002)(5660300002)(8936002)(41300700001)(316002)(4744005)(478600001)(52116002)(110136005)(2906002)(6666004)(6486002)(186003)(1076003)(6512007)(26005)(2616005)(66556008)(4326008)(66476007)(66946007)(38100700002)(83380400001)(38350700002)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: m5GD/E6Skw6IaxjEg0owlnjDte+fQTkKe79Tj3rOrJORGxKRuV1Vk8NFjAcNg/4AjVPCQQFx5WNAu+zKzRJegJChrPB0W8YCTN/m41YmIwQSrCNGRR6lv8CcRfZHPy0AiJ75rogAp5Mb6JpjeHy+RpkzM/eqcdS5pS3wBtwmDzoWc15edQuIIr1psjosBmTdq5fyIDssoxYAn0zj+xAUmCO6Uwa2Hp5SDlw5KLA6KYKwNAS+Ujj6rgaQY9hfjYRHrFUyMKc3B4HFuarue6K4+eY6ghYJjyivht3fL3hS9Ago4oCbvEmJxShJXPQZY/FNC50tYmSeYNAuME+QORjV8e6mNW/OONXhVQdSlgF+yiFSfhLuwmGQIS7jWKneVZX6ZNvf45F/g0Dtr25hzu4F1SGl/3oqtZZ5D1f0LGnfxK2b9K/jAjBqchwLSkJ+TZ50VrctDbzcLZD8l4lO7vy+pu9NG/Nebi5WezsDZ6S+wYvvO8gbCr/eohe/raSio785TIqVQ3SBeRT2xv4UBPXNlIjzcr8kepQMFVdfbvNYiISVP3EDkn4c+/QLwC+UV9+pYFrgi92qbcTdyG/58Z1ySHDW8KFBkiOxsHPWndtl0H0/2shFmEHaoKvjQ9GXsaaHu1hF6+1pN9cPAiEy7nvp/ekmcNf6ysRJ5ZXQ4wpeSza4j2icMrT79qOzxQ46UMVGtDb80L1DnVLFrWnC1M8wIu4AwijhrssJiTZp8YZA/smE2sp82mVrU3elqJY9wts4dHzVyv9iyKg8fxt7KFrVTBeDru8Mfv6uvbzMqzv8jeMn39Z8Jagw3k6fkYG87nEHhY+4uct2DIDtAp0mfJJVrHGDBvNJTREnD53lYGsW2ppgiOsOaXYezvV1W7Dd4rOkKv7io84PeoRhuqP6G+sdZpoNSpAxyVK2aWgZQZE4k+ZK2Ev3eoY4pl+vlKcKm4bJQuFIhiTpQawb7BvWGBngMeV/5yTvG4PnpduR2oViDQT7pMo4kiK5yD4zQ6YaOnm9RLzdoA1l4+BwUNmvsy7ksN9VrMGVePOfCMZKSQdLTP0inMEeZuxZfS/tCgMaMHyJ+TZb0Qshuj1hC+1XUvjkjVP+2IqEgp4dJwqXS89dIGMRDMraa2fOgIBv/jbuDQflSIdXIuR1dRnufLZTg+9sVIk5+kVK/XMl7N6O2RryWWfVaz6EH6/W2ecnKiDpLe1CguMYrSgxEdfU0RaFv0ycuB3U3dia8OfjiR+SoP49x+TH/w+zYytAs0TDJ2+DLtjsVOsmaMNX/HGrOkT058FhFZHt0FqPqbH+lsnn2w/L+i6oycAidt8C1XUUCsBJfHO5SJ563Po1KdARug9Wk82yLu/VG7RFRxLkxQeY9Fg978e07dYc8c+LA6JtvMNK26ZwCFT20IDZmZ6BnNSOomacMtRzN1B3ukUG595v/tlAUoxURL8QnPXP6KTjHeJwzKP2hvQkfYOqGLfKuJCdiQc9Qx7MgIPrtxjolVRogR+NjFN060EN3qn1Zblb5YzDka3n0MUzAiwhN8Pt9T0kct4TvpLKv7l1uo0N6i/DrzI6RouX+yA1SpFmtfvopxBHj+M0 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 67fcbc28-697c-4477-cb38-08db8dccd488 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:38:28.3932 (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: e+7VCSSdYP366w7ZR51Bk5fg4afhksQwI3vBbVsApR8WtGvKYWgUk0WHX1lVhWZDvbRgygZhLvZE3eJ9kG/e7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6210 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: INBOX X-GMAIL-THRID: 1772487797674271863 X-GMAIL-MSGID: 1772487797674271863 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/chipidea/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 51994d655b82..6e1196b53253 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -1028,8 +1028,7 @@ static int ci_hdrc_probe(struct platform_device *pdev) return -ENODEV; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(base)) return PTR_ERR(base); From patchwork Wed Jul 26 11:37:49 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: 126337 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp380703vqo; Wed, 26 Jul 2023 05:55:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlHWfRSGvjcZWvia9zK1RmKf3e6e313UNXaoS0x7iszBOzX/U2OTWQJkIrUHxMKpS0BrrIch X-Received: by 2002:a17:906:31c4:b0:977:ecff:3367 with SMTP id f4-20020a17090631c400b00977ecff3367mr1816056ejf.40.1690376148791; Wed, 26 Jul 2023 05:55:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690376148; cv=pass; d=google.com; s=arc-20160816; b=jBWGXIUw1vT9t+kW7eq/mzyZrbTnDlf3d87wVEzKEW7xOOAdPhgDwGzq6176DMEg/t X7GaPY8G1iM1h+qWWbMYJIAzf9/MemSCL7xA5m6KTYulL9LaVxkm1nRXp9rBSQbALqC3 8Z3d+1RqV5TmXdKX/zjJw5WJtg3tXFJdb5+EhvwiKvdcL6BxFY8j2RQtK2SoGa7k77uL qVw10KaZFxUocpXOVHR2qT9bZg1g4lVFph0Un1nMjrh4pBS7A3q9OTrrMLHHqny2mxG3 YFmv9ynE2OaFOMQgQa1L1C4Kbcvz9bZ5/QrWBx+1N99OYmKStzGVktMDDR9ZW2Wh13vS 957w== 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=1Orvuye3fNLN++r+IzvNufcdklaAXxOuN9aUI9dPsr4=; fh=qHJfTKf3XO1oeYRTg2AbSbUC86sN/+2WM1r3uQfXrOA=; b=GI4cBOM5Pp3UYl6Nm/2cCLK9DEapIPRpRFff+0L9mSu1ZzM/g1dm+Ps+CFELvi7pyU 6/xojc336ZzurX3ZFUftJBlWX7NFyssfQfap6AOx9wSPp2jConptcP/Ig2dLE9uvaQLX ZGg/2+wLajwnWIgLBWzwngcgEH9jBiOrQQCd2QXqnNBVQz0Njk17aBNgWSzmaiOfkYLR mGCREQ62vZhRV+RvlswYAiqMGTkD7bJk0QWR9Vk40hHvIeF0ndjrw5fllTb06BT18b4G 8bF198K3iapBLelIbPwoZfS95Ob4Vre3n/KGSn1PlUDA8CAZvfUs5Wx38ZyHAjkLz7gL 2xFw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="Yr5b6/SJ"; 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 qu6-20020a170907110600b0098e4aef0789si9838449ejb.613.2023.07.26.05.55.24; Wed, 26 Jul 2023 05:55:48 -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="Yr5b6/SJ"; 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 S234105AbjGZLil (ORCPT + 99 others); Wed, 26 Jul 2023 07:38:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234084AbjGZLii (ORCPT ); Wed, 26 Jul 2023 07:38:38 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2126.outbound.protection.outlook.com [40.107.215.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 488C92696; Wed, 26 Jul 2023 04:38:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ch3F4osD06J6rEJNS5pCLGvI3e9c6SvjFtDpGEB4u0wyoIoUvE2lGpNbj8tlYKhxHMK3vFM7eSBSUCMr11TrvM6y4zepd9XwBbdaq86juN+DCQXWuKhIzHj5MbellaTdiiWTbHXlEP/5Qka7/hw/UmpLNqxXYPJKuBzVJy3N69Mn4hgKRtReu45zO5dpWIeN06s4jOg5RBTdlQ257Z2NRZZMLMWroADn/xFZ6In9ovT1ktkIYwR1jP/X/ZPjGOn7xGHietDCYVxyBmRgrJma/D+XhE30lyTH8iuxv3ChVP75JFGquE3Th8UHjWUB2Tb/T1QJHQM3toPHIIiALfbhsw== 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=1Orvuye3fNLN++r+IzvNufcdklaAXxOuN9aUI9dPsr4=; b=coDZZWKxauMGEuB3vWACjHA6gA9Cm/MWV7aiVygUBNLq1pvxOx0sQFQW3axQnTSUOKwuHcKbmA4Q7c+///oIp5sOyeuThxZBEcLioo8CKvq7dFOltB3yTdMZvHi4M3+G2k1uyP5yDsgvvd+jn9exNu8pWCXQFKZ3p9OpMYKp/3GdiYrFBDjtB9X0GS628BAf/dzeSuB0SxrZbe6+3DYR90j7Nk71z58OGa9tFp1sOo9Cn03ATxTN5rJw4NN/l/yKW3/mFwMlJT0zsHuaOqN9DCX12TCZtpjUkYrLHp6OYOobgj6HGGoh8cyVHmUKbBHIBCRx3Qk+vgaNH/y7Tqwt0w== 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=1Orvuye3fNLN++r+IzvNufcdklaAXxOuN9aUI9dPsr4=; b=Yr5b6/SJKgVvEzTGYN/C8fg3vt50S2OmX/J2sbR0/SkIf8cvyGSfIL0rTIHsgDvJUUnPvXU9JEIf6Idf7NcGB+APy0jhCqn6tYMwXC5j2/WQE+9klAqnQkdV1Kq2ivkZQhXTG+WrS2PAliUgcmFxEthuet+GfzduLWD2Uno1BFfUqM30IJlZhncTlT9gr6yW5OY0jJxFPWcv5qG8oE3UqWtzR2qkzBaGMMnzE/3gqGAwXAcTcLnAQJK3RxlbettLW7YGH6TVAcXaJrh+TDArUFCj98SDjNaW+GrTnvvzBB0aRboQDnpqxbcME0G/QJ7Kqw5qPhmivc7da0F0zYhYQQ== 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 KL1PR06MB6210.apcprd06.prod.outlook.com (2603:1096:820:d9::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:38:30 +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:38:30 +0000 From: Yangtao Li To: Alan Stern , Greg Kroah-Hartman , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/30] usb: ohci-at91: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:37:49 +0800 Message-Id: <20230726113816.888-3-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_|KL1PR06MB6210:EE_ X-MS-Office365-Filtering-Correlation-Id: 17e465bc-0bc1-4d3d-74fb-08db8dccd5a4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: guJvk17ZqDEBRQdTTrx/LsvAfjJkjiJrSD7sGpr1hvwmkZCpHroEtHWlaQUgRJf5BSrbVbysDxksW3+3/2JR3xadrFybOl7y6XhZ3F75eEAQNRLa1yIg/ZPgyRxxydmUTMpP2ipMSbzLdyjgKQkYPf/aqBSBx1ht3FZ0JbcP4BEmcrlHmNlpDZmBEofS714HCfcOcZAivL7mxJ8rbLny6rHMARAH3P0yQV4S5wsU93nGKYKEiwFaHP1jxyiNX2rF/KyXfzhrAulZ0J6kOGR5A5pCR8oY3TZRU+BSpjK72ZR7gdRADnqTxnVjSK9Uthb5wcotW0XP63knaWtYj3S2LLmKfXqPyTWOusSmJ1fO6EIIc1ElJBkcgr4u6rmO06S6TIbeYwf01YrwALvdejvgDTtZJ5cs9NwF2kH1G+hdccZQcU0vFBJqf7rSNYg0OzT/cdXjhlKr6m2hEl20A0s2steG6pnuLAFKDcDGH2jf30TJLKj+y2GB0O/hsz0FKvFzrDAtXla0WINvSu0VO6BCrbqzLhDmRZb1qw9F7rynsTnxha2qAorstIePziQB6e3UsdK55vco+JM5Hhc90KyTjEArUHp58kuT1OweW6gMvMl/2mZ+ioWBAykAWgelRr+6 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)(396003)(346002)(366004)(376002)(136003)(39860400002)(451199021)(6506007)(8676002)(5660300002)(8936002)(41300700001)(316002)(4744005)(478600001)(52116002)(110136005)(2906002)(6666004)(6486002)(186003)(1076003)(6512007)(26005)(2616005)(66556008)(4326008)(66476007)(66946007)(38100700002)(83380400001)(38350700002)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: uSPKvkntmg0hZaKl5rJYWP/cizpUdfrKGplXWZl0Es5i+z/bxS8c+OQTpkXBlMP10IcsVuKaOAILWOI8yFXr6ltG2b7ua/mRqljdoMzXjqcxBIG6gLc0XypzRoaqDTTtqoVZHyDdVKZwhQKOnMnAls70xjfD3HZ8ecjYzJ/RYmXde08j18ZQlttVSYgv3jg3OVzi0neSgUWu2fA/+K2oibm6ga5GToDnP9ZhRrxBNAoLQHdlnN5QLjVYmlfTwCF7HwLgspQeYd2TEAiDPhB/z03NsHto3XMxxPmOklv0v+1tG8bXoAF3hEHzFS3LwnMmad1MmSfejZReWdAqyg7xejvYK/eGbWo+kFzmFsUbueJuM/z4LswN4LT4voKw/5irVwbFdVzDLOY4k34s4Gb3ydtQOjfarAtA727r4WUXRW+Z+Yku8qQBQKLo93QQpkfyEBCYd0WqvG9IrGg1rxfCSwLznpEe2YPZKAFnMZxfzxQ/HMC7rUjbW3I7lO2Husk73SusTMEZylkxX2IYWbI++EvUkrMskZdMsDI+/v7bY+h991QZn3UU1tObnLq8Y4/YPK56J+w6IeS9FwJCP01nrEz0W1wdF/jXSoZ8WjpkFtXDb1HiilR6C5/ATv/SdXrTfJFgXfgjoidGsE7Ab4XeIxDAYt9rzrnhnbm5hmGHK9oouxR5VaT+fpp1zinoE68L5oIedCnbTN2gbWGqOSo4XRGq4JdSDHCxgyfFR2lhPrQLvItW057rZEq1t8JQsfv3lkKAqxW5TjfzKA50EK8WAu67NpuHN7AdnHm8+R2Vs7aruGfQg6HHpiLF/aP2QspZ+1B+sfm0QWx9l13CVS3McyNmXC8RAfLVMP5oTa9gpptZiNQH+sn1I6QSRolxklEmAoh6iLqMpj2CQ3BMiB4frTVKT5DJDvvey4VJHfbcO1tY6qUfnApEkDdQtXky5K1d/XAFMNFp6/jlwUsfD4aU2t0KGJ2iGs2pu/qnVG3WFivzh6q3XMg3w3jTIU/vcCG5MiVqhYx+OAdmt2R54rTfOZNz+G9SGYgOJXDSjYVG0ABdXLFpd1lGn/x/d6o7Oy3BzlwOM1HQalp4sb1W11JW62noAYi4bAxSj4B/iqgHyR5rj/L7ZKDDsttyinAD6ZsEPmGbA7OfpQumQeIrG0SnnGCmeNepVPrlwVWN4KPdV5L9spXtH2ydDG8R4wmM4ZfhUoxcx4ins6g7xsocOVUzh8AH5qtgXG9ehIZ3/RxwoxCeRiZl5FLT18p1BY+ZuPyVkenf8LipnYblxbPUUNX/mT8M0zV3lA++M/XLThD0BhpD5WecEs5z1fxH9qBkOH5Mi1UPw9n1bb7eeucqV++JAesFMDfh3Ylsm0rncQiQhCWHFO8efKdRFwmfxFbTvp8SN7ydhc/8Trli6Kzwuf+gPE3sYNIgjQA4xSooxm589nrviiTIvHQ3h+MXdKUqRNDzMhC5CRBfV7/CnAPKdUoLqPPMVLwiTsdJXnceWkgxw5OY6CETiKvuxbYauV+UmZwNFE9eCFB7Q8C+3AmpUr/YImLiqwHnvAi0UcBqRIhdJ5xnxuwkXbbIIvW+U72vlaof X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17e465bc-0bc1-4d3d-74fb-08db8dccd5a4 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:38:30.2499 (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: m49CUPI6334We62C+kOOIcxa0Kke6sjVeAB5MTWYXnaeg9SpHWNbXuHKzvz8VYm9JdiV5aZKyBcHHe8VpKv+MA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6210 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: INBOX X-GMAIL-THRID: 1772487860295452969 X-GMAIL-MSGID: 1772487860295452969 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 Acked-by: Alan Stern --- drivers/usb/host/ohci-at91.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index b9ce8d80f20b..f957d008f360 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c @@ -200,8 +200,7 @@ static int usb_hcd_at91_probe(const struct hc_driver *driver, return -ENOMEM; ohci_at91 = hcd_to_ohci_at91_priv(hcd); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(dev, res); + hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(hcd->regs)) { retval = PTR_ERR(hcd->regs); goto err; From patchwork Wed Jul 26 11:37:50 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: 126323 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp367734vqo; Wed, 26 Jul 2023 05:31:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlEEe5eD68URgXe1epTjtJrerYUHEPW6c5lYJ7Qm7lfqAduenqPY2SR5f5UMB4Cn5y3Fx6VN X-Received: by 2002:aa7:d813:0:b0:522:2dcc:afb6 with SMTP id v19-20020aa7d813000000b005222dccafb6mr1646502edq.7.1690374706986; Wed, 26 Jul 2023 05:31:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690374706; cv=pass; d=google.com; s=arc-20160816; b=g4386AwmJA5s7dE3x86TshGiz4Ya09oqrhGx4uI3wZBmHlT9/D/ftmvKEuwfe3wHxj ttYuY7BKB+HuqL2NKoYkXkfzMGZgTVXZh6kHkh56rD51ycUp6VvpgvqRSlmuCtWuW+IU lc5ASpXTnjUYJuVyK/WjBeYjoyKsT2KD2CNyHwSJoxE+P0pHOhqx6OzRzo2O0coo9dzz d4IH/Nv8Po9lC7hevKpmjXRgI0jIo2iq6BWN0oC4XiabwpA52cu5CTnKht7DAmcMVPhD kFUkm7H8zpLGl/bwEwV+cZnKQTfwLLcqgAgn+PF2+YheAwUqOw6v7p2WyY84lxaRfK3J HXxQ== 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=oJp333eSbifWKcVL71AiHBl3VQerhjNYTq3qUNbvqNc=; fh=qHJfTKf3XO1oeYRTg2AbSbUC86sN/+2WM1r3uQfXrOA=; b=brKBQ8JICnjgdVC0ix76GRpVH6hDYcG2XD1AI4XieiXuyKZ940kLSU7BCpoAQFbCoO YXH29XkDDUBoIi2Y6krEgi1nBKv7MxOgEtxruuI8XGFQj+J0X/ACea1454LfIjGImbnm 6t8LDgnKlI9JIN/5Effm5hlqeS4KT7rkPKsQfdfdehWCveMOLn8jNzmOutyCF6LxVFB4 prIJ6bEAe4i/cjcUuTf4EF6htxqcDJ/RuykCAYJrP5fX+rokMRxTUaXw+e4H8bhxFjHL LRGWyP/NMVRtri45cUQVfDCrwY1IPB6HQ3hao7ni9e120xb+fNZ+CmiUr6ImFOtkx3eM cCUA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=RJx0EG6m; 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 ca18-20020aa7cd72000000b0051e2295e54csi9761348edb.392.2023.07.26.05.31.22; Wed, 26 Jul 2023 05:31: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=RJx0EG6m; 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 S234142AbjGZLiy (ORCPT + 99 others); Wed, 26 Jul 2023 07:38:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234101AbjGZLio (ORCPT ); Wed, 26 Jul 2023 07:38:44 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2126.outbound.protection.outlook.com [40.107.215.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 029E12697; Wed, 26 Jul 2023 04:38:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lQJkBWaYY4KKunvRvXhsxVDLBmpPTVz352RVUX1g5x9jZhtwWNDJqfsKyhCyxJUzEke/lVbKg3JFL0BHjCZRV9jbJT3zSeJZcULCjMxMaDQWNlRECrTQctmGB60jRGSei46E7Rz7Nn8wtIlGcFWEEZgrAbFdm6qPTG9Tsqswm0BSpQY6N8hOkfyUeeZfGPXmRojkudZPsy/pfhiLZ4qmejUgB9N1r1MylfLDSI7JaPZve+BgxtL8OIO8AaU/M3+kHt54ZfTldeStRR6yix2bz0G7KoyF21e0sbGHl2jzRzxGMSA25o3xO7aYONZXT5ZYRt5bvpa7vel6dDROjBRN9w== 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=oJp333eSbifWKcVL71AiHBl3VQerhjNYTq3qUNbvqNc=; b=G5iuMpS/PnyGVi1Mfv/bSzZkprfCDyz9DeSyG1Rlo7SnhDfjnabweB1RMWdBhWAc6UP4LuZLSqTpAtPlTMDgPr/yMdkGRWAUVzcXWG41jI759S19uVGU02AQV0V3O3OAX2e/lkD+csl/6J8xmKZPmSwwa/ElD35d+VuqekZtYzaB94ztdVxSTGbvMD9bRsXhoDeFlG2ZyAcLeiBbXi1M/MvbAGoAuOgb75fpu6p6ouPQNW0SzxyE1Tu1g7LioUdT2C7UjTsJrMlDVA87pEVOHe6SZsZJc1822pNXwM7p4nMJFqTHVFCsa22NfI7IbTnYQak9ssYCrNqDehpnuj2Adw== 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=oJp333eSbifWKcVL71AiHBl3VQerhjNYTq3qUNbvqNc=; b=RJx0EG6mMq+5E23UQL8+yfQzvPPSyoR15rTmq/4MpVPuaPkizz9clqPGuvJTsLVe/E/Wzl82vVozOkV4r6jqcb8CQsyMhXoDfA8hqMn1oRegvO++hKgAfhrn0A7SsH2yGo6seWAigF51D3GG3vBSsLQFri1W2Opmi+epa1OcHGuPCe4hY6Pj0Mcii34W5x5ney2ItofE3E7aRSljDqZZtSsxgboY8J0EQBFmAYUEDLFB37GNIEIsnaSUNhm77xxHMJzWLnkVrBvg4vH/2XQipedrQRQkMCpQSOU3Ija79OnKHG7TQC9PrcxASuUlPnBOvqlqrXTAvRgpvN5psrsDNQ== 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 KL1PR06MB6210.apcprd06.prod.outlook.com (2603:1096:820:d9::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:38:32 +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:38:32 +0000 From: Yangtao Li To: Alan Stern , Greg Kroah-Hartman , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/30] usb: ohci-at91: Remove redundant msg at probe time Date: Wed, 26 Jul 2023 19:37:50 +0800 Message-Id: <20230726113816.888-4-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_|KL1PR06MB6210:EE_ X-MS-Office365-Filtering-Correlation-Id: 9dcdcb5f-cade-4400-e516-08db8dccd6c4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Tqm/jozl8PVvCw+hbfeAfqdqgL/ysseRHuWimrjHb/0ee5HmgGxifGXbraVo1La2rujLFEyzFWrt/1GlZ9MFXJEGzzSQkc1eXf8iK5rQ7Vlo1HlPxgzpIlD9kLTRkVrfFhYr8bg3Xg31CFjyZ08sgCuEckDaMnZJT9ob4wPHFc1itfZT/suf0o/LBdHajGSbjhBF7op60j0ITpAkKaSaIME4YPJrNjCReUbQ5a4N6/2M8KYMaHKj9ZN/Not6xvR63MB8dXwPQ6AlzQqyyegxYVhn7yPMhLfZyZOO3HDx5uLDcPMlOpsJSarO8IIDH4EenKQ4ElWmfVuzal9dy3hR1WFMrS2d+EQcVo72Pt5QK3DgwZDUqZfpVoHKei27HJe5yxqxE2D1yOWgXWY85G3a3SGoFC3UlCQrlTnTKX9zJSnaE44HKuYtAUBGpT4gEB1AZywebiEHfPpq08EtWrlwctC6Gth9bZXUKquGrN1qSppjpHWCzrQADg6W+2DocoaXCmtM8//NJxBz6P23stBkP78JvE6T9mUnMbC2ElTQ62ZY/0x0pxRnODCcxtTXiDJrm3W9L6vGH1Gm6JSlqjM+DVdmphCo+ecIEGwDXMy3Yp9dtEaIM33cCDywIvslckkv 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)(396003)(346002)(366004)(376002)(136003)(39860400002)(451199021)(6506007)(8676002)(5660300002)(8936002)(41300700001)(316002)(4744005)(478600001)(52116002)(110136005)(2906002)(6666004)(6486002)(186003)(1076003)(6512007)(26005)(2616005)(66556008)(4326008)(66476007)(66946007)(38100700002)(83380400001)(38350700002)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: iWWBT/0ieNUl3nE2AuO1GgNu5shr0OtbIkuiakj3V5ZQiWEwstmcWRm6Pec5K6Ht0W74Ogoxpye70AIBXk1NGFck/5bXeHeNSsaHFQLLmI4ktKOGN3uo9oO4BKtxRQRkf5HtQapRKFhcfm0jciuy48lly/uZSSq7OQgwyl63l/3QDyOJKnGYOlGLi39TMcu/HbMjQqGxBc4XkBYabM3G6/EgIyav99e7AcoETZyuuHGlkRebggtMGa4YPg0LvqJOfppODJ4Tohzs7YE9X6OIBMdamUmHoea8aekPRxpmLwDNLDuwnOIXt5AWJ2UK1EN0l6Ys8y1Bog7sPeOoewSTOY81LCj2VxlGnUun10mc3gUtnEJoCxb1OG03qy+ag6ogl0z1d/XoDhe1JMSm0h2KqstUy8FFaHfbMrkgl0VBTPTGI3YpNYdeYhs3Bnd0NvEVvFtx7VpI+2Ntewtl0dx8S/F2PmVa+rRkn7JrbDLwGOPM7/DMaFAUrhCKf9qV4eKBc9BWq577oKGB+QsOkelAvJAqplcdWfc3Gele7lt+RUtoESUMWk8rlgxRO3+jv7qsJMuZ1L2zWwd+tr//UlqS5/sinQvcZlPhGcGRItf529MNbFKFNjAk6Vl1VQCA3M85wr0IMex2GNFOWcFlFDd04DUFoDekBt/HN6G3mT8belDuOyN9tk3JT+twaRaYa9gNCJ/Y6zhZbMntRJemII3ssdsUEbUGJ1pttnFNtfkl01GXi9jtnx5Dk/xVWrlNvzxF9LwSc5lbC6PWx4NqLwqGtmCjMaQh/8nXs96usyS9lM9mQoI3QzSXvvFIebBpvg4ucckDJRWjFBrRszWCfAMziWpG6Lzfbdn8jQU5wScmPysL3NJzOWsY1IaMdqQDi5RE8UgReBmFWaFOkIWfgdIgk8WhXs9lm4ZzbaXP4xPdkgO6017Qqz7wslpE8Fq1zJo17DoU8dfcl442sDyEGh4r24TZSE0PSe2aSRTFiZiV+TGRKUuXQjWO+UfEkM9HZsfN0DxPDeCCYDShRUqp31PbtS0K1uXJ8jUCUIdP7xBRmQR0sw1wpRqmEM8+lozDPBoCBVn3QPk8d5vmUM2PcLygBeM9Lhws0qVddllOwNyQ34QYyKLnDSPjuFUitOIqxLm4VMfH1XITk2dMmsBkp/hL2JweNA17gYrqtTUhN+sor8O+8JtRDnmdocyErSAeKo4BvRkAOwN7bRpkoZyfYzsMqmrE+t/7gGIMq1bkyhSzQ2tw8AzsNycBHJx/CqejtttLiIx/GnXzQZhyygOA6bPYkUlBlofzA6Rdv0vKoBaB7132vvQCiPdeFhVLTRAzM+d8PyIbl4F9RI8RBO9PURVYHuLVLv85DwY/RDNtBA4DJyChrAfYP7SazBEvz1EG2XSBl4YvFKJonwLPY616RZQkwkwH3/H3FwVz2bSYAxQCPfZS2qk4VI6vosoaZFem+dVu1FzGB7JKNA90cWE7bo1LYh2agHmp+1MCtbCsNftIcF7ttw6NXgFO+EUtrtzDfSR4zGnkhuxxUP5H9+X7NV4unBaZuLu1FqKiW+EGCFAU9RKLqe3vjouuwOef9uTi+IJm X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9dcdcb5f-cade-4400-e516-08db8dccd6c4 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:38:32.1086 (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: ktzBf6BIHeOzDgzak1/g8A1Ezzrq1kLiT+3hFeJQfYHQQoeIP3JprrfBP0xeUGiE4S3D+p1CUr8vGGjcrUYKIw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6210 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: INBOX X-GMAIL-THRID: 1772486348730838283 X-GMAIL-MSGID: 1772486348730838283 platform_get_irq() directly prints error information. Signed-off-by: Yangtao Li Reviewed-by: Claudiu Beznea --- drivers/usb/host/ohci-at91.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index f957d008f360..439d8a16d7c5 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c @@ -190,10 +190,8 @@ static int usb_hcd_at91_probe(const struct hc_driver *driver, int irq; irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_dbg(dev, "hcd probe: missing irq resource\n"); + if (irq < 0) return irq; - } hcd = usb_create_hcd(driver, dev, "at91"); if (!hcd) From patchwork Wed Jul 26 11:37:51 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: 126300 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp361280vqo; Wed, 26 Jul 2023 05:20:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlFGNcH4WhR6SOanr93lNAs3TJ85dQvxhsH7izZ+AG4xcFEeiwNO7wstBAVybvJfmA2xXNtv X-Received: by 2002:aa7:cd65:0:b0:51d:9ddf:f0f6 with SMTP id ca5-20020aa7cd65000000b0051d9ddff0f6mr1403801edb.36.1690374054113; Wed, 26 Jul 2023 05:20:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690374054; cv=pass; d=google.com; s=arc-20160816; b=Y2dzo+IELb53uqM1GlyyXDjXteRQgvZMGQbdxokaKVPtqNdSqySP1ZPp6JQsWLsFwq QFSevFQ/j4zt67t2fboJFREiXIt5PhfTj8JyBP01bYw8q+9+XXG74n1pP1ByG/w3TGnP xZo5/UpF1KzN350f9iCXmvvFjrw89vBi3fAb4gqF7W2c1anL/lkaCoL36Vf0UfEofMOi zWZc4PMQfdqtSfYtdv4h5Gb74yk+8aymdbNxToLEAeaujPModcF/iGixGCkl6NUwzzvg RbCf567L6Oo+7FHDfv3CuS2Ae6kxfTeOLgvmUeY1AytV3q2fx/wCxJmLHjnLypiB8MRH 3vnw== 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=2ijtDtmCquRetTRk6TmjDJqMefBniOVpLTkJ1i61IfM=; fh=T2qEYDRaIGKHrkC1jjRprpL8D4BZP9LxWWvoEsFZb/M=; b=HXLdumhd+sbUpgim5lVgyf0tdHM7HIaTG3I3pMm4y2Ah8wOI8uvhwefWUfJt289UW+ TOuPOExJB+Rzq5fPsldY1Zocckl4LYKCZEMOTuP9NaLjKiqewEdK6To+O8TYPkc1d5vx T8kd381YdsCMg99YfyDEz34L6zPYN9RIL+hFihuwGfAK2eRPtdYEFDFmRIKsz8xNUote 4JXdVthEPPHmdfJ3Q24Co5KWlJIrc6BuROWppBkM/jdXmIJEKPK3pQuoGMdJf/qjxUrt Jf1+f+2I4xCfyh7GsQDVDIp8kOfm4WL+BBJF1IVM+7l3C+Me3FbyzsiZ3CWM1cy91UUn TL5g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=T1qmDHlD; 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 l6-20020aa7c306000000b0052257ffa20fsi1482061edq.454.2023.07.26.05.20.28; Wed, 26 Jul 2023 05:20:54 -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=T1qmDHlD; 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 S234172AbjGZLi7 (ORCPT + 99 others); Wed, 26 Jul 2023 07:38:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234122AbjGZLir (ORCPT ); Wed, 26 Jul 2023 07:38:47 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2126.outbound.protection.outlook.com [40.107.215.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E258326BB; Wed, 26 Jul 2023 04:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mFz2HOb0ztKVuSF3kwbcDq8GQHA8wDsCz6OFOWi5qR0vF/7f6At64Khi8D+l+xlfV0wpRW8nJLkA81EeBYh/ee/S6D3x34UYDJ49n1UJGjSPoaXjDjdb3S1rh3Gq9f1hA374h/1ov6OPtPbE4DwIqw4befQNfV5bI9OHZmX6+GENDfI/VS+mEpGW4qHZeQm4RH15kYIIQfYUkcsXPghNxX0I/E5ffd7vPyVolzPx2vpvIy7mGjOaG51f+guqPzGwZ8TQ73+GmQ4YRm9XvpBwvQdKbtfrg/lpGpa4y7YhNWIVLGtwNMVt21tMTGGAwEpthMnQ6p7B72jOcFjPHBY34g== 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=2ijtDtmCquRetTRk6TmjDJqMefBniOVpLTkJ1i61IfM=; b=V6PXerj7xZr6t4+/UcwCDmt7twcDLj+4eNQBRvXPtNayqX05/5xG1bkBQ7eplCTRTgeJzoCITeyAfRKUzlOqZj4kKcb4vZGQjWKAl8jyXcZ75t1s9CcRu1WSyFJ0Hmb0SEeLZ3fNlPaJPPWpWELckNSDePoI6vmX/m81SQr5/wLTYUzKDpVSRmwVsUOVvC6tIRy4XaOpojttfil6SJPJIYLJuOPHfpMfur/914/6fyhEOGphIGi10CNN1T/+xgUAs2YO1pmJKbSFujZacHCKU2Jd/ss2SoDcKR4MmPl1v10oL+sGTZyjjjn0POTEIUwY28FnOjRcOWWcGhW3LZMeiQ== 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=2ijtDtmCquRetTRk6TmjDJqMefBniOVpLTkJ1i61IfM=; b=T1qmDHlDvJqqq3pa3Mmf6sDi0qjS+pu/NuzInKpoCu3APLH1N65V5vZb7meV1ZJQ6xhCMcC50GCN86A1XdudQkDXJHjDYCLepveEmryHTuC5In90+zuPw/AYKETXCAiBVJwWTIOje7POIuYoFg5Yjx6/4X7f4zdaLfyChzgRj/evRO2tm8l11O6Dii78WdiGyG5ran1xa/wrU1JLpZ1WJHdRCp66ZoYTYkiLcxZptWNn6sokCEOu92oaWuge+HnKCK9NrUA9JXz0n+VSmWJLgLQsNvPz86gHKCH1NQbTo5/fLJIAnxEKGJ1gGDDGNoRC8o4NJ7jQOlvYEEijI4k6aQ== 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 KL1PR06MB6210.apcprd06.prod.outlook.com (2603:1096:820:d9::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:38:33 +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:38:33 +0000 From: Yangtao Li To: Greg Kroah-Hartman , Michal Simek Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/30] usb: gadget: udc: udc-xilinx: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:37:51 +0800 Message-Id: <20230726113816.888-5-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_|KL1PR06MB6210:EE_ X-MS-Office365-Filtering-Correlation-Id: 1319c9ee-f913-4276-7e44-08db8dccd7ae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7JOhwo01ysTWEt310w8zL0HGFkHe+H7Cl1LQ80JWrdMiHjHZdpwlvD9SUun1FpsmTyVcKILFw85/o7U+wRtvmkmwbXg17OmE8ee8XQND15zNLE6SJgIR/G83HkkaC2+fd5JIypkE5/oG3V1d8AlQt5fFNJ9pytziHbrdRDs2lgzYkF49hRdcA7UWMA7apj2N2tCMSP5gfq9247BINzxr1ysMN+VOIo9tON4jpdpmMj/nRK+CM7z9FjH1GtPHoEzsOX6PN2qfzPuc6bMsbyLUlFtpSpqSB+8IwUpcdNzBQyd44vb160oUQt2erez1D9sY06ecBQR8OjtmTyBk0qp7lzaLOW5lK/VWysNlZ4cOXA2Cz/+8NLSKtAc6rRc1OjXxtqvWjUaBL00gbor5jogZ6MJHPxwfDFJqM65cE4SJEWuROYHbofk36uGpHuA/a/IEJHJFPTirH5CtY/x+B1eEcccLOXl0o51PqOnwqSzVmkYsTeDlbl9USIQHki1YJ7v9w/VJpxP3bYUcdgXiPQcmiimK/ug7XJH+HY72RBPS2G5jyzOIe7mAJgIRiyvNgh6Ia3I9fjzgUyiG3FYYgFSE38NKEDv6a5CuhzwvNMUqggK1YD6Ke/Wuo0Z0E1MnUlcr 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)(396003)(346002)(366004)(376002)(136003)(39860400002)(451199021)(6506007)(8676002)(5660300002)(8936002)(41300700001)(316002)(4744005)(478600001)(52116002)(110136005)(2906002)(6666004)(6486002)(186003)(1076003)(6512007)(26005)(2616005)(66556008)(4326008)(66476007)(66946007)(38100700002)(83380400001)(38350700002)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kVDpf7tkOkqTk2Xbz3N1RVHdQrb9xeo3dPEqWxcWKLIJ6wG40MQcHztWutqdl2TU9jC7UjZVYeG6CavER1qjpYO352SwzDazrfnozpT92p8qxlHDZXKVmJLmpBMDMGOv0uzy+4EggEgZZvv49tmkjjV9D9NS3uCg+jsKfQJym/bbQZ6SgCJAHRKL5KqfvdHoYOWbnFFPAlNClTxPw+KBor3+6T4x+mOnTlCBcvDk493rm64b61UJbzXfvn4aJZuxv56C2avb0nTmg2nj7ldgACxTWdQZ7Cn1cp5vAsNX27bIUDQmDO2QVlRktVRHJtpu8fxdZ9WRduSoI8Ncyx1Cmgn++aMhK8/3L6EijB0xZqhY1R4i6tQS0cFxWAdh3jQhWR7tmTDg1eNXWzRrEDiKMo07zNozMiHnNgF12fDs++Vbw+ph8JqOh5lkjplUuFcZhXvaBrr+DJPYrJ3q8CVkRh+KGRFgWjAms1SfoaA3lH3680FdBkatLogt0wWnqtOi6R2tiKyM617zb12SccvgVj81TXhOdHLcre+c/x5C7bL77OqN3agYsJZpI5Y05z1auq4zKdPs/MRtZj4me46lYnAKKZ/r3ZeVka/PksOK4kJwsKUkGNqpZmYJDwgjWw5sqFv4IE9NUZcf1c9Df3K4NfPKM1xS+pIPqJYu7G0D7qtzD/EBVK1/yUPQQ/U3dnWoJ+zqGdfaJMRwLC8EkjNG9nWvpKDxegeexoIQrGzAklBnjZl1ZdwU4sEhw3/73v6gQr6uBT4bJ1okqOUlQqTqxVngJ8qiA9Tky+2O8iR0kOiEWv79rG7pEfpxT2YKjCMINSDmGriGVVmWHu1v9S9BwWkwyuZhTrXo9kw7otGdb8Pu2UGm9xHnfE2VptFMtQUS7a08fgCfPKOX7eajOPDGFPhgpZgOSFWy6D3rT6lI3k+UmfI4/lLOJHWVTFsQDHiVLKs8jP+CUyck/ZdMkq/SMbhCUrA/nvemieZXaThI+RDoyCkP79H//JHCN1nhsZCPYMHDLVCJB/p0TNgHwRWZahzzNj7dYCvtC0cm69oO8WZqiI6DYeFwPTvnHIA4KO1Y1o79BqNPuxGy1mKCVoilkzoafFrbfnOmDvLm59ObRuiIZklsx/ORw4JaPbIMA0Nj2+Q4hFR6XVv00OcHlX0y0X6lY3ZlMUXpg2cM3MEbF9a/QN0td5q4oHHjoZdcXFB/wO8IM260/4Q3Zfz/M/tqEwy9jzVENZjLuAuFbmwL2yF5zRKv+Zx8fafjQgwXA1xP8Rv6U4lhf+xq5lmeC8jChWeVwRQ+WAm1GIW+TmSoy7HuY+RqQ0I+yFHYlROya+AA3dC4B7PtK8TjClEKjJ4J6qRHYIoCNpe4YGr6PuPqwiUnMJnT9Ln0I6qw/H6D3xMkREpHvM4/IjP366ubGHutWv5n6K4wwLEwAhqe704sDaxFmXY6BJ3AtrcinVf1y6DfNxpOfPlufb2ahxJzhrmu60kPGvmZYyd6CwwWhoCiDSKg4efaGpWq+w1AUycxvOE6S3VRl4sSYZ0OW0asKT+rvG0m6bCvHO/dh108pZOhjMXGNQ1colwPljF1MItL1x22 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1319c9ee-f913-4276-7e44-08db8dccd7ae 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:38:33.6342 (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: bxn+dIkkr6RBAXxWoGrJcaCdHo4+SYSJLITl919mn/YwfsY2kGZM5DWPrahZ9knvTKbe+hB6eyMg2cInDEQJcg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6210 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: INBOX X-GMAIL-THRID: 1772485663943495834 X-GMAIL-MSGID: 1772485663943495834 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/gadget/udc/udc-xilinx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/udc-xilinx.c b/drivers/usb/gadget/udc/udc-xilinx.c index a4a7b90a97e7..8c249e31dfca 100644 --- a/drivers/usb/gadget/udc/udc-xilinx.c +++ b/drivers/usb/gadget/udc/udc-xilinx.c @@ -2080,8 +2080,7 @@ static int xudc_probe(struct platform_device *pdev) udc->req->usb_req.buf = buff; /* Map the registers */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - udc->addr = devm_ioremap_resource(&pdev->dev, res); + udc->addr = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(udc->addr)) return PTR_ERR(udc->addr); From patchwork Wed Jul 26 11:37:52 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: 126305 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp363007vqo; Wed, 26 Jul 2023 05:24:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlGt5lXGbjy0G16Ehi5qI+OFT4ZpX7w8ncn8vooAH4nwANwnnacvsUkL8T6YWiTlr0AGtLhf X-Received: by 2002:a17:906:d14d:b0:993:e752:1a71 with SMTP id br13-20020a170906d14d00b00993e7521a71mr1488268ejb.9.1690374249728; Wed, 26 Jul 2023 05:24:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690374249; cv=pass; d=google.com; s=arc-20160816; b=bofXHBoIFM2JkgVMvhtMz9a9mT4k+qtJCT7sKmhqozmNiUcWK/sRhzMjLICf/Vmgb7 NBka7nTiJJAqQmvzqy8zCy4w1qYpcxwinUF3Liov7wdgbI3CaddZJX+kxWIFohP99+oQ GUtFYaLmnC86Vl9mCYxRJoycle/Csyd3Sqnz2xhLqH1m7wgg7xsIq8jxiFDrEme2BJVL aCntiATWJsShlVLROYRjksL/Wx0BQmvywLmx4cfo/dvTmVrFiNvM3aqp47eFf7o1I9nd 40o9Y2hN6ujSHQ2ktvGLH/9uUb65wtcN35MZsycU2cPUEXGYNxpoCPG6e2YjfmQJ+t/c QdZw== 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=QWGbg+68sOkomjajgVLEDktAz8LH+dcpflNDWU93c2Y=; fh=aLAFy+/iG/Q2ZjgjPrDJGR9pkdkyCINXYYNT4kJ56IQ=; b=SfWvxucxSD4KMQJYolkK2q83gAIhwMXu89HWpesMj/XAoMjXccykJ1rLFrd+jFljJd SYYGwUCTHgEHSpo+dheZtt0iSrSfNnirIGXcSHBAs0/ha+shGf1QrfPvTJwKoR6lGKqj WWn/FG7kqNbU+zq37acWTq5K8GtHmnJSgIRa1SUKYJnTWEH0XbcnuX51y5rSrHxEJoTw vIlPagmqvcbAh/NbbYofHcBOexG7B5pv2qQ9ExN0saBSpeRvv06w+KT9XemXIWYp1IxZ 8po6zrL2icRUm0IIa1wpDNZf5xTNrYTObGWLefSwCVo8lDJmHb+Mj4hAMhilDweg5cF0 XXBw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=fH5TEtWs; 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 gr2-20020a170906e2c200b009655fcff588si9696414ejb.835.2023.07.26.05.23.45; Wed, 26 Jul 2023 05:24:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=fH5TEtWs; 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 S234183AbjGZLjD (ORCPT + 99 others); Wed, 26 Jul 2023 07:39:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234125AbjGZLis (ORCPT ); Wed, 26 Jul 2023 07:38:48 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2126.outbound.protection.outlook.com [40.107.215.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D7F52698; Wed, 26 Jul 2023 04:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iaGMFiKD81G4dUHVALxda9JhjRmX/GBk57vEExK5xtwEdXyKval2w7/w6YZqVJV3aQptuIkrRYYHVqVw6yzYvDMkLx9+3FzL0fhCAQt7OslVG1q8Bt9PWUS2ERfl/Hbb8IUMt3vLCJl9IXWNgyP8C3TRGMe8Ky3u7TDyqth2o1yssTBrrgBxOMKwI6oIlg5faquLYAdLh8n7X6cxqTeOt+fvRBjz/I3B6OK1nUJkUo6tPy1tAKQrzAJLAwKJLyW0AWsQxnPDhaqiGXWSNZ7NXpf4dxktlfATBDjUhV6DNs3uGwmOtl/qrtaYURI8bn/BzbiIMoqeHJ7MMwQYF7V+Tg== 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=QWGbg+68sOkomjajgVLEDktAz8LH+dcpflNDWU93c2Y=; b=i4PEKrODqrBwhUi1D8SSl0M2RvglGEzfhSioxTd2DYj99sS3sfa4Ngz69d6A/a13AafQtWoeNNFX8zbPbjxfc9BEcHzqerVQVNdEYaxiVJA0QPfCymLOJATUbEaoH7FrW9xn+drvioHD1RDGHoMk1Ax8eSwzSl7lyQWHdFMjs/omK/QDyJ86xv1+0NeIyVMzlrhnlj1cEpi9lsW2fmvG9UC1bJjMXQJI/Q7ojQSKGziioCqdSc7eUIkE4/FJyEuWe2jSOMIm6GKHIqBoEsVnELi6i3Yu5rjBFt0AZDIaj0hUpmO5m22spc2rqCyThDJGW424Q/JdUYcLMl9l793IEg== 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=QWGbg+68sOkomjajgVLEDktAz8LH+dcpflNDWU93c2Y=; b=fH5TEtWsHEFa2KD6nkM9M7VkMoPFRZINupmhJAvmPL5jNjTCAUCIoarB0957Pui8O3RB5XFsWB8jGDhu+xWN6W4AVv2g7LYMorpaXJmOg5o3iqXpxW7UQSvojYfL636SB4oc+8hzQwQEuH6dYcrj9cMTUknTLu0sygZKYwR4mRfK710dsSJ6PCAC/cCmJNqIii1mMHUv2qHarsIlzC8p+tHBj7i/YFCwvNHRfN+g46M9xjri354iPlpB1+5jwvtq2aUsK0Da0/Whhzh2BW9bcRM/ZVnFZU+a/fsqlQrS0cdzQAsKb2xUOEabPQpSxrNXjCc4gjUTunlZDCumDiInlg== 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 KL1PR06MB6210.apcprd06.prod.outlook.com (2603:1096:820:d9::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:38:35 +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:38:35 +0000 From: Yangtao Li To: Greg Kroah-Hartman , Joel Stanley , Andrew Jeffery Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/30] usb: gadget: aspeed: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:37:52 +0800 Message-Id: <20230726113816.888-6-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_|KL1PR06MB6210:EE_ X-MS-Office365-Filtering-Correlation-Id: 3a450bfc-7ba7-4e3c-dadc-08db8dccd8bb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: srYEMBzwQSD63l/Um8pEYDU9t7fYjESCN8ZCHoknSI5pq+Qo04n9NJBW7R0bAYoVyGMdlSSOR0A2q9SoNcvK764j38yOCvmGnZjtP65W68ZLaPq1WDQSJFKCjwUfLwOvcG7RKl6oTzJV8qLEZpyliFnfivvpuZ1d98+itn/yl2eXzTTBtMOSZSi89RrTa9rV5Xi+0a7c+rj8/ADuc3JCgtBUUjm3VilzYRDm2n1kjui0Hbf31BfXGF4Nz58BaA+pCsCpC97gdfM7pG4U/WpLL4MBHBCu8cmtUBZTA7MqjcGMOHPiBUZDu37+SprCXHUuWSWoH4r0ju2GsY65qdB3kyy6Y0m5Ye0RFMtKcYIKjYq+0yYrN/ku31r2TUB3ijaGQTBvh5oDA1XOwa8U1XthoBt1foWbPDPbSmtKmVX0pQ4rWFbFQpmYf1gVfTVF1tQ2HyBc4EIXJXaaaPlJ34fKnNzDp2CDzNjN6OaOCmdQ9p4ub/03xq55AE1Pff1zDh5iCjPGFiISCBMwCM+xGkQy4FtUcMIlCcIYEragw+8I2xazhubduDMHzFmgpe2g9W8fdRfV3HZWgro29yAY5L3dn4T5S/TJ6ObKnnotQh+j/uAnmcNBMicI3tSLlUG989XL 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)(396003)(346002)(366004)(376002)(136003)(39860400002)(451199021)(6506007)(8676002)(5660300002)(8936002)(41300700001)(316002)(478600001)(52116002)(110136005)(2906002)(6666004)(6486002)(186003)(1076003)(6512007)(26005)(2616005)(66556008)(4326008)(66476007)(66946007)(38100700002)(83380400001)(38350700002)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Hf9NmXenDNsYTz17remZZpO+UogXKEO8+qTymVgj1BcMMG/QeJTmR8ZmEBFBQN0ZJgCrZ3FW66mXsXl1MAOpIhvqLAE4Sn+VA07nmiBuSfZWpNi83nDSuk400dpO7ucIInX0DKRD8vLL5gsSz8jL/R87UHMTL4HpAf2lnHuw/eQ0Sm75pEGbkxXcpt2mzWrC/c37l5EMyP25csQB86RkKzjgL9CkT8y/OJnm2bWo0oa7MHM/IbUOcre/ulHlTdkvN0cpwuGKQ2M/lZwZEqA6iEf4WZB1DNcNjar51ypZXEx+sJuQE5GNYbTCj+iAoJEv3ZkAWT39bt8LuSK3ZAmbBfhsIjX/j+ixXRPOppnHBd8mnQuaQtdwR16h3j4xoUEzrzO1aK4pUyZK8DdnZtac1JJ4O+PqiYgZp70ySorHl1dhmSwl0kLaEx35Um5cgnZzKPFnDFkOXEKwrTE7xmJczbe33xUpjYNrnqeBy5m7QQw6JJeTk4bQEgGL/NN7/c+HOtUzKRYQOK/yvPuAFOFUVlJYb06gehlKpe7ZtdWaVO2o4z4wFZSrjUc6aA1TYCJJnvUFnD7bE8jutzVaupBKdxim07Y3n9u4TpsY82xd6Jjx8oZ3ePO0S1th7q2QZqLNfoymcya1jyblnkHPuc5b5gj2a91jvl8qgPbf+YIupCFbHyeh1sDzzpGMFFFndbzYyxX2aP5Agkn7OnwHU/7WgdwEqKswrMST0b8L4x2eDwC39n/8tp0Sz8ul686DwLyayWy7iJEKHlcWQNizMxCZdRdXCDirrBzhZpKinqmhkB1tcI8fwWTQf0fgrSh0Hg4X8OGYIEwJRrJ6iskJ99Qd7uA5UFXb1QeHzkZZnsx6LqUnnCDbBaStm1ZLPxAREY2X2l1fFgQTa4TWCbqr8jBJydviEHz4nDAKmATVDZvsWvYdnBgF2aDUhCr1N9svB6BD0iKrhQDmr9wmLYLWI8KxrkV226eV1APuwBlTAp6i+IoeEp+lqb5dXAlT48Xl3GGtxeDBP+HZYngURHMMHwlWgfr8H0044gfDhJPj4fmy+hVMBrbfikLcX5nrv2vGaw0EW5SuLiH8RwsXDZ0y244BHuqaMk6rLvsZdpz2yRJEOfW3GYju19H6NaXNN9ezHuYuaib4vBEF1Eh1TIn/QVQFvKgUBCdDFxFKoKcqPI8x8MWAVouv87Ae626zYxO7MbtVE1MaLhkwh4zxcU1upaJTF6KnRvA8vAPdLVtcD4rixj8LSzqdJVa0OE79RuutWcxhuM+A255248nwXwKbX9+rAv3HMSfFdQhoQYVxS1KF87x3F8I5PJUROujMjF3yO1iMLKbLZwuhxIXH1oEtP+Ktc9pHxgjDk6jDfXTlwTCGWrot7T9gKGr5fYGx/r+C3nAHWfp65+gDJrAO6QFvtoqhpNOa2+2PpgyeCu3Ds0cH4e8mEFyyp9rpw1wCbvz8HStvJ/3YTWeVqNwYlssxf6aTv+8XD8q2E3lkNBJEgtnOnGF71SuGYgDOBsvDU7duF3ChHZjWvGsHyKqSw3v3zaQh/aN3SOCqfGhQRwpjy3QECejh72KGMglo62Kws2H65rro X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a450bfc-7ba7-4e3c-dadc-08db8dccd8bb 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:38:35.4500 (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: kTPFbEEC3dv+Ha6S3duzggEembJKGnxP3FO3df9JROgBZ78Ig7vKrkNnCs6aukXwCQgqb2ysUIDJJ6+Grk5rNQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6210 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: INBOX X-GMAIL-THRID: 1772485869544015021 X-GMAIL-MSGID: 1772485869544015021 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/gadget/udc/aspeed-vhub/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/aspeed-vhub/core.c b/drivers/usb/gadget/udc/aspeed-vhub/core.c index 16f2db8c4a2b..f60a019bb173 100644 --- a/drivers/usb/gadget/udc/aspeed-vhub/core.c +++ b/drivers/usb/gadget/udc/aspeed-vhub/core.c @@ -328,8 +328,7 @@ static int ast_vhub_probe(struct platform_device *pdev) vhub->port_irq_mask = GENMASK(VHUB_IRQ_DEV1_BIT + vhub->max_ports - 1, VHUB_IRQ_DEV1_BIT); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - vhub->regs = devm_ioremap_resource(&pdev->dev, res); + vhub->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(vhub->regs)) { dev_err(&pdev->dev, "Failed to map resources\n"); return PTR_ERR(vhub->regs); From patchwork Wed Jul 26 11:37:53 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: 126333 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp378516vqo; Wed, 26 Jul 2023 05:51:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlGTocjxku9g1YKm/2DrtHAt5wOV9Secsn69BSZ+pVGiTtxQXJmWq46taicW1o/CSgUDxm5o X-Received: by 2002:a17:907:770d:b0:99b:499d:4635 with SMTP id kw13-20020a170907770d00b0099b499d4635mr1569357ejc.75.1690375894123; Wed, 26 Jul 2023 05:51:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690375894; cv=pass; d=google.com; s=arc-20160816; b=XE9F25CnMdpv2GLyNx9szEBWyZWnSDjF2lI8sc20rGUE504I2+cahmdAHWQtgnWvqa gOIOCZUrnIgf9K0w0yC4ad+8R2YpO6xmlE3XvBA9iIXflkQWQ37WXu5Yd5sLxGaQjNYx fZo5L7U+KC8YVdfYzH+ezsPJKynRqRm+fgCJmFml/zCE+6dYkaEAeGuaJRZmLUBLVHf9 qyuM6rwC595gdTW9UyIt3d8oEiJddujrmSXk4B5izzC/7opddlK8HewsDtXrolz/QSaO cNmbLUGjdenY04lrwFQM0eP2esB/xQycyTZx+7PYWgBP3jZNHvIwSRvPZPewSF+Hb6nE pdwQ== 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=+pZFvAKjk57UWtiQII4yoYGYu4LJFOIBN62vt1d121E=; fh=G0vXrG17h2/vlfZCASfGqxOXgmNNHShLvauJVeXF/Ew=; b=b/IHAALaPVjh/nFio8clUfu62PICTzTJCQICPSsfupctLwOLmwTsnC3Jjssu7oNBif K+E5ew6/RBZbjQ6CF1mh8JIx+lFjV3ajIBm06629pSDf5PG/3rQOHG85JceHwM4rNxKy 24aZBx8WgRrVa43o5KiYbDVieGRiHKf1cvMnI0t+wSQwvDP3FMWYN2iaV2DaLEmLyzW+ SloWjtBhDs4hgg2FCO4gIv45t1Urfx9UpEgGjzmr7a5iJ1bJv/H/hZnt7KCeVbBGcAsI Ax7EBy4ou9D5wzF0HRAHaDWxBH2jCZzFK4U4SDdlC+qrmd3bkC0Z96c4hzAo+wJgI6ff oIdg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=pAejyB5L; 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 pg14-20020a170907204e00b00997c7157a03si9358108ejb.642.2023.07.26.05.51.10; Wed, 26 Jul 2023 05:51:34 -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=pAejyB5L; 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 S234157AbjGZLjN (ORCPT + 99 others); Wed, 26 Jul 2023 07:39:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234109AbjGZLiz (ORCPT ); Wed, 26 Jul 2023 07:38:55 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2126.outbound.protection.outlook.com [40.107.215.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED6DD2D49; Wed, 26 Jul 2023 04:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CeZQuQfQJIVv2qwSI2afxFvnBEzpygFT+lxCYQICDxSkc0TTQRjz2iI2kYqYYXoYVF3bTdVDOZmRQqwuicwtOFzSy7uc+CzFP1A9Nknh0Ch45QdfHXqoimEyBZp2S6Ud4UjNMwCOjRlx/QgbveHIixU2jybJw3l7wjR2c6A5MnhoHddFExg6LUPNXls+u3D8jQtYwvxILNrPhbOFss0AXQJ4W+OiyAtMfmErfVfgPmURnDJXporo7tiIS3fxqlHIVbsczj29OlAfvro3cazrH+NyV3UYPNVDCUeWJ2MSo1DplBy9DZudgt3gO+Y2JPNLrstcE5V7YEFPZB6KT38O/Q== 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=+pZFvAKjk57UWtiQII4yoYGYu4LJFOIBN62vt1d121E=; b=Vx4PGPnjxSzNLFO2bv+JEqJL+EhHVHq8zy+6DzcOx9z+6VAchfVyma3OXvYE2rmqsO4UfV0C1NJ44AHS0+IcARTobNlpzPs69vGT+rpEpjn6fyoiDXphDNjPjeNyqJ/7XRvTKCVaWJl1U2eNNxaCwN7d/f0P9oGzcWHngaAq/h2v+SM0eXCq1T2Yc767poqCsWRsGVdsp5mrFgKbG84IeuVANL9gUxVEl1/5jfJCkqpksk0CeuLW/SmPnSOT5Q8bPHyeehn3bcRSKqFSZDYJmggin3T+b6sf5XjLMIUWHQonOihXJ6xzqzcjh/+SQdqn2eQhjpSIaV8eqO7u5NVAnw== 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=+pZFvAKjk57UWtiQII4yoYGYu4LJFOIBN62vt1d121E=; b=pAejyB5LoG/bSuAhCsBUoQBhEPBZ7dalGJEG4CoLhnnBuDSE2IumoO9IA467lGWvBB1oFQLO7HuAQdz/CP5+3J5h2JGrNWAIx3ta9eNgNRUBg7SiXS0B93KsXEznYL4U5AH4k+mEqDP2TNurBZiXwPZkvDHvbBTpYrBbTlRhASE5/OqG8JcYIjo9W59u5L4LwF9vDbb/tlo8/EVx/JZuJSHwlSXtU9hQHwSyyNiAxC9lLeN04TN7V/+FdYo9LLSUmtynCUfyeWen/wahKhFFLlsbSbm20hn4HCrk1lUqtkpQtyAo9W9pcVHMfop6UV2WFy35qz2RrAm5G1X0AbW37A== 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 KL1PR06MB6210.apcprd06.prod.outlook.com (2603:1096:820:d9::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:38:36 +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:38:36 +0000 From: Yangtao Li To: Greg Kroah-Hartman Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/30] usb: gadget/snps_udc_plat: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:37:53 +0800 Message-Id: <20230726113816.888-7-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_|KL1PR06MB6210:EE_ X-MS-Office365-Filtering-Correlation-Id: 9e273e8f-18a7-4218-7a97-08db8dccd986 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: m9KkLTG6iw+RMmq+n6a/HHF1aZaufEBgGcwpjEnk/y/WeUv98CgcLSrWuJQDODu3k8MscUv74M06Bfrec1XQVyLiZKR55hDEuHebNQ51BMijCTLOxMN6eDjUs6Oq7tJ3/vYwPqeqWgDrj76KQMs8Q39+z5q9h6qWSrgE75JbkGZIXucWHCYDDxJbDSClN1+U6joc6Ll3L0O+iFsjU44425pP9lGP8JOx6sdx1dTQ8xatYEgEBEkYTRacgqCKqCMYxTZsx5/y+1KUK/9GGMGf4cPdsBWzbrwlTw2Gn1CxddrDfzp5NFThm69JCbf01i190BAPi24J8GttsxG+09669/6uI6ZWWJD9Pkfr6IdTTXBHiWGprnadNvbeUv/k7LB98Nozj4C0IxF80UNeekVGER/Tb0w5m/QPIHLSKn1wADWtJnj5obFs8gkiRxGdVO2E9XjDqET2qNwTErjpuvjiCoRLNS80CWEqOwd5hr/BNzdOyb1g9HOi2CTfsIu1VLl/Pd36fALqORTfklc8ydjOd3PZcQcQwyt0yS56gkrdwGa9XWdXJHgn7bTiWuxykAymgxuXtWgbrp13Nf8ftiUO2Zv7MEYwkum1t9YJhDjTl/x7GoKtMa7aoXCVFirR6Rpd 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)(396003)(346002)(366004)(376002)(136003)(39860400002)(451199021)(6506007)(8676002)(5660300002)(8936002)(41300700001)(316002)(4744005)(478600001)(52116002)(2906002)(6666004)(6486002)(186003)(1076003)(6512007)(26005)(2616005)(66556008)(6916009)(4326008)(66476007)(66946007)(38100700002)(83380400001)(38350700002)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DU2E8J0BiyZaTobmEEyUi3plq7XE6yZj0bKtApIPm54byeNv5QQxsdXHvwS9gQXAVLUVzqCnvbhchMWW9sjUhOt0mm4hv4oPqpq+GCuIDTcRtScdVFu+Jn92SbWsBwXG+vP/5qItHfkCQS7/hesR5xKFBi4eUzLFgKf/PXN9l/KuE3K207nnk5Pt01RWiNshbpGT78oX6sl4gN087cApVRWgWjZEHn+2rUI0uhQfxi5CYDXao5mMF8QL5JjMIvPbNCtngj4G7bCuo26CzlJHjoIf+tMUP3ykptQDIXgVEmAYc2N9ycIAmSfEFuqnP+BgqeJlbRrpUTq+PmnjcfcY/eCuiMgm4TC09N/4uc4cLyUOSKO7GBRFTFkmHa/PHgMoaRr7zN9dk00P6Hlv5QuSymk9J2D8DiZ50KNbYJRxIbBRgLgrhzBFVMWCUyWukJOSsb8AQIjoVaO+8NurL53t8lgYIIwrL5obFFBk8OmJ1K19t35Hh/U86q3Ht7d9/FRKcdPihTB2hVthaRnbPjLiNjuNw4rwdImgh4DXH7ZE6ov5xxv3uxNQ3I8XyUNwdQyc0zNf/R1dNgDnkJxm9svZLcK3WmiW6glt2wQDhFQNqFhD1Og5e3+KHw7cnqF5kjgP44P50zL6FIHe0MzuEmPTvoT1tYcbfto2N/G+45LOFIM6g1tjm+AT3kuOSbRT28NPlsYvNugFiTterLO35mFbQhEiuc+MwlygSEPcGbzCZcVH2GIb5MGJ6oC1wj+hyhziQldFpsiVckspzixiDmptvwd42IJ0/uuA+jQ5IuLZo0pgdbalosRxDMQRJBQCFfguFLiHsgA2V8E91lLZFaat3QIG+SMB7T3PutWhaFCj9P3OIzlP2Yjv3C6rd8YCYFA10eF80eyL4uuudUp7X24I6xEB5nyTRKd7MrWb0cQQoFw44QTy2788BvzMLVWF8BQYBRZG3V9FID8DulNcXE3oX2/RGugI9ZCUx9hGoH64fcUWSnCamsTLNnAEUCVuJhW5FC9sO36XmM+7PAPqT5zlo+Szij01tkq2Xmp62bB64CkYGLDvJOFbo0GnLmHC1NJXYtJcLk0MVEXt+7Kkm+Bx7u55u/ZPW9CruaYvz32Cn0sTP+afnebA2djIb9BMzsr/m2J3YYo6eW8+PmHNBDFlZ/WUoHl/vkhquZH1Mq+hBT87POZhCPN6phfyV+BqTLjmW2jlfBNC0ZQEwr1lw9aVKOSvcj30f63ln/JiFtEQQBFfDDRhTo6xX+dG11TIVFE69IWkX5dtyVSDidNOXO8vVb0Vy5LZwKo+7OUr2DsZcMjiEDC/GI5f9j9OScLr0n4TT2KAVtGbnUA1yVnOx1v+xlrr1VIR0+ScA6pWxX7FqKv2jPla4SWYbPFpoaLvbHNFOmyp/fiVGGkSQLIKs23YufFuF22q5w9hL+vJA14myAonuAfrJN9Rb8/8CBXsKKbXCnR8Dt5BQ5x1QnwaUWNHMK1e8Ar9wpzYAkUOzYOeuWBcfOptPnVudW3rdlHRP+jeoylXIFXW9ueKhdsgdr62nn7X+GDBSFkJnJiLHuVHsyz3jI7eUEzaW3qAJPEExMHR X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9e273e8f-18a7-4218-7a97-08db8dccd986 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:38:36.7390 (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: SE1+o/PiJn07JGl8T5gx3KEO+3nwao7kZNXp2vgm+VmuhkfWsTizzZoE+lhze6GMoFdrjA9AtkA0cRBDUWnzdA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6210 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: INBOX X-GMAIL-THRID: 1772487593934096170 X-GMAIL-MSGID: 1772487593934096170 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/gadget/udc/snps_udc_plat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/snps_udc_plat.c b/drivers/usb/gadget/udc/snps_udc_plat.c index 0ed685db149d..35c7a149b977 100644 --- a/drivers/usb/gadget/udc/snps_udc_plat.c +++ b/drivers/usb/gadget/udc/snps_udc_plat.c @@ -112,8 +112,7 @@ static int udc_plat_probe(struct platform_device *pdev) spin_lock_init(&udc->lock); udc->dev = dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - udc->virt_addr = devm_ioremap_resource(dev, res); + udc->virt_addr = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(udc->virt_addr)) return PTR_ERR(udc->virt_addr); From patchwork Wed Jul 26 11:37:54 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: 126294 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp359666vqo; Wed, 26 Jul 2023 05:18:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlEt7J0hUFCfBpZcgqzgpkRTIBBkXl6mm6wB9yH/60lC6o+C8pysvami29r7tC7GQ1aXrvmb X-Received: by 2002:a17:907:1dc9:b0:992:4250:5462 with SMTP id og9-20020a1709071dc900b0099242505462mr1847321ejc.50.1690373884544; Wed, 26 Jul 2023 05:18:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690373884; cv=pass; d=google.com; s=arc-20160816; b=CQF+Cz3gguxSRZiBPjM8e+/pGkN4VD4khvPNbXRKhRm213cGgrxVx5UwEBjF6xOtgw S9sElzWVrG8ZsC6L3K6SJivJlvQX6lwBpmeYbNOqcm+8yCJINQ0r0oTHIkIu2HpdKbq1 cMKuQ0olyO+eaMcNL8gxOQhzbaTWD6rr/mEAj2f3J70zmmqWk18+zYFoLckNTYiZAN9x P9ET/LNux8fJrSkLZS22wY1o7w+yzGnZad3gPNZvtS9h7JFKyDYxArIFLqtYfwZrOxwc lSJLQaZqgG9ItOshbEDxA66x0I34o9Icysfy55kweO46ARLVstWQB5deo+aFu55Oxi0j W/RQ== 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=k3EHBd0GLFuqDjEpIfgLCex8PV5q87ULfrJ74sCwY+k=; fh=fsJByqltL7R8f+iDFnZ0NRMpTpnObN9bQGcslv6WDTE=; b=vtN/yGzvz4ja7M+/DjEMT9417Xec8N2T2OM2Iob2rIHZ1tcKDXciVLWqHiwCwlbwKK ZqikjN4FI15l8yRDzjj+/hX1/6d8r1E8mV6kTIM1g7kJOqeLD8C8LK1tx+BuIRUueSm4 83/5KjsmiZHiosjLhbAiFwYiyov6R73ARC2CIr96NAYK6TaEwbQ9TZxxaUFvYNDRrK82 QXhR5wEU3WV1mIff0cXybh0euIp/oc3MM1UdvkVCrItdCfd+5KuFZ5Nm5OTeI0M0EBEe X4BTLYW+MIz8JP0YJ5vffvBJCMBkti7H/7GewhKbeU2WhI776FQvll6ITwcWAM6uoGvc E/0w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="VGYhj+/N"; 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 sd7-20020a170906ce2700b00992c184c39csi8595125ejb.185.2023.07.26.05.17.39; Wed, 26 Jul 2023 05:18:04 -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="VGYhj+/N"; 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 S234163AbjGZLjP (ORCPT + 99 others); Wed, 26 Jul 2023 07:39:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234160AbjGZLi4 (ORCPT ); Wed, 26 Jul 2023 07:38:56 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2126.outbound.protection.outlook.com [40.107.215.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 137432D59; Wed, 26 Jul 2023 04:38:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m9kPtpvv5Wz9q/4gzg2rcq15Q8peJB4xFcfjIBn8Uobhxb5ED7HHoHdTGHs9iO5WXO9mvIuIrzq3beDHzIo/WqiqqZ/AJprV+JPnsgwbPMT9Edi8o0041r3mLZi0Rv1Gcue0hM4ELPwNlWKUZ0mlf6VQTZbKpTPSzSRfY4dbpHgDAsipNKFyo5pmnLXKSmmn+8r9nnEzsno+30Hu01Jt7P2nF6BRl2ZlnTAWG3ZlMbQJMsdpqTps4ncords3O7kf/jCeVUtx64HoWWS8DtGiMUooBkVprskSwFtjqZmjsi5JsJSRBc+cGiH8HkhpYH/r7cofbFRQSuBObVtRgKMa+Q== 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=k3EHBd0GLFuqDjEpIfgLCex8PV5q87ULfrJ74sCwY+k=; b=BzhNQ0uiBq8dhDvtHokXsCeiuhSOsdZpLVZm74a1Z+3DROSylkidoSFDj8fb2t9eEy/oyjzaXU/P6FooNRz4fukCCdY4FbupdbiNYDFR2zaTZx/Nj8z9m3/tjnjZkL0OPfKNC7tFW8uP8LLq/7B0lc5nrjBhoxrGQdFbjktRGmZFIq1hK9vjfGPA4LjqRir8iZixF536ZGe2lMSy0DxGc5WcWzCJTPBpn0ZSv5MQt5UO1APnTQAK1kTXGlZ5i7Ea4uzeqHmGXU+jBAnDLslDc7ao/8KIZNsKsTOPl/kKnJMI8AWnbdt+dkjOp2eNs+DP28CUa2E4jlLy/Tp3WxbNBw== 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=k3EHBd0GLFuqDjEpIfgLCex8PV5q87ULfrJ74sCwY+k=; b=VGYhj+/Nyf/M9ah7WfkhReIQIJ406pTiFAMWm3vP7xYW1LG/X4VCWyh+aNrJITRIRK+mmB81F9iAAStFskqWKoq4mRGvCMV9l9wGEzLwfbIKA3AnNpv/Rqll8hp9xZRfDhoaCsTRK9vxMUnkBrTeqPmVKwEtNCu3MR/PKKwg9sBiiqm9IMrIr/9HH/OC6TZlFaQwPLUSZTJRKgZp2991AbsBdC1B9zmDrJNQwlgsYh66t4t3JJlN1IItw7x/jjHAkeniRH+NUgGLNVR3UsFfoc3eClOnwE9DYvHvkr+9CzUxbHjlDr/5dFUH4oJTx5N4DP3RhV57Fiqnwq+nByvg7g== 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 KL1PR06MB6210.apcprd06.prod.outlook.com (2603:1096:820:d9::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:38:38 +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:38:38 +0000 From: Yangtao Li To: Cristian Birsan , Greg Kroah-Hartman , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/30] usb: gadget/atmel_usba_udc: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:37:54 +0800 Message-Id: <20230726113816.888-8-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_|KL1PR06MB6210:EE_ X-MS-Office365-Filtering-Correlation-Id: 522c617e-e95a-4347-c42f-08db8dccda9f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jhHh08bJpLmjZ/fzOLIqrRfHAt5qAvlYhEN2W+T9Q1+TfP1eGW3EJwzCz3q4GYSImYmK5mwWucWUDvUOD5st18PPaeRhHC/O61hIIPQaWRpMQRQbEKabOauQwlrKbNQryVRZ4qvkstSnC8ye+EfvzPknK+PCEWHKgE5ImaazrfCB2wCrxv8+R0QeqL7KUstMzXBOtK4FqstB4cWcR/WShXp0fgdGmXfUv5vUxCBmoYWozKNgIiWMSoPqVy8KrXbOVL2S6Sa6DQlwvw5uOQs2wQonAsteoI8dUZirZI5o7mi2ou89CbMrnv7Y/yAEHLCdjz8pb3ML05N26r/ygeiKTEk5AojAV0YUiBJoC1OA4N1tWj+t/+gy7kOYgeWMHbG7tSlhlKWQG3BLEmXH+bTVd4CdVTN2kdQrm3Hjd9oIMtpFFKE1sESRMrfUKNLbOgnIFvFUgN5xD1u3pNVsG2rVzKECYjzn1PtTfutJDuI1ekz/KcjnhQWsl86qAXEve3sUKKWF2QqkCLFIE9AG2ZhWYLRcTORhFBYAzfeq04UN34uWphdQrEiv9F/3+QmFQ3GQc5L5Aorc5wxAlzx5vGP5PN+Lxd7VXtNjJ1rqkBYq6Dn887Kk0x+gCZnbVxz8b5D6 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)(396003)(346002)(366004)(376002)(136003)(39860400002)(451199021)(6506007)(8676002)(5660300002)(8936002)(41300700001)(316002)(478600001)(52116002)(110136005)(2906002)(6666004)(6486002)(186003)(1076003)(6512007)(26005)(2616005)(66556008)(4326008)(66476007)(66946007)(38100700002)(83380400001)(38350700002)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QQcIc800Di514yuNL7cZ8LmtdaTmxQ/yiRBumB7D1SZrOm97xVqKDdbtWNNZUgBDHFkbBjluHrcgPyiAyOzVF5rpnvil5+ksDbuUd1c+seZLZzu/5HtfFTjXJAbZw6dlzTwDs+pS3fuklvvCp2v/8bCJ8lrzzsxDgy5EqtFckBdD0MlOL/NI8in8NoLjLVzZhVBTNi2qdirDhKM49cbVcJdkgpyz2NVwriGPxO26tz0N+1b4fMsfARSW4J4NGvIX7pftUzYM8oO6pDVbPi+kkscB9CSwb/NDeq34X5Gdr73kAmq34dLtSfoYfcQqsK3uj/RXMr2N3jUk2GFWuSf4sJSYRStYbCB4qOhRW3rem6xt8V6WaQFNN8e1WcMz/bvUp96Ed1azXdt39vPmp3yfgIZZl3GNoDrY/Gh7IHOald6Eucr3PyL+pFl5LgrimR4VNJA11ztySrsqey0jEjUTlRg3txLkxpNDySZ9tXnFPZUlZGsIxy18Djp4y8Jgj3DPqsEDSdQbIp4TkkG0wzY3KcmMTS2S23RVWmy3IXMz889bkTJaF7nvTL4lbMsUGQ8Gyze6mUDhFAjtCEOk40V/fSDISoDh40Ai3gaQchX90v6DWn6c1RJbJNKsOlJl18R9mTCr4psG9fHf0bYT6ss7/UzNrV+8PoRnQueGPACoUmQHnZ9eRRkT0Jql4gpz3z6Wxcha2Y0gcoyVgue/Gza0OcCCWOE4wYHqb4A83ctt117ugHTmEXEePmaj6qP78f344eqqJzwEzJWg6IaENzXBc03vYnWEzW7o6hMRKRHNx6sNtLgtmDDXzpXE1XnGuwXJ9hobzou66/sr/T+gtZKTFoC4/ytjT+HWnP6NrXR9APy0UijLP3yYcXTz4jMTwFaPaLtS8BstBdJ9HdkBWOhx9LVnGO3k+vv7/ch9Tss7llF0si7CFhYtnA+UwRW1Zyn3OWknwaYB62Yd2ANa6ugDwcKBnbH/1m+lg7LbmkhIBEZML7fgy8FuEUNJbG8v5tPhwMC06MEEg3fVmaHcvnak484yBGTbK4CaueuE+ufoZDyv/ThrKEHNjelh/qPC9roFsQjm6vjsxDFtRjvIbtB84rxcbUSSN2dhBhpCSFedYRIhcEYbQavAbKEmBADV4nqOCfxRwIMYEALkZwTtzo+h3Q5A+A8O7FoOfcEeBPyK5nXMsZZA14jQxpQFOlUgFGx520QAAL+7TeZIWJ7Lg32KZkIP59G3nXJvoGovaiDBdwoHwFwQfDRsfjANbmVIsInYJxsb7/PgZVoqP/ZyZuKVHxLXjpjG06TB10JJSdR1WDAhMv+qhdOMYm8N3gOBdhtZz+VZbvelmxAFHvzR1FTtHsyVrTdQ82K+THUCLmyVwBlNFzrG69WBQsICth89TiQeXk7XSqyT8tt2oymtW2b+HH2EODALzYHvM5p1agNxyIAxnxEop8Wb9zfB9Q6I+fC5BTD08gS/IG7m/wJ8ot2u4uN8N7YaigmwyLz+UBOx6fMTbSLXtEAe4V/2POzFMRyOEf2+fAy+uaIO2If1Fvu5L26nvrrN5yHMgL03bksNxWqaAMzxqy0Uq0u/dnfdXFpN X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 522c617e-e95a-4347-c42f-08db8dccda9f 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:38:38.5053 (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: FCv/0DSvtTZKzcZx01YYKB/7ITMitUVnnTKD3ufUYGibdy9CSZpgnWjngySUfq+xF8lGmLrVv0DVEHhzxuBnMQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6210 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: INBOX X-GMAIL-THRID: 1772485486490605626 X-GMAIL-MSGID: 1772485486490605626 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: Claudiu Beznea Acked-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index 6c0ed3fa5eb1..02b1bef5e22e 100644 --- a/drivers/usb/gadget/udc/atmel_usba_udc.c +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c @@ -2285,15 +2285,13 @@ static int usba_udc_probe(struct platform_device *pdev) udc->gadget = usba_gadget_template; INIT_LIST_HEAD(&udc->gadget.ep_list); - res = platform_get_resource(pdev, IORESOURCE_MEM, CTRL_IOMEM_ID); - udc->regs = devm_ioremap_resource(&pdev->dev, res); + udc->regs = devm_platform_get_and_ioremap_resource(pdev, CTRL_IOMEM_ID, &res); if (IS_ERR(udc->regs)) return PTR_ERR(udc->regs); dev_info(&pdev->dev, "MMIO registers at %pR mapped at %p\n", res, udc->regs); - res = platform_get_resource(pdev, IORESOURCE_MEM, FIFO_IOMEM_ID); - udc->fifo = devm_ioremap_resource(&pdev->dev, res); + udc->fifo = devm_platform_get_and_ioremap_resource(pdev, FIFO_IOMEM_ID, &res); if (IS_ERR(udc->fifo)) return PTR_ERR(udc->fifo); dev_info(&pdev->dev, "FIFO at %pR mapped at %p\n", res, udc->fifo); From patchwork Wed Jul 26 11:37:55 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: 126276 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp340067vqo; Wed, 26 Jul 2023 04:42:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlFqYKvaW8Ws5A4WGI7J7XJF6znK1Nr9RKSxQude5bIKaYFP9gLQb57vpOlsH7f19Epq8+Bd X-Received: by 2002:aa7:c50c:0:b0:51d:7fa6:62ca with SMTP id o12-20020aa7c50c000000b0051d7fa662camr1486924edq.14.1690371774201; Wed, 26 Jul 2023 04:42:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690371774; cv=pass; d=google.com; s=arc-20160816; b=04kYMqDsusCYXiiwlD/OwGgmUPvJvdTZmEVAJvuYwHMN8zkQfA1HyzHmxGxd1qGaVX hxIwqjm4CotdipuTwkUZZmnVQuDxrxXR/l8eF+K4wg3UKmR9SdvnNWhZPSBvyjmf8Fyp DcR/JgRHlhTUGJ0WDvqclZuadKhZNZ7NJoDE03Qg/4xvTt91aH7N8Fr5FtkDqZfYFpJi jLz/ww7N2uDSkqu7G/b9QWz3cGGeX8w5lfXdLtseV0ZdMxCMNJNl1F0de8znWO1jzQ3R b+Ty6PfHx0q1Ajy12xwIVWSxNxmozD5ARPUYNcXTqiFqrvWRclm8i/G0jLUB1GMVSU6c bhSQ== 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=XrdEbn+GJN1lr+qf46f60e6mU9uZS3/v+ivs5C8jFnk=; fh=UoQJShiVdOJxG3HaMurBK+cEpdyFWfIgvJbMUgBbuIw=; b=G6SOcXBBjDIudFoePOqhHc6HgIZs/k8nHQYBqvYSWhNuh1gNBCbZHPR8FZVVYqKJS3 wMDDimqIN8NazX8NnSGwps9UcN7tVIVtmrb2356EqhuM1v/bWylGPulUYXSlVHZoMOt0 xIi1PezuId00jn0ImZzv58La3fVqdnm9hSeFI4Oj0Mp8mC+dxsOrGwHdfQZvEzrFbg3c JRxGSgNNYybasvQmLLiPS/qhYGC5vL6pYYRmXvlp2/ejkpQLgW0Qz7EFmimExrcWxSgl OgTJtMvucSkNM4fWp9qkXkvFQTKayDIC6IlkgnVcBx2CVrNAKGLlM95SF2DrjW9dEJv7 Phfg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Z5F1eLUe; 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 y4-20020a056402134400b005223ab5506fsi3418235edw.546.2023.07.26.04.42.28; Wed, 26 Jul 2023 04:42:54 -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=Z5F1eLUe; 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 S234201AbjGZLjg (ORCPT + 99 others); Wed, 26 Jul 2023 07:39:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234203AbjGZLjL (ORCPT ); Wed, 26 Jul 2023 07:39:11 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2126.outbound.protection.outlook.com [40.107.215.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE4A0AA; Wed, 26 Jul 2023 04:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BR+Ghz765HFIeAGSQvfm73c1NLaJUE3P/aqhDpy4T4eVCq2C9nqRpOmhCLJfrEVDYuU3eLvXLDHyQeQpeukVGJLaa/bR1YRZxZFgqEs3Jjj0nEwshm9hHjkpw3/egkUQaWSDLUsT3EZrXR6e5yVlttOTTp3eqYRx1k1V0Lew4FQlIMNElmy/8bSxkWJmv1OIZi3pos4TB5eb02V3BIQStmpPO05QDubG6mIBUNqnNleBEtYV2eEDsYC4n51sgrDrg16rOe1nko3ZNL3R4OCviaG+f9WMTjz5zNRnGNt0ZcsWPHYH+/KdpnjCgcGQEbrhhYoL52/1+5Dcp4cfptx2Cg== 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=XrdEbn+GJN1lr+qf46f60e6mU9uZS3/v+ivs5C8jFnk=; b=A3aKFY6vrwMzLMKh2Xq7glV5NleCgevqQt3JAXLZuKi2rwZDHLsIMelnhlB7CuFVEMurpdp51yEh/zhBUZZTJ4EkpzKHDk8rZxmlYGQVzpz4CIoB4/MP50O5i1vKYnbLRFlnbYNHCBETw9fQuYADVdu9dVYcs3cavguq8UagnIwjLh4HIz6u7IC4yhrvo1eFy4bUu3JxIXZWg8hZqMnPy9ydNyX8tRpmH5D7SKeFZ1Z0sTkiABEO38iCf9x4gb3mTViooApodWTtrvPBIg45npkcxm92ssa+fcrrJ6XdilirgeW8uVjRdmkU9N8Ehx/FcLJpbnaCgPnJ97mjiJAFvQ== 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=XrdEbn+GJN1lr+qf46f60e6mU9uZS3/v+ivs5C8jFnk=; b=Z5F1eLUeLi5DBmjw8AF0OZ6AtxnxSNH7pxK/7fZIeTxptklP/VDSruCRscrf/rHGTupIDa8s1O9BQ4n3QZtxzyE3ZEmlvLpfBbJs/UcgQpTnLQkSDCJ5GD85m921cE0QV7qlRacTib2xzFeXNgFh3OQB31wV+88A/ub68d9J3hSnpe3ddehhwqyxylshvNyrt+e64RaSEolyYtan/dOVDPaH/bWMiaFwruXk4cp9X4wA2DejlNNRw8M9yMgahmikTlFntzuwK3tity+EU9p29eDB5OR3EdDVSWVn7njcJ1/hhXV/pKjoxv8gRTyiBephEQ4BHUqZyr3uFLWUTyhQfg== 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 KL1PR06MB6210.apcprd06.prod.outlook.com (2603:1096:820:d9::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:38:41 +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:38:40 +0000 From: Yangtao Li To: Neal Liu , Greg Kroah-Hartman , Joel Stanley , Andrew Jeffery Cc: Yangtao Li , linux-aspeed@lists.ozlabs.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/30] usb: gadget: aspeed_udc: Convert to devm_platform_ioremap_resource() Date: Wed, 26 Jul 2023 19:37:55 +0800 Message-Id: <20230726113816.888-9-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_|KL1PR06MB6210:EE_ X-MS-Office365-Filtering-Correlation-Id: a3e9ce5f-a596-4fac-bd7d-08db8dccdbaa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gC1dN9gna+uZH0IuzmIBOrGeVteiVfI5IXVpTk2D+wxyyeI9oZ37sOpmP6aACWRPWG62TBcL1Pf0cXyY61TmDPwN/It2EkqWNsa0GKiTS6jyXQS/0uRhwyvElB6wFirfAfr0KJ73aPOD/ecdednLw0EFf2lhHIcO7clQAr0qh6O5zxzuiaZ3gc+H3s1QHhY4Lw+190ZVJr5SqTm1+mdXUV9I2Y8nWTAmcvMbWSxfhdyTvPTte1kin7Qp8XsMJJNlwVeJ3QSVwI6haCxKiDefhYu7DAj5Lu/OUogQT4dBzKVohKvDo3z259k9KyX/dHKeK9nmEca7S2B5oSgVjyZzywJoEDMa2Om+mnw9UxgNzAAx1m8gLfeaYANf8ARPBAhT3NfJtBCJfRcDPsqzoDmRSt8kvpfRWYVLVhAUKR1W0WzKPpDmBRYag4O9aojFS6dJpqI4FtGUx9stJRj2L0+GzCL+iBlX+oj6PIq7QO/6dYF2iBqNkxXOwfKj0QOa8NuU52WUcislKmpkD7HQZiEzbEil3kkzCm2oPQ9JJ5Z+572S/hvie+saMbbFnrstIrbt4Mm4Pfe4qqUPX8NZ/tF36LX8sOzyNnYUbfz2EiG+No+N6JLVjGV4Gn5pm+y2eF59 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)(396003)(346002)(366004)(376002)(136003)(39860400002)(451199021)(6506007)(8676002)(5660300002)(8936002)(41300700001)(316002)(478600001)(52116002)(110136005)(2906002)(6666004)(6486002)(186003)(1076003)(6512007)(26005)(2616005)(66556008)(4326008)(66476007)(66946007)(38100700002)(83380400001)(38350700002)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MR93Dq2T9k07D/QKm0Xbilo5y+d9tZanNh9TGp8fTn+lbwH08vfuZla2Oy1Aixr5EUOO9EabDR7gdJlCmEZ3h+IZGDtXsTC+ao105ZM9iUMbKCnPWi/Ii9wnbVUJf8TYi130HtRNa1D0i8U24EibBOlS9f7E5zAubHzy9NuvIlN5wbpD1tCXBF66UeSA5xTQ283Lqj/QMyN6I1Le5VUYfQc2Doof/oCsR4jiJSgEwW24cMj2Jc5wJo4BBn+rBG8cu8e19sA3hrVMVlferozRxEFwEutMwB2fT73pu9CAJK7gS/LVsximVL6+LHpU+enBtZjDaX+M17N9jnbAtEfM0uYDf8UMxSc/fwuahyfzbunv3HnP5bqrAm+6QEv76AZk7/VBvdsvCpKOK9g1hCtLNOEQQyggNGsz7jLMNxkDqT/nMZYe+wjPPjq+LrWjfESV/qSJgBdQX5PohgrH6x7n52KAfbsDdUDiQv7OCdFS5X2Zd/VqncQnTl2Yo51Kp/mtXgS64tnqLT4IEC14Gsvgj6xbMj9NuN67ZUsUmFuEXUlovSAu4xR9A6Y4kvq8fYegTpLePTrNe7bOu+Qe41vpvSrIgIYW4NfQoW8hMjvQzik4h6k6NV8uDuGLTe4tNf7hd0lu53Q9PfzhUiV1oFPvcgjj6z6Y71LSqn22ZD5QY5BacQL520rrLv4dbIHm3v0r3JrXcJzIKZUG+fIYU749xwpmkA5q+vgRziPi86nPNMLqkedn5Y+byrOTppTDV/5lcRm5zi/FP1aw831xTAS+xtygp0x9hUVUppkMP4Fe5FbhU9YqJArXxRwMEVL/LQJkCvEwSw1t34wy54UDPTDQNruZd17CJQ5PMqPUMWY7jAL3NvUmCEuotxtWgJlGZa2VYwvHMRCVhscId+B1+DoiTOzRcE8S+HiqtDs1sTCyZWzVJ6+pmWWCknUyb6H6hGKjnqBOe6I/aqbNsB4684e3XqMFyodUfxyBv4pMPSLUWvp3vooR94C8L3NEHv/GYYOqZaN07l6qzU5ro7Oo2mFbKoFltRwwPCtbxxhNVPTfbqJ34emqGjKj36oB5qNmP+ejn45zL+IQYRB3ObmJb9YL57SOzQPA+XdhgbHytOi/JdDIJBrL+IZ3GGN+LSzJ+Wjwj7Q97hSwoufqFrKNd4t38ed95t74FulNLfbC2/1o0bNaS8RPfhh34cwd4U4H+chtzgj4WzVrza4uIb6xeZ5Ha6AJ0sLz7VM0j+B3WBfnf8xOhwXp8CCT/PsinRr+QK0SYxDOU4r9nJTUWqjaTVrcsiS2xb+JA1dZZpc38oFrjdiIrPeF0vLGM9LvYoDeAjXmzgXNU5HGwaYX8giK9d4O2BQS0MGHmi4dVxGNMSYDkDHFofC0KcfRGqRbVD2bioyVhXUXbfrBF8aX6pO475m6PvBfnV2/xvHTusHDLTNjisjZAf/yOybcRZO09wUiD1siT4n/+DCISfz0h64hg4C4U39xhAJyo0NhWlsss/YldSaUwX3Zcm2LV/JtwBdIOE/89A5EWxY4kTzvJ0i6VuBLjJis2cE9vtwnx/se6ZPZrzM6coswpFcZHayZRfonPRu9 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3e9ce5f-a596-4fac-bd7d-08db8dccdbaa 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:38:40.3392 (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: Br1Tq0KWyqNcqnjDin8yKZmodh5nFLDzdk/PBupNJBkyn400meHjWbQLX+fexCrAGYZ6lop28G8DSjaj+8a3+w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6210 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: INBOX X-GMAIL-THRID: 1772483273551965394 X-GMAIL-MSGID: 1772483273551965394 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/usb/gadget/udc/aspeed_udc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/aspeed_udc.c b/drivers/usb/gadget/udc/aspeed_udc.c index 01968e2167f9..2ef89a442f50 100644 --- a/drivers/usb/gadget/udc/aspeed_udc.c +++ b/drivers/usb/gadget/udc/aspeed_udc.c @@ -1468,7 +1468,6 @@ static int ast_udc_probe(struct platform_device *pdev) enum usb_device_speed max_speed; struct device *dev = &pdev->dev; struct ast_udc_dev *udc; - struct resource *res; int rc; udc = devm_kzalloc(&pdev->dev, sizeof(struct ast_udc_dev), GFP_KERNEL); @@ -1484,8 +1483,7 @@ static int ast_udc_probe(struct platform_device *pdev) udc->gadget.name = "aspeed-udc"; udc->gadget.dev.init_name = "gadget"; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - udc->reg = devm_ioremap_resource(&pdev->dev, res); + udc->reg = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(udc->reg)) { dev_err(&pdev->dev, "Failed to map resources\n"); return PTR_ERR(udc->reg); From patchwork Wed Jul 26 11:37:56 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: 126277 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp340131vqo; Wed, 26 Jul 2023 04:43:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlGgCmbDNtRxH/R75GahweETodO0mXR1K1nJ1KDISfAjB9HSK+HiAny4n5YUQbXCOAZysgZB X-Received: by 2002:a17:906:5384:b0:997:e7ce:1e88 with SMTP id g4-20020a170906538400b00997e7ce1e88mr1373349ejo.52.1690371781206; Wed, 26 Jul 2023 04:43:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690371781; cv=pass; d=google.com; s=arc-20160816; b=HvrIIECQ9Wli52/Pv978z/1JTvbi0VvNUFYyCE6zAuQJ9lBcIsz1yt5ef49+cJ0597 W1SHCATR1X9FQTBFG7u/346fdPRnzm6HIqDB3QlCQwczPuVZ189E4LsmH1p01XqXKreS t1Dm7KE30q8E/nb7bY/v/gVDa25gadHvRmxJ+TKJq6sbTzv+jdCSQmpzJLbhdw6LnaRk ij3ehBHPZrgnfESIwOV59VSJ1WxYE4rZN9mlLZqO6fyLbjUNAsZrgpkQF8XTKTDBzpu7 YUbklNXYOo8mGYqWZnA7XQlEy1ZAQZwxGOUoj2bonRE4N8y52kwh8uxxD7szWF0OZIiY xH7A== 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=IQJQpFOuA8L+KdEv9kCIqmTSLdk0FN+XfwNwUClUetk=; fh=qHJfTKf3XO1oeYRTg2AbSbUC86sN/+2WM1r3uQfXrOA=; b=rrropYQenteP02TTcYoNSTY6wXXFhE5lGXB+34g90+/jKC9YQPrTqwVGbGxAm5Cpjs +pf7jzvlQDe4XzN2TFMyyZZusVA6yq7EIn1JfZ2ucNcRIbAuV8jerAyT7Er5XJZsTbDG jSaPEIZ/hmKlbi+7uJqWYkL1T4c7y26wDNGTkVybpxuK9pLaTstIkGog7exic+Pg2hra tW0oWgxmRRso5rMCkXLWu37wBmKZkdUl6zCPE7B3KiLwQElva7h71N3+wW+Qy+SxVuah sh3Z5j4UaNfUbOr5HGKBkoOwiRULvuUqnAa8hz/YtnhoV/+oGg9ib9IgKnHMdG47X9Et LEtQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=lNTao1VJ; 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 c19-20020a170906925300b009930c925bd9si9333693ejx.945.2023.07.26.04.42.36; Wed, 26 Jul 2023 04:43:01 -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=lNTao1VJ; 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 S234243AbjGZLjm (ORCPT + 99 others); Wed, 26 Jul 2023 07:39:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234173AbjGZLjR (ORCPT ); Wed, 26 Jul 2023 07:39:17 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2126.outbound.protection.outlook.com [40.107.215.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 612C5269E; Wed, 26 Jul 2023 04:38:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WKqlzdM8fkS59O/3jVq67MeX3KCYvcyOt1V19Fkezs7kNzEfOjhnDjPz0GzJoh7NUfa73HnDID4QF2iPzHhiCS0QtjleCs+TEjNJPw47tobMIc/yQ8UNI7DREAHBGYUTbrGm/KzmkmERJR4JwUF++bDVDb7z77yASLBx2YrpS/0CKbNZ+qWK8ccbAxXMVPL/2Heg00S+6E91oG/oSFWqHvErYnQ4x2dkd8tvwW0eTTgf0KzjrIbkuQzVjnWM9jbl8SQMt0SVUpO4Hz2tJGChcXkA5wIA30RKpcUsIZsuCAh/caV2P2Zo2UbEym45X27AzkPDZIzi/Pt1F5jdOz5BiQ== 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=IQJQpFOuA8L+KdEv9kCIqmTSLdk0FN+XfwNwUClUetk=; b=EX88LUhrprewW7PvprsvkEZkG4t3+l/Q7RYrnZ26X1vOH6+pALDgadMmyfentQP9v99TFJyI/tgyAvCplR4QwJVb+SxxKHKYGSbPim2RskZXPlKYj4v63PAP+02JJEpLWtTHmtp/hVl+gYPfoelKmLthjIm7oHlorEMt6lWr4BE4rnsgCV0CiqW+0XXuWnjyqtwvXxDpam+FLNbocu3VK7J90PH48BKfCo0tfu3yBLii4fIhypG76THVi0FZCvwWcu/hkn0aBY+CevC/qukDEQK9g6AQOfGDRiBCsPsejmuyvy0G2Rp8WNFOLLz+IzbD+km5kiS9nMoqilvGvEAabQ== 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=IQJQpFOuA8L+KdEv9kCIqmTSLdk0FN+XfwNwUClUetk=; b=lNTao1VJSHP/mEkJI7HyVAIWanqoereLaWA3IgYMGd7PyFwBvkoGLwUy+hQh5m6VURp0gfN+RtXDd6eVsVZrV8bPS5NN9cjoqsMLA21rgR5HB48kJ1snbapo8ivbc/ulXELyPaMDeqhLm46IMTitGcA7Xk5ol7bJPQpEM1mI0sGvxRga9nN727tbiHZ3b/2RPSL23f7Z7+3nEnbEgSgaPAeXWOR/GCdUtUh5rmWJuVlqvGXKFDuNAQOn+9tnOlSjaKkjNFDkvlNUJpDOb+4Gy3l2E6d8OfM/p3or5mwvLyliS7+xotIBvRJcterFASGU0ormgQPEImcIyfzvbq/6hw== 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 KL1PR06MB6210.apcprd06.prod.outlook.com (2603:1096:820:d9::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:38:42 +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:38:42 +0000 From: Yangtao Li To: Alan Stern , Greg Kroah-Hartman , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/30] usb: ehci-atmel: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:37:56 +0800 Message-Id: <20230726113816.888-10-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_|KL1PR06MB6210:EE_ X-MS-Office365-Filtering-Correlation-Id: b89ba0a2-1f90-4bac-64d1-08db8dccdcc6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IkLK3oeANAcXx4K/OhGTM51AgTfRGiivWRKjMFaBFwf/ff9g1/J3Up54TZaQyHPLKJ4T5R8DgK/oM5VNo3ypRAuWo27ZFQZv0WV1XwILtDy5UV+NVAU0JBRJSpU9NGkgP1oM8nDAVHqsiWLVkJlM2BbX5EBYX2qDstmt6+Sj0jw1wz/m7GovUdFoGzfIUYknOYIOaM4SysSJ5YPc3QIwLN9zeY5a5QCG3cwYdkifPpGeYUt6Q9mVJ6ovhO9BtCwT2aVYOu6wxzloEK76TerBJzitBtrCfQKa9tkSJ4dqig/4eUDIYaQrLru6s1JB/BQpOd+ELmXhBPRhbSEjHiuotJZgn/gYs4AQ3SdvYtXuWAMf8yK5sQ1vtd7wG4P/YaWBnCjBqKogp4/CP4XHMCYPDAf8VRMhP16avmy2jYw3JbxyK4pO70zkW91UBEZTyRRflNLAip2kH3G+cXkneV1jM3Q70Pf9ePtkvaTT3GHGQorgcXdOo3kMeGnCPjLM9R8r6Ft+PnB4PI5FqBC7Brrh9LD/D5mOxR9FiaGXOerOkJGmYorHhXDzTjQ+9ziYtrImUYS5h1+bCt4yG+m9XMTPfdQBageS9I/c7bFTLqW+NrLu0arkd5tMKuQIrx65yR+2 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)(396003)(346002)(366004)(376002)(136003)(39860400002)(451199021)(6506007)(8676002)(5660300002)(8936002)(41300700001)(316002)(4744005)(478600001)(52116002)(110136005)(2906002)(6666004)(6486002)(186003)(1076003)(6512007)(26005)(2616005)(66556008)(4326008)(66476007)(66946007)(38100700002)(83380400001)(38350700002)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: M0nLW6u2gzWFjyla5kxW+8w7xOufoFaRho0h2raA7ToecnzWFAOVWgg+PGO3WAxyxIZUJphCme+7Ig3isGA2yt9SkOUJAlYxTeYq6lbMH5oUrUEmNYV23uLKCbJClN8CTcSsKk+vrq9lS/+fosCbiFap9xTjh/O21X/9Am06uRofDSqA8jYdcU4ePMfyK6umf4tZmBw3NbWf7VQ6d3WOjx9rh57eo5ai5hDu/rGZYwVVOdoGKSULkWNET6moRPXDnGBPKvXcA5iJ72wNXWjAY2y7JJRnw1mrYdjcpkq4Lvf8k5Yxo0xO5WNMfrgWZe4HRVA1RtErnDCJqbyFH+E0Ue5WO/hiPQfMWyK8fLzzesyfgNRIfc21HlyeQGWA89Ji9Y+R7lnkyUHgYOKvG6elVtdOTldhMliMkU3mmdHPsRgi3HaMNh5qJqPsvxBIIzw1MBUGeAuxTrnCryNQGjKKdU82tkRzczQg+DEZfygi457D0Q2DZJyvNZSKO9fZjTucY7kkQJJb6HldF9vOCBB6nG79KTIoVFdEYc2e3pqVjpu2bAngo9g4oIDjcULmqz2SdhOqvJN3q1Kcj1XrIikQ8zsWThwvalm+vV4XDEHXCTVOuf5Y1snNjpZqvoHAJCqqyVXL9BWAYDwHdCU+b5vm0RKyV/X704Q8aNWxx4MikK6CvAJoXDtfrq4dHp+2M8X7g0Hyb4FD9xVqOYlnlv2MwHQjGMT/4VL2471+US3NJ9hbXl9msJST4naJSxhx7UCA45Fe/gdrgIV48vSGJS1P64IDjGDly4dpV1GTK8o3KMNNy85VHLogd9NxBausIUlHwwjzRgu03rtd8bYpoHvDEh8PoCdITPt+cFYjyRoWhLlEprgP6f9xIFeA/5LmobsvIEE2gpPsomhONb6m0q0LeSpO8L4e9l2rPjF4B0sEw3pxb2B/QX9sg1ALaLNHDmVwnzTE7QBdbjvnCk9HHne7C3YCLSzgXY47Zs56CyRxD2RPSyw/nulBhl3Qh4w1Xu47RTWgSvxnfRyxPdJevfdD8Ryjl/A3gz2W79Ewbiksd+Jqlkf+hbXVdPmTzZKvHi3aqcVGP6yFzBcdIztmQezLUoQXubmCKj+gaLjdafCOdR5vNyUaDsr4WeCzAYnZ2T8tAEm3hFNgAeJ0W/VXADxc/zSpFw3Gv6IbpxVKzJKsa/PKLlCVH25L7YPg2GD32A22KCilabvXq2SPy3G/0HdNI1bRfw+NJjsPc/sTkc2H7c1Y6PoNkZ+AMh5hRLLt/6fmR3yTJcayFhsc6P/aTGXqz2AorTXha266Hew44J5Jj0C3qcZBO9voAIywqCKokDl9SL1VAO+57lvAHOGVdr+dGRiNPy7hSdZLnUj4wszJVlibF2Xhw/bO7VWBDKnhYjauVu0sQM6aoNpeJGt8c/rkpOaz6I5Xze4UPNPvlOZHvDEz8+OjPvT6iCvL84HBaWc0OcWSqFNT1JQCMpEfsmJO0TQPkAnKxuwolYMir3xqU/Nux2Y7wpcyBL2Ulgj37XSrQ7lhuD6V86oITZWfw2B55+LK8rmrd0hRQ9iUW91qgZGGIyfF3XqhJIejzmKx55Rp X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b89ba0a2-1f90-4bac-64d1-08db8dccdcc6 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:38:42.1989 (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: WTjwGfIeulckL8BPDZQ5miClPYvacAYAFcUtDh33BpXEioipTOulRfYo4u9pGj90wNE2DVNc++LZwrc49D98gQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB6210 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: INBOX X-GMAIL-THRID: 1772483281255993849 X-GMAIL-MSGID: 1772483281255993849 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: Claudiu Beznea --- drivers/usb/host/ehci-atmel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c index 61808c51e702..e14b66d848ee 100644 --- a/drivers/usb/host/ehci-atmel.c +++ b/drivers/usb/host/ehci-atmel.c @@ -122,8 +122,7 @@ static int ehci_atmel_drv_probe(struct platform_device *pdev) } atmel_ehci = hcd_to_atmel_ehci_priv(hcd); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(&pdev->dev, res); + hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(hcd->regs)) { retval = PTR_ERR(hcd->regs); goto fail_request_resource; From patchwork Wed Jul 26 11:37:57 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: 126374 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp412171vqo; Wed, 26 Jul 2023 06:43:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlHRj9hsf6Izbc+3CpA/fT9Fg4K1KEReXL6aDy5cOJcabEuiziVvKyygcVSS+XTtReqmgC+H X-Received: by 2002:a17:907:58d:b0:973:d06d:545f with SMTP id vw13-20020a170907058d00b00973d06d545fmr1531186ejb.24.1690379013959; Wed, 26 Jul 2023 06:43:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690379013; cv=pass; d=google.com; s=arc-20160816; b=nVmIn/wItqFIZmd+1HAocgBOJqtOEkL6d+r0smIwOPQbeC+Q7MDIsTbpyA656HfTSB Fy0RYXB8RMGCz9T2OwSe4ECrHdrN4l4PTXN0B/KPn2XAQCfCB/Buh9b357Fdl0uuQwan HT5NZCE/exqLB7Yc6fAdemHDORjKfnwLeK/nd2qhSoRv0Mr5d3pHCfdkbFtGR33YAqxC 4HAcYWe6Q5boTROmSDjhfGUQNs8hr7kQ6sKfT32GuHd0mamBXIyzY1NLzOZv+5emtbPp qvpR0ujAt1hoZLtZo/kSVwyhAz7wONU+4vmwegdGBKFG2E0kYYylJS/zLJFtb+1GLyYc VLYw== 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=E5CJKXQQWPawS2bpZFZYC8QwYBoZBaKKVFJlCbr0Gwo=; fh=L5Ghj9sgy/E/t6oRMdYLuHiVkJCoXmiM63WMqMbJS5g=; b=liOr4flmeoQMu2+VjmSs0uoWPXy1MKjucM7ptaXz3cRtjpXcjZTUVSZ1HTftZXgIRA MGGJwv7AUOaa3+GaSh+NgZ9cgVKdlKg9oKRIMQcU+4CeUmWSg+g7YpCA9CGECUM3p6tt ElI6WktOvvd8T21i9hUpa54JV4EilSn+qr/KagpYNyYGXdz4umvX7lEEV6kXZJcwd1RZ axYOyjFaGMbpdF2eQvmC5zpWgbJvQ6jx/BzUJ6FGMEsywhw0pxtt1rLWgIhEMRSazBrP WvIxRdbjaOC50i38qKFphAcN5XgA/4ym7Fj39ePmPit33b9J+j1w0hB4eAk4yi794Iqm 3UYg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=O1CCUMbu; 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 f27-20020a170906085b00b0099351214a94si9853568ejd.648.2023.07.26.06.43.09; Wed, 26 Jul 2023 06:43:33 -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=O1CCUMbu; 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 S234259AbjGZLkl (ORCPT + 99 others); Wed, 26 Jul 2023 07:40:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234151AbjGZLkZ (ORCPT ); Wed, 26 Jul 2023 07:40:25 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on20712.outbound.protection.outlook.com [IPv6:2a01:111:f400:feae::712]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA85C2706; Wed, 26 Jul 2023 04:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZlWH9V0xuTa2plVAVWVv/C4WR3w+X6WNdrGap2r5rcsTqAt50gByDabDE2S+excW2dS5/847q72PG1ejiP5nDULcHS6Qezqqz3G8DK2ocQd0UWAHFpQqto6Do45JFH0RpHOtxFtENJPGM9TyTvNnw3WqCbYrpieGaUcEESxGOn+zZ0wQ72vFKQ6fOyAMfrdTycqrDTM7NmbLEoYTD2VAMroPtdAn6A+3vB79fPKaQdGc6aY0U4kFKT2yPI42gUGBTXkXY9Ow/PMv3dMKl1wzYB60nvjcB2bs/3h3Ll/WVWwVgRoUIaF2XHw7un0WE5uT3K5JvdMytUr+e34Qtc7tGw== 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=E5CJKXQQWPawS2bpZFZYC8QwYBoZBaKKVFJlCbr0Gwo=; b=cTVn92UwrhFtwZst11HqzNFYsavC0byIK7Iz7M8Z47aW41juR3gm6Qt6ajC2cFWkVBCMzOdDppBpGO6T6eYM6qkM3/Aa2fqck3n5VPjcahJzT2js/vZ0lqUAtmAzBOkygLLz4TpdVAuNujiHYzK2/iVOGgsI4GW9aCSSbVc+6EFUgxaEyC+KImp7ISInlF+vyISgy5xqo1IM27qG8mvQhfiOU/7ixdZPeueP3EqsK/NDIebsGVJCwK+5jfSyUW21e7MRaFqg38Q22/XhstTPQ2ctFPyVcHRelL+oqZmB9Rt+J4AP2/Q0ykur6f7ZKy60/as258mEANn/Bn0JO/i2IQ== 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=E5CJKXQQWPawS2bpZFZYC8QwYBoZBaKKVFJlCbr0Gwo=; b=O1CCUMbuFvIoF+J0Rwt9563VdeOBxk3txTDEyDd6segW/CQRbxw6hF7fnLEq+q3/Jey8wuUbOomHGzQFtQqY+jn85fGgdfNNA4d1vPZAVcnuBJv+iWxEw4es5Ex4JZJqB35iYrjx7GQRzvh6f4tc6q7IwGObQh/uBKlmCHoaR1g92ewjWj3oAg3iNoKHSBrIairy/Nh3uoEJVzj7lDv/oL+GJ9RchGSV6Dt13ivp83BIiwebD97CLaEvhYZZG3MAjmYXv4CEb4ueW0i8GwA10KgkW3CpmBx781iso+TjjiR7Ab85/xp4Des7bsoj39phTPkGtOZfLArOQBwHu0QcYw== 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:38:44 +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:38:43 +0000 From: Yangtao Li To: Alan Stern , Greg Kroah-Hartman Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/30] usb: ehci-platform: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:37:57 +0800 Message-Id: <20230726113816.888-11-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: b39dcb75-0e23-49b7-0182-08db8dccddb0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZJ5WEgTZAo1HW1eRNtn/6uJok/Sr5qGR54fg4K+YxygjVnbgZfBbfgS0kJAFg3ogVllYVgzax9X1uAnhAFRc+ZLMWA0eU56gNN3m1z+QGQvpTAv3h0AfDcTnDaIFoAXHS8zegxjBx1iwivIPixXw5D9j6lIkN7iphDgioRfZDwhY3dZzy1umr/dHGCaKXdWBxGdaWTtxb3uWaKYlLrmkpvo4GQ0rOclvilyzDXYuOk+L5D815t1prhAP/0TZ9FyTA+ZeqMk6WKzSQN0hBHr3BxWj101CONNS57qEzpEmNAJXPxMxtx0iqS7/Bj0gMrNInm5usiaAkacaZ0zSp1A8SeIZX0t4drY64MTR52qm3lB66Y/i2PWacvfmF/IxROLvvniqJH7S3QSm1v0jb1BCeMd0Z8w6to/fAGBbemxH42vVXvAE4GcpzfEyuMUDQciCppXK/wlNvj9Nw2JAHbJr6xXWEyDTlOqN2LPGtpm//sz6zDkm24mcMDDoCr/7HPLl4jE35+hCSTfVHHPCtBG7SQ4pOa5kvKvx9VYmueEynl4qtLfUZqtvGF4s9A6MN183lXuIiwqgNQDmidBI3hyjvvJ5/2bTAEuwvzUN3UMS/mnHT+/cmi3nTh6od4TQamJv 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: E0y0dMtKYNnd5cWaMop4ppUyZDrqoItzYHtfeCFmpa29oDPpNX1qSjO92POLsZxJZ0DxSHn2gbtvfzRggs71TMYfSvUmy5uxALuz3JPotdle8GHtAbiG816qsDSUw5KHuPzJfbgXl1t3KwPsdeT8IP+lkrzTbrDhTYOPa/XJU2ICczrxwyvxI0A+aRsgNdCSY7h0St6NLBFy+jktc6Q1TNIy8IFoXzyxN0gYoek6MESHAV6r8Pz5AB+YlI7MYEFVzkLsogvMZSy5C87H3DHXaw1s1uk3b6C7jRCCq6iZRs7Q+sfADTqhC22RLma9qxdB0OtlEQtI/xerCqFBHiAoyZFMJNm5r6gdHSZ3D3mAOEm5RMiSYKhcc7kQs446V06Uc+VGTbkJKN4nXnMGuxm69KSB5BiH7Pi5aiI/UHib/Ec/Va1BElUhfYSPKMZiO+y5TXg/hq96pAYyFxQCRn0dtBpxTBD7BNiOMBTpIY3U6LNOxXDDfZoH7ytb3pD1CRFQi75V+OluWJz2HenwULv7gIPn6dBloePW2uVFQo5Lyw/DCvr0pfaVnOH4o3xxRJkalQjVhMMasfWyyA9xL5C/HCn8og+tlvaLkqOeuxZfsupgursssyf6MndZqGJPFrSNBpoPPIsU+r7/qj4PavYgiKkqw9uwTUTg7gPOyAHgpDS9jo8XYtKFYX4TGXcOosjg6wCRcXJVP41auMqHjROGnnVej/+cBYorEBXT3SLUY6t0ml6drF8cYZjBJ/NA9PqL1K2lEZbJn7jH4A+GYv+DIeTsLioEvT5Fx0rPQTrIai2V1zFsnPMg3Us+aaPdYQQfD2llDIPRnp4TuTjc+bC0MPTtKYD9NBCxGVaDdiiJZyaRr/3mNylHqLiRNhFat9IiELFxOio2YSFhjIV5RaS8GFHDE5jTg92IE7gLUngS5Xxyc64ven32DMA5SaJAmoUP3osZa32Fvsb9Gmrq0bRGpOEpio4W3sNiwxbZhOaxs97nZJ26jJpHByci/yGtzNB8LpHmTMFMe6v6/sUeKV+elCcqgenJDoh6aDkn0srgealDMV7v3nlMGI4Uwmo6er61vzBOYLnR9EYEmaJcIeqkN0mZCrC6DMGgsiXcpFx6Vok/xLFfN4NFwi23fUGGb5iQd8YJs1W0/0eKJ0KxtXCn1YivbDJ+nKRNF5j7En5c45NvzvMChF6eQC2capXR3UYEPAxinbu6dPXudbFmpOtwA8kwiR0n/3c61rdFrnV36ZfQCzkTdF2vjUuuc3csfN5H+olkqj/hJxOZOAfaRmqOiEF+3yKmJr29kZh3rFGU89fOfeHziXaC20z9gWKdjISXEKDY4pKADOZE50q+vGBahcLKLYtcJK2yyNOH1nMwVTvaDlWn2QsUtIX6LeI3R77KaCSJ5UK0biTV+dkzI7sliHxUmEUt96mXds2pVx7FOxx7Vgd+rP1BUh6MUO5aOH8L1ldHA4p30CW0p8A6aKd5CuuDNys7rvZERL8aQHoOtzl3EUTvtzWXwaBzV56l490zQk2Oh0V8q6Bsv1+UmZbM+0dRvMU9cc0JAbvzr0HNfRUZoaFGzITWzYV0uPOlV5na X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b39dcb75-0e23-49b7-0182-08db8dccddb0 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:38:43.7127 (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: EL/C82tTWq/NKq3elQitheHugNkBX/5ILMjV+4GegpdaN08uh+h3/WdRRnOSBhvXL2dc5L7zvalQPDaOHoyVgA== 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: 1772490865028441796 X-GMAIL-MSGID: 1772490865028441796 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-platform.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index 83bf56c9424f..98b073185e1c 100644 --- a/drivers/usb/host/ehci-platform.c +++ b/drivers/usb/host/ehci-platform.c @@ -359,8 +359,7 @@ static int ehci_platform_probe(struct platform_device *dev) goto err_reset; } - res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(&dev->dev, res_mem); + hcd->regs = devm_platform_get_and_ioremap_resource(dev, 0, &res_mem); if (IS_ERR(hcd->regs)) { err = PTR_ERR(hcd->regs); goto err_power; From patchwork Wed Jul 26 11:37:58 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: 126372 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp411763vqo; Wed, 26 Jul 2023 06:42:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlFwYQ5kWK92MS8q/tDTrtBzcoy/BySxm6N3wYq5VQfI0ouvvx5Mp0beGFEpBXtPWiA2EXzN X-Received: by 2002:a17:902:ecd1:b0:1b9:e091:8037 with SMTP id a17-20020a170902ecd100b001b9e0918037mr2318761plh.30.1690378974866; Wed, 26 Jul 2023 06:42:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690378974; cv=pass; d=google.com; s=arc-20160816; b=iTI7g2ZT+O3FQI30N9KdN/pqhKud8BlWRU5b4P7ltHNyhcyevbZmrKxucqEG2iKWHF l036ue56Ni3VVJFVCn6S+IPeoUnGMdGlKNY0Xx/rdvdIV3REM5WVkyxhlbHCzoVSAylG UEA1fH3ZM3KjCMbohbXtGBoAAh3v7iJe+8f9NCMATErvr+0HgnoHln29btzHHBwbptvs qtVboVj6ezH8sIGUf44qJtTO5tJUgD08kgyxsATgQqEH3ZeqdWlwx7wi+YLPkYLaxUQ0 Myb4Q5497a1XiE290ATFQkt/sXcg72KuuwW9XYVRohK3n3NE+dmXpYE0noktrmiQXIy7 jVYg== 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=DVa7zYxpE38QeURQRntCjBcZuekxkPucqcYfA3rgk5s=; fh=bMC5P8+r1uhJNT7JdPC950luRXJM8ZVXe+jJ3ryOPds=; b=LdVpRfY8MKnazIIMHqOxW412BcWN7Hmhr0Fl4OaNg8lWdHkUqGwE4UkE1y99SRztDu elPwplYUho27EFkLz2RvDwFKqjNWoIbEVj4MIrd4RbBfZLO6TxJKaB8NMlTgfe8hFoVL O1acxyfextMhQ3gAramWDk3Ixt94u/Yc7CRViAeTEranUBEyc6lbXmLGnrRwtkYbDtgR 3A8xO+nuClJyCLLnWwPyaFHwPot5GqIvoQQM1oNITfPt5W67z4DKMZ1t914A15few8Vo NJhTNSEOaejr+XGXQ1jPgWddSDChVtCAhw9zOwSuO6SUGgIsQfpYS1xEfz06+7VHsSo+ 6jyg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=O1afH+1+; 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 k4-20020a170902c40400b001bbac6722e6si5813758plk.371.2023.07.26.06.42.41; Wed, 26 Jul 2023 06:42:54 -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=O1afH+1+; 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 S234187AbjGZLjV (ORCPT + 99 others); Wed, 26 Jul 2023 07:39:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234168AbjGZLi7 (ORCPT ); Wed, 26 Jul 2023 07:38:59 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2106.outbound.protection.outlook.com [40.107.255.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E130170D; Wed, 26 Jul 2023 04:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j9Df0rHf+6cNgvn2vuvhFuABv71Ffwqwwt1BZsqFS+0zw3cJiQDQhsj2ia9gNOmhoDbaoxdwVgkB5I14t0Qltw+EIE2wBA+cGrg7xnWfsFbEVthwUHN7RAphHrSoZqGjd9R+TGKDyZtVL7ZjfKmL2GJip72sWLzwmBto1PtLinz+8gpbs1nxPVW7ZtAFzIjueH7NYrVysbEpSqiNYn2zXaqjyEoJ42WH+Uz1J6uRJy1SmGuQk9G3jHa3790T7/Y4u5rr2KOPak2GSWGSRZlpyC3e8oCRO1csYZVkQK59eA1pdZ8+fn7kvOrNEJQ7WIB04p/q71J/CUd1Kj/oXGIt5g== 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=DVa7zYxpE38QeURQRntCjBcZuekxkPucqcYfA3rgk5s=; b=k+qmei/4QT+m1VHWc3o4ap0rRo010fOYXLv2S4NisdTP5aB94rnNlDcqJgmzxUgL2Q1IAdWRsS8FiofcYg+MpWBntKQhgTsBtEN6yrHQMxBIWST7B/dnJjB9zCBfQNm+lOmMXQdQgVr2va7lUzP1hiuhlP14C2I5RAOhIs4mOtIMnWgLTbqbVDHfe/EMbzRTxXNC8yAUjphv/CWRfMknE9m68Fag1/vHISFZzkQqUvPiyEXWrvEzj2XBN6QCMK09pNbPucFRqHpnjW8eKswXSYE8FSh6/okjSDBDASfeWPruOP8Kg25TNJxVZ6qaE9w2eC/GhifklPMe0D9l0qGwUw== 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=DVa7zYxpE38QeURQRntCjBcZuekxkPucqcYfA3rgk5s=; b=O1afH+1+X1Jgnv6MBjrncTi/O2ccjYkNqbrDQ/rQ/dhwrcLNKiLJuL6KCTPaeDcM553eUab+3ooJZBceELEbPUg2YwPRwEotdu47c6UkrVnZQQNgt5S7damcBRDJJ+wk+efXNMK3H8LIQexOhnSWTcTMWLXoSRW8U/yAkEI5Iw2GoIgw5pAf1ZHFznkvRBK+VxFw/c+GhYWPJhwV6OFIiisAJTaUcnI/eG69Ss33S3KZud6kJP94UjOICtn0UEuMQYxKLV6hW6pMmZiU6xPygd6ES6UeyCseUtzzbJRDdBTMMsgQ9ZPtpMX0cy+qY/E013nfTjOMisMyfsfC9mJCZQ== 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:38:45 +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:38:45 +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 12/30] usb: ehci-spear: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:37:58 +0800 Message-Id: <20230726113816.888-12-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: 5c1dd259-b378-4488-26bb-08db8dccde84 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NUBQg7KG4hlPMjRP8wk6R7C083A761bXAVLipCP9Lh4EkU2EbdrUCS2PdDC8C5MnrSsiFmyAjU8uSAjYYXYlpHEbWsPsp0XXnqZduqlA8+EUZ2ji2NZN6ORbxNLkERsajC6x0hQY1TEjnXfRfKrmz/X3c+3hdaZG1ccpVCXYDWzLRgyd4kTHzPBwDie5N1ne1VWfO83bRgV2k7dFnq1yAKnUWm6GzrPVYrMwt3do5xl3/VDcIXkVRk/MXxwyekKYlOF00Pi6T8GX8ilMK2WCbLGkyWHCetIKFT/QatLGRYD+8q6PGnHVuaEQsHeaqGiJKb0Wo4LQSxArYeH7FSuHuWY5hrtEwoxX/Stdgyg14aUeEUVMx1HUV4ej7B5PPguswmTBdotgP9DMoixgZLmvifk20uSk4/AHFoZ1Tz1WtfCqulAaE5EXzhCWYFbJ0qf/4NAi2nmtGSeY/XSYRCnJGkiDdU7A4D2Ji71CIunWMF3GPZVVEJe8oxrrxryOGW8j+t0u317MQ6CtbBSRztk5D2JfkfDCvxXXeyh9jxGJ8DT9NeCqVDY2C2yPLV5/5ygmpKR2s7RvEaJu2n3mJslbcSmpPnv3PZMEQiAxKNxxtX059o9Gfb9Hrcl8SvknzS6Y 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: whTpLL1Ws2p8B8DHlEjbqfWrp5uIybYerjPlVfDkn7IlbX4ccu1qqJss6XRpGqEOLWw6QfwIatE5+7Ipjrfn9xOQiN2bnF1IX2vffcn07xqemI00vWsy8rjs8uhHPapfmVKldaoEkSGVZAHvbsCfRSVz5MkfafM8k3RLpRkQQo4GmQDYj2O+JOL/0nyNpV11B5eh4ATk/WCgyyNGe6e+nn2w93vQGHyGwEsD6LCfK6kAu+LMXtD6ELINrOapCh8GkssGkx0nc28cZaUr4QPH8D0D5zsfuqfJHJrxhGefD2ziMFpvMyCuc3MPhlB6G73qmiUzANsFzjdC+XH9Gw84fgZT2api2LQpVvt2D+eiyH4Zpc6JIe38uhMT6o0BjhQ2Quy/GJgfT5jFuFr/0gaDYWSKvFGXaiLNcmo0XfBjxU+584OrUl48mshgYwKngSnn1s2/+9RLPcycOdBaReIvk3xREasFqb/LAOV/YvDdyQNhtEo3Xhuw/DY9jxPJWTtKyxDk35aBfn6XjdPJNtZhHXJCg1njxikakEuJLuqwD46ebBSZKRI1kdvTupuW84/C1rUI8TAF6UbqbtEAeNiHOMOgOctqVK6vGCo9pztzqk3Q8djW07KacAnO1jySv5b2IvblfHJWc2i5q1zOs8+7oi7nuicGuBWqP8tuA5hEELdeZ/9bJAOvy0g7BU2kbQ0Ioy+6udhumt6tqP0rC45moxNbv2buq9KAoFSlGfZ2HTEUjcktoOm1jm+/ZZG+xLASFzRLLtDjNdX0n9k/k55w7tIo6Iy6o5AqhUHaJNSdu6FKMDmViqx8hdS20bwXJ/hoKLOR2VSQTzeYLMPuldVBuRVYKUfRV3c3ZQfbIrAxf/bmFDAY4Dd8dT1hy4MpFwFoxtOmLTIED6CIcgz66WWC0vHOiw+b1mqzDtgpKqKT74XU4SKBKJ1ie/bUTB5sAyTYHzCEiprob9wLrLsdNjlj75/FsbDKanvVZKYqubboRZtOyX6EXH99v2l2dhXac0m9LuylJ/znBEu3zwpm07DLU9l/Ep7XZJ56Ly6+6yl5YhRRhiyrzRYXpuQJCDZJ83/URlic77wE/s1G6twxjZBMDmwOCYkw5cpX/ww20F+oSeT91SPucacZlPzMOUawJ5rgHKDt8ODoHVr4p+5z9hp2fTwKbrNR/m247EFaNCXDfXPkroPAmefRF4nUKCQVbz/VxtMh8D+K3mhDP+K5Ai3ebTaG83cEDYUxJsGxBpltA/f2O5r1dVLTORy4o+Dp+2zau5Ds8ersylZ8CxBhyfyMZKtsLp6I73+H/wZfWcEYP16kinMkz5+RgMli05YdBV4ZZr73aCIvRV2e9RVEth2ARXYCODteg2VPhwh9bcBYJ9jVIBRzo06JT3/WTxizKr/0f0EDPT13C5e/pz2h0wMjss0Lq751apGwcSDWbrWXiPR2tl2dNtbKAt2wz5mc5UX/iiwN/IDWG24cnOeWJkD7sTffmLk1kfyuWqkkjTv6Aom8j+NDRHEYV7VnuUmDMK7GCpmPIFmHc7PRBnbvdrDaOoCHVaZ4KPhXk0OARbbxDYldr7I705ZTlwGZFv6qL2Gw X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c1dd259-b378-4488-26bb-08db8dccde84 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:38:45.1188 (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: TCik9HhbKx1nq+DZR37omuTPiarvoaTFLlNIt75DpvMAj3N9JBerTCWpV6J+mGkM+gsL7r7CdZso9Uo05XFkNg== 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,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: INBOX X-GMAIL-THRID: 1772490824128019653 X-GMAIL-MSGID: 1772490824128019653 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-spear.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-spear.c b/drivers/usb/host/ehci-spear.c index 1407703649be..d0e94e4c9fe2 100644 --- a/drivers/usb/host/ehci-spear.c +++ b/drivers/usb/host/ehci-spear.c @@ -91,8 +91,7 @@ static int spear_ehci_hcd_drv_probe(struct platform_device *pdev) goto fail; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(&pdev->dev, res); + hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(hcd->regs)) { retval = PTR_ERR(hcd->regs); goto err_put_hcd; From patchwork Wed Jul 26 11:37:59 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: 126288 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp354332vqo; Wed, 26 Jul 2023 05:09:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlE550AMXdolwE2w3BdSvwP/z5eDxLLA8ungF4oKStOKwgC8SxfHbEq6AAwpHQjwnI0tr+td X-Received: by 2002:a17:902:8210:b0:1bb:a4e4:54b6 with SMTP id x16-20020a170902821000b001bba4e454b6mr1710631pln.62.1690373360881; Wed, 26 Jul 2023 05:09:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690373360; cv=pass; d=google.com; s=arc-20160816; b=l3f/KRQ3NJFqeogKj3MczEwwvEvna046Gm47kleFL5y/9/Zexg0JVwCGnq0NyvPqLb Lz1xmd51XyOW0IG9JFA2IKtDZhpTs93+rkT7bFmbL98YTorwliAHCz/BM7bqD2lGme5Q qlFtCXRkSOaxLbw/2KMYwoFBHsOIcjWgyI7M853AXReCT/ECb/Zyhsp7+we5mEEau1pM +N68sNoczvzJ01FRdWt7b1bZFQGMHWRH7pzpt9Tp0TK6UOh2rdsWgcbuOYQZJ/vIBWcp 2ch38yC4CIvx64zWvEws8lRpBvhDG2kn72vCNl1DpAmt39C2b98fqqL+y8K/Bq3ssJoO C2sQ== 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=brOfnpXWG+BlQNr/drLFUTt6IkQrATlZ9MTL6rDmuOc=; fh=G0vXrG17h2/vlfZCASfGqxOXgmNNHShLvauJVeXF/Ew=; b=zy2FMf0W6PyXfiWiMBlQidq6Mw/SzIhlkaK7fHo+luPyX2Z2zcFGC6tIK4/813HGCq 79Bfo8cSejT7rsyu4ZM+/bso1xYggsj4hYw8CLHt/avVaNQpfEZ84BVhbf2Dd2nycm3j qlsPVKztrWlQFwBAhtH4FyGMjqehe8ITDhAR4pjvJMsQyFWcbxoPfpOUwzK6cZe1TpXU 0aoc/tkqH4/LXgICx7OYbckN8UwfiQmjWZnP0YXqKQeg65tDmM/SJ+GvTXqPdSaUPLOI hTpTeS0x8RlgFCUOB1FCwUEdz9ZfD/4Pb+ikOUks0Yc9eEj1h68SMQRbphwiEnjw6EPn zKQg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=n6+bbK0j; 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 x9-20020a170902a38900b001bb821e394esi8504250pla.319.2023.07.26.05.09.06; Wed, 26 Jul 2023 05:09:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=n6+bbK0j; 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 S234238AbjGZLj4 (ORCPT + 99 others); Wed, 26 Jul 2023 07:39:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234231AbjGZLj0 (ORCPT ); Wed, 26 Jul 2023 07:39:26 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on20712.outbound.protection.outlook.com [IPv6:2a01:111:f400:feae::712]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1A592707; Wed, 26 Jul 2023 04:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kw9jlIIEgq7ApxYT3+ZvyN4yi1V7ypOBVlr8oNpgHDJN4I2whATUwac0X39VXsxEvTRiSKTfr5l9kEpLnYfnIrLxXWpCujlLNiX5zcJW4UluA7h8GHH2MFc4sGHKB9mcJTHJpob3KrAMLeXrlzoocjtGJ5IgrgjxqG+HFuluY6CSYhT01VN7u1YKL77p5RYmVGhkjfJK4eGlZGd3gNFNz2iYNFlPzd/GEnR6b20YxlZPDEXACdk+JJBS7+FJx3ikB5V1TYbF/fhZVEgxXVUMff8ylDs5+vSoEI+O4mLTwVEdgsI9ClEakDG8hvipjgKxIuTg3G8x5Odu0lVfVRfF1w== 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=brOfnpXWG+BlQNr/drLFUTt6IkQrATlZ9MTL6rDmuOc=; b=G9B1GOp3LtQbi3vLW5Qd3f2093rezKmG5F+1UVUAqoV1WFrnIHikCoPbdAhlZ4Igri5IEAloGib0uI6gqtecUeNjFq147pPKnNTU7stfBp/BbZjVahnOZbFWtZFT7rRuJSewqP6ktC42eg2V4pNXlG4mNJd2ctP64/TDutWStzflXNBxkkeB7clq6/BF5e3vod4czMnE+1uuveVOJ3inHskrseM5MKtlDZHORAGbcOj0vunVABooOOvGrLOUV4cx3PjVjFQb6eUf1NIiqa2nzzwRqoVMKSOcRhRIT5VrtUDszNwg1lS5XDJmVsK0WlobbKaH0mQyobtjIJDZFVJazw== 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=brOfnpXWG+BlQNr/drLFUTt6IkQrATlZ9MTL6rDmuOc=; b=n6+bbK0jl60F8et8cj6JI8wHQeyYrpjdOlgmHD1yN2VVe3Wqe3C1ZykS71/peeslyZS1JDiujmP8Bw9/gK4SI9kRyml5Hfxi91nEfOPEemQqCK9weh6iNVSMF2Ll+wzartMMrNgtb7WvpIa3R2tfmeSusdJ706zjWC2QMiqQfrbAly7OJL0Ro73wqWPYRSPO5Ht8+kouEI7+3iG0d+J+4JRVKN2FDPdCwFl3i1yf6ItBM7QCeMCENAkEoEaIsx11O+CaruffzrYqGvvtKdKgapVmMucb+xsmqu6j4YkodiS5VbBnENNzwX3eAjoLRtdmB4I7exBT2sYObLolJzypLQ== 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:38:46 +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:38:46 +0000 From: Yangtao Li To: Greg Kroah-Hartman Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 13/30] usb: isp1362-hcd: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:37:59 +0800 Message-Id: <20230726113816.888-13-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: 58207283-984b-4fa9-9fbe-08db8dccdf47 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6ZcxJRQ924ajLgYa57exx6NkwMXZEdWcqhGgkEVpyaA5zcTWwR5Q8NdVkepkUp7bykWUuj8w7wMHT4Y3dYwfTpQ3nq/UDSfeQMtLPvCXFlPJzvUy2/c9dC/hFiz/Y1FsWazXV09YH9HABCPOmzSnlFzxUvCrMJ+KAFMMQ+sr07hfIm9aJh/YRS2k2K2w4JLvBrI0SriJExteEQKx0nrom/ZIBQhfLE7SzYgNZx1lsR4rKucVFCtFrk0wFb6/dRD0nKEqFmX0CM3ePIVrZ6KOkdhaZaVhmBZLRrY2cky7D+di4uJwSco8z83k4VJBNIRD4gJCATdWMSCLCVZKN3kdKpADg8GgqMt33OofaRH/cwWkwGULQ3FSrE4PDHJy17J3lGVlRDf/8McIVFUAbQ3MNcE3bAyCinTIXa46MtulhP/xbpxkxGpqSu97zbsIFIeJsdeR0rRdV2OwjdtMGYZDQByp2sLFCgem2HStUUJxH3lMQphlfBNbngVKFjTDWNC28pvwEsV4PGrWBs9mcjEVqArcOwP4FxgyjtKU419sVvkHPqNdlAo2bWfhga3E6NT/IqnMG+eqwveGmF642SnPte27bGCdDkZsKP7kqdMINwUgefcto1Y7gi3D5DR3REr8 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)(6916009)(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: 0DpIIcZXxA4XkBKieronDrhGlcC3/0pAcqb2rmicJyeRyt0QVXYhYbx8m6f4uRd8V5TI0O4n3+KS4vg0g5Y5YM8Mo1flcaoIcU3kKN7Xv68XM5wDnu5HjHqFuXNKRLHOvGAZbxPe/ZisHmzBC9GCzomT2pjsZIm/9gLtgObixw2LnEu6jkZyN338qkuc5bWyfTdH7KjlcmRGyfvDKCXckm5gOsC03aVDvir2goKddrbvORUCE/n7hRTml4jBXV7GEjfLKpP1Y659M5ziis+G6fX9N203q8Eblyp1xjTYqzJoyo9r/EnlpxYUqwIvKkG4mQfa9/sDWcLC5wNn3SyQ2fo3xd6c9lr1j4NGr7SjVjZIR/5HtNx69GP3Dx2umAnpFRyrnSYQjtdtoJ2Fqp8STKtIdNe1mhWWBH4YA3hoZ1AsMXTUJqZMGMXttbcVwr8Jar18l2LOVuusyAr8exKjSSe6aShVw1hk+VWVSQpcKIekfSaYYAQUUgkBraNf1UVgE6TommVkbatlqtGaCN5wDbhJclQ6eoxagTSUBY1KQ7BSiRrIyjVbWvkNZk9wNH8/QYGSVrJgtelKiPZvIa7iuMk9/aPdTtb2WhhPDQeOVt1ywMs/HWPz73MLLrUgvQcC2XMZPI3u+Hk3xh5PZeytGaFdD28J3i4PjgVi0j3GafRywhb/VOOkiwl37OeTvAdcrxEU7InLEOuOeXDS6WLrJVC72wbE2we7RY3B9epB/kfSaCpvaX+ki+VgYOFgPsI2eKhwisu+25/ZOIX2wLAMCH0Iz4Z5s5eIFvGf2J/psWdCm4X+2paBYc/XMNbcoc/VTY0KtgW+Pdvvir1UjK2ke1dhSRyUcwpbly8lAMwdzkwkmbWHjX5DrnKDp50MLEA22FkXPgyO2o2Vgrcu75ljQn1gXB2/rbN80NYD6kGSKjRPwjGvrLq6gzsF6QozbdQUHCw/l4g19iDOFiK0LqyJUJxaMSf2cAWoTml7EC8ANAq8abtfuH226I41jTTJuj5fz0cnCIb5Zoa5xPkT1+TPZ90fL6zAr4PAap6ZF4uSr15SDUB7GtTdgDQbBiUfQBmrYzhKKjv3UDAT65sF3CxPcXwBzfx7luRCxuS7ytlsTHlDbVGA0VKp0PLwdBWViKNOqXcAtRbc3oVw5TkTywyiR61/3yJyxmp/I6z0dPdJewjriDR+ONL6lEvtD+PaNy/60LCK9Llz8FrYLZ/1i80xXT2Zp3lmCneeS7QJKEhfqa+QcFM1n6t5O01itp9zhZ16gpQM6Q+mJZLGmL8Bl49i8aeyq/zY0bW8V+HdTnedxZCxsgIKRBAPXP/kA+PhWjzLdHPBT2vxrmNXiGuyy8B/ST4UfVK4nVjkL1Qv2yFeEqUyF921xJHrcSdzM/kDmnc3afehgl7fwxZIxAOGjTwxMzOKeUIA3UYXhAYiFZX2lP9EeXZh94yYy04wjosLYQL9SlXbXnB/vagLZ7kt4lD7Wgj6W3VSKrTPAodUKNtQwXMPYdNy9+KA3I9iEnv1s/ruvhSrsf/j/ydUjCWTaVXTUGO/VM3guooOxEo5JCiH63XPLIZyLlgmBXljgvPnKUcY X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58207283-984b-4fa9-9fbe-08db8dccdf47 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:38:46.3836 (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: bafn5DWQqduLAkDW+dgmj+FyPkoN9Nk9BUnvzWqIDFV1WZ1Kge6c9OPyC9BbjhRHThnzClOAJKJyxJwFcVMr6A== 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: 1772484937288963074 X-GMAIL-MSGID: 1772484937288963074 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/isp1362-hcd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/isp1362-hcd.c b/drivers/usb/host/isp1362-hcd.c index 606f0a64f3b7..a52c3d858f3e 100644 --- a/drivers/usb/host/isp1362-hcd.c +++ b/drivers/usb/host/isp1362-hcd.c @@ -2651,8 +2651,7 @@ static int isp1362_probe(struct platform_device *pdev) if (IS_ERR(addr_reg)) return PTR_ERR(addr_reg); - data = platform_get_resource(pdev, IORESOURCE_MEM, 0); - data_reg = devm_ioremap_resource(&pdev->dev, data); + data_reg = devm_platform_get_and_ioremap_resource(pdev, 0, &data); if (IS_ERR(data_reg)) return PTR_ERR(data_reg); From patchwork Wed Jul 26 11:38:00 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: 126376 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp412472vqo; Wed, 26 Jul 2023 06:44:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlE7kjEPxb6lWywFmZIQXy+URw2LrQUkctUmGffyoBMlgfcPGoycLfvsm6TaUFYTy5gpTIFM X-Received: by 2002:a17:906:3098:b0:99b:b3a1:437b with SMTP id 24-20020a170906309800b0099bb3a1437bmr1779730ejv.40.1690379049832; Wed, 26 Jul 2023 06:44:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690379049; cv=pass; d=google.com; s=arc-20160816; b=BlUnyOtCtbPK7EzfTBPg4qrped4e1MuDuYRmdn1mMNPrG987J8BzSvZckeCLSsBZZP Jov9A452fMy4GWkT3FR9XBrBY7wZoZ+1oXfnWkh0VxXH01hNt4e9sSZnHDylZ64UxGGN DHW7oLsPS3lOt0djtqD2wktaGgZE6EvFoFpNEAXFlFFkzi7w7UOZF/yPeQ2GexzYxdR2 D2D5zr0yBYS/PMFN3Hq8V86sx/QefdVt0OQAdyUuI9R7WsPSnBkaI3L/ynqFeSsYtAZH pMsT1yioIfg601WZeB3rQXkXn7eciIf386LAxM8JbuxLQRRmxKJ1RePko+P6qOYDV9Un 4bZA== 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=F0jeoy51v9vZAUvOAlmfybQXK/uZ/OdysOm9ckguVB4=; fh=bMC5P8+r1uhJNT7JdPC950luRXJM8ZVXe+jJ3ryOPds=; b=nq5YyO9jh1udIM7S0mrIMOYIB2mcbA3uMLzp5KMiArhFE1ICgNo5lWcI2vd0HV0joI p/439bHJ/I2ed5qxB1sIhapB4rkrFr5HxxsksfOxq2iJKensQ/R9nmafJY15NKBf/YZz Zhi/bRdO+8uva/6WiLtLGbWwlZ7pkOgEA9mXlaoBjEmrzuZptdCcGpICNKcCcqq1it1i OguwC/hrIqbw7T8kPZJ7EPmc639piVo9xJ0BQF91WkqM1Cupp57FPN2G/gBmZLMXcjCG pCiG1huNuvnXpxNv0cN378IkLiu9lw0XbdpAWqKQKarWaGHIor269j9Gup3ODf5mEdE8 CIOQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=RlilIR0f; 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 gw5-20020a170906f14500b0098dcabbe742si9495505ejb.121.2023.07.26.06.43.44; Wed, 26 Jul 2023 06:44:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=RlilIR0f; 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 S234140AbjGZLjx (ORCPT + 99 others); Wed, 26 Jul 2023 07:39:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234230AbjGZLj0 (ORCPT ); Wed, 26 Jul 2023 07:39:26 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2106.outbound.protection.outlook.com [40.107.255.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5250A35B1; Wed, 26 Jul 2023 04:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jAXMWDKetx8RDzE5PscFPcbZzWMMze/Eh3wz4nWQsiw/kf8vQNx5iFnMb5886GeY681tkXBarDPmrSAX9D21xGhZcC8X8YDQP+p8oTREBC5K8Ty2p6uFsPF3vGQFXNsEVuQSk9yx5myKsQDNd+/TAMw5KnElXTBR99L93kPmMmuJ4CJ+wpgZ5vQtosrEMNIcIdLMTyhJq+qPmCW2EI4S/6iTRLthJ5M++BRk/PeghqekRv2UkVLsH97bFAxFlWxgYwHLcC3pgyIoheLYKrIqS4tlnE5gu5vmrhmz1POAR6wEmaiUBQc8prES/s9gt8aHeMee89tVvINlUY3w4+KZ/g== 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=F0jeoy51v9vZAUvOAlmfybQXK/uZ/OdysOm9ckguVB4=; b=HZYnTYq17xH6aRJ8ceh/VwGCTYvkA4PJz2xxBfgG34bwPaA2sxeOhixcKkdQ59+sdQjSGqBgJR1+FGYO5WdqnPum9Gpxw2RjpbuO5mGx5tBRJVndmpcv0oJ70AdxQb1xdEO8N6OaIL7OioyHqotoT7G3Yvgv07p7DIMLazlxNf4T7iJMGMA0ES3hpWpR/kUrK2//bKXULbFx1gMzYecUsr62UZWQPVlPfObRVbcpwekHTPcG9tBgQIWxLvb4nIBvqTeZC1ues1TPoLX1mo/Z1IuLEnFWglFybqMsZfkiwfJmGBa4rH96tJqzvT2w96W89hMeZNpgJjOysg62tMzGsQ== 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=F0jeoy51v9vZAUvOAlmfybQXK/uZ/OdysOm9ckguVB4=; b=RlilIR0ftERmn4F4OpgVGa1ZUJIrEaFQvi/V4Y41kp27BsyfChL8j7bnp/Is6NrFbOmki+omyLx52qPwbMFbJUJ9M6q2KW6grCNqcygWfgzEns8D/DP++/ZzVp1RE27Rtg4zky4oLmAseqAnGHKXwcyfx0iL3/Wt8qb5IRYI7xh1qitbRoIbzgbFb4N209f2W71nCVg8/MseJKyi/wBGtrEg8CEKD7d9/CnXQn8+StRgMy0doxQxOwH3fon2nfXeVsS+5StTXmVQMIkT+q8QY0/5NmKYW9KpLnzXSVVcQs8z8KFRONuAz0qapNDh1i+rzS1RnBmfSB6XFdOmyWj8lw== 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:38:47 +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:38:47 +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 14/30] usb: ohci-da8xx: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:00 +0800 Message-Id: <20230726113816.888-14-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: e08dc11e-93e2-4967-c4db-08db8dcce01b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aYfwoXTMCohUybNF3qR1XotistKQ0dkvDD0LXI1bGpAdIAnaPvkpXqsp6nNtQTolaCUbAEx9RsvCL99W7E1Vue6FE5QRxTR5v/O7qt9tePIAeYmgkZvUk4R/WLxaSyUzMeLdf2JSMSdEvSAZpKwtr7JUWbyj/lZQZoeTwHkuB9nJyu1fOIjLNyuhTw1Sjm4L7XZbzQ5yfNQ9HFet2GOLcW2kaCVsc5+djgoXgRy4HTOJULaRFk7PPpTmvU9X15uZnG+kjslOQvPkjwj1HfapuodO4zVJkNoLoxSOG+dBDZw7ye1WLHZroE0ghVGv/V6dLhin8tVkYHQTxL+/0u6/r5j2LSM3spS+F3JpEFHMLXxzIVNMUEU2K8qAfoWAlWbjh9O0F9fEHlH/fN07tcQO11swPv2+Yu0WJy2+Rbzk6iszFtzy7n1GpTvlXH2g/iC/6+aCrAkTMuBHthwO7Ss3lLsEgJl3EdST7JvGDPzDORrz/OgPl3nOwUcyHNtAgpkf6YNc534Ax4BA5rGrHZrAY7YzQc0dvCeFXVdv5zwYHFoB3iC/CGE/BUJiid4wAWZKykM6EoOryXIlPUwy+cwjefQFFj2p/Oy1pUmPUZDKeRp/kxjs9sJ1J0W/1kBUAHJp 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: hrlHJyGxEqJrerMl6qnOmNEegQqBh295JBNjcTURy8nesKbOYqP2skvAuuzjmfe8Fc8wt/bi7J6O4bvZ8AiN+jMtzh5Hsjc1sGUR5Kn1nN+rzbWJiMc4QxaBhG6MbHKmUbdqJhqpVAHS5PMeXDJVfg/Eg5RK8bL+ZKVwFxJo744klyBUpAWDlZ+ltxqvhvsRkNP0IcO2VAbF8k9Aqp7tzW3Y1JKKPSc+dO/IHy9zAKidZTbt3nfjlM/Yv3mjXN0xs18P56ci6G7xDhP1KUtaoOxlBnHj54oWMDfVL3ppHslfHjcxXerBaO47svwMwbBUPypqdBcgPX7RCjAVQiy5ffuczklTsIRbP3r9S6YZUh71cSGGLKXU7+5sOKLZpX4SDDWlvT8NgSN0/2uZHKdOYJ1l0mbYt5qM7pUwZP/3aXbNC3sornYhj7WkrFl5sBe3SZhBQEw6Yt5FMZsaIYBPmJ2jRf7rZIYfwAwxf/BdT1eNnSdS/YjOTnBmk7EZ8i5JLWEWnFi1fYFyPtecBothkNa6r1bOS/mL8X5J2kxdc+Rw6gjrrY06Yj0KgHnnCyljAF9JrSwlSgVc/vRGe6XdeUYerzLPmFk2TH5/uGGOw1nIIVR2vHZxcCJt7r0AyJBwZLhryU+EZ+TEPzUGaKop3PK59PQx0BwcDsDhe5HORIX5j6DhlxIq94J1zpVTFnAsZ8iEXSlJXi6RJY9rR6H4Al6M3F31eZRZ1ECNfoFd+R8aYotdhgWEc1pJAZxs6ddJ6KfFnNoTbSWEHzv6PtI7R/4uj+iaypHJ3qBt/357tIJzdwSaVarL1ui2t/U3WRPGyxJEBbk5v6xgEqCrFobfemZgEUCXu5Ph2Z3E9vo10UvQLLLI7A2cNmheGgjzfPGpIQh/4/nq5zW4XhvyjhzRE4srxvSEVsTRAHfsVGJfLUl6dSSBSpqQ5gxHYsLf2i+SDp18qw7gArcBLkmo9dpsW0lHMBbigUwfcD5r7GZbGex9DB5MsjB88odxHoJWISLYx1WSUYaJqwUV2MB+q3f3VfcLEV7lZ4xj3WZUN9k2AVcsNtd5LiRHoBWGRLy6xKNiQW6zDLXoHETnvWAbDf653evWKoiuYJ6BytiBUmT7N7PdQyLWiAbyoBBMhOSAZ1/XV4aQhYBJALpCzRhKrQ1v7xisM+kzLD4atD8AF17nVbUnNAZCyi22JNFq/uTsaHXuyGg0ntOji87GbvSrycQmK1iwv4rSQYmvttD9b7ik9ylQsvsbPZ0jSpuAP5xI/lgKlrpUgWfRvok+4oP+IPftj32PgXofC9LFeZrUdvoLEWJAJcIn02EHBPcc9BTDyO/8nklX9SY/64IEU/DvOJ1OxzqZyPkHPIrrHv8p+u8vJrqExhNzJOiTgp1Rvb8OzTp5VV0DuklgtZc084RitDpz/wY7esODEk1UCZ+8KTAM9vq/6jKOelXfLlgBXPaDuObbVymB6JZFyX+U7tGccttiy+vrOzy0jT87K0paoETfKuBhOfDLJBb9UhFkmEKZXftDGasnS1cGzlCVTbkU9LwoaGOGFTvtjm9r6gezG6maL/AHlKgyoaVWpr0pAgx9HVU1 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: e08dc11e-93e2-4967-c4db-08db8dcce01b 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:38:47.7722 (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: tUnvf++cBH/NYGOmTw/buWCFcvjiea3+wjKOqUF+/iG8WI1+c0z2+Lx9wsrEoEpqIrqCOr171O02Vu3dNlSl8w== 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,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: INBOX X-GMAIL-THRID: 1772490902467927658 X-GMAIL-MSGID: 1772490902467927658 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/ohci-da8xx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index e4191a868944..40ec70080717 100644 --- a/drivers/usb/host/ohci-da8xx.c +++ b/drivers/usb/host/ohci-da8xx.c @@ -435,8 +435,7 @@ static int ohci_da8xx_probe(struct platform_device *pdev) goto err; } - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(dev, mem); + hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem); if (IS_ERR(hcd->regs)) { error = PTR_ERR(hcd->regs); goto err; From patchwork Wed Jul 26 11:38:01 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: 126377 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp412667vqo; Wed, 26 Jul 2023 06:44:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlGPcMgZb1CgDoWCJ61eszI8UPr65bOYBp8zC0Jlz51+FI7O783VJsz1VLBKB36fLB5OidKK X-Received: by 2002:a17:906:100c:b0:982:b224:2a5d with SMTP id 12-20020a170906100c00b00982b2242a5dmr1982690ejm.37.1690379069994; Wed, 26 Jul 2023 06:44:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690379069; cv=pass; d=google.com; s=arc-20160816; b=yzifHrQ/89VMmPL6qzC9gTaHZiaPhLXvT+5xl0brlG2pZ3i21ix6sBirtwUrKgpogE 8w8iWMi4MXqfcqa8IIMN3oUhPVqGY3u57Khe5eReds7S42xpOR0K4QxDwwwgb4f1esE0 BWEFjMqrr9XRmOliMeoE/F3cu0PN0DrS7FdGKq6tmd89TXyRbD9WWnTL1iRy1svO8hei 56fJ3IMO85eJOPtkXyhA29az23gE/Xr4hxzQ8rE0biWhEnd2dwIvu28Z6vzPybWlybl4 TEFkdWoH/Pfolk+etuIC2HxlEzPpCRzUOXRa1QTIiZfce3dT6IGhQs8O5cKNWGh9mQPc j5mw== 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=kC8QRr3SEdUyv6V/mzsB6ZiTd2TxC/JtlBCSiToeSqQ=; fh=bMC5P8+r1uhJNT7JdPC950luRXJM8ZVXe+jJ3ryOPds=; b=xl6AKX9OdE92IlSXTVbCtpctd3rezi0Xi1H1GmrmsFl6DShtYUu8c/OBQEMzPBg4m3 lCfpknl/0NTTXGdSR0+p7uuwCKs/v92rYrOg45OMyPM65H002ooFHqwar45bThcUy6Tr gRXsHkWzlmzNFBhWfUJ6/z98pLCVEHLchWfH/FqFhQR/6x5GoRg8gAhFRNwVmY7e5lZM r5jAfQJFi1XwQ+523epWFLWOqp6sfwu7AKxWLwjPxnT1cHT5k2cBiau/hCPMdq48LB2v 343fo9az7Liyux+SlOSczOkYcbjcSxIh5kKX4AzvAEAlsEYFUBV81yEnBwh6VKxmOIAl gz0A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=KmsqZv92; 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 u24-20020a170906951800b0099331401bdcsi9324263ejx.694.2023.07.26.06.44.05; Wed, 26 Jul 2023 06:44:29 -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=KmsqZv92; 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 S234263AbjGZLkM (ORCPT + 99 others); Wed, 26 Jul 2023 07:40:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234194AbjGZLjy (ORCPT ); Wed, 26 Jul 2023 07:39:54 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2125.outbound.protection.outlook.com [40.107.255.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C13E2D73; Wed, 26 Jul 2023 04:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g9xMoaVYrJH/GrR1aDQuLnoDpV/DXH4fdN67GBGLrbspRGAROxfM3UQT0YwEqf/GMkYM/l/8FXWqzBpt9ZI2xN5GnTsSyry80m5YxqcpHO6ppDMBwaCdPDLOTda+LcQZ3fZw6gwOsb0SGPZ8DA1dhoc1jIvL1xYIOSoqQsgoAgTzv6srqPUJp3xGfQOP6VB32gtT7pQq1KT0dN0VYmQRILJQgtB0NFl6TbeXp2w7aY22F95iCkSoWb7ovSucCQhlWKpHV3VYPUHIZWD1DxJ4Ex9s6bTMGaljfeCpzNiVqfS1ADKT2ofc5iCdy5Rv01xjyGo992QRLo/xyHgAsvBL5g== 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=kC8QRr3SEdUyv6V/mzsB6ZiTd2TxC/JtlBCSiToeSqQ=; b=MFjDqyYpRIaf5TJf4kCRAVhPzQ0Jd1GpYl00XvE2bJxZb7eRYrypGHy7SUUhVIZ0FQLVb6StQaY3M3uSQXz2opEQr3NsKoqCUmSyeXoq+25qJkcngN7ex5eKzVg1GpMN7uQ/+a/tZLFsxsHihHGPP71e4jweoIGLgUu8Sk1yrRbyitZ9pTfiHgHg6KIKOCgzc90qd2GNCy6hN634G6VtdWfPjIvmYNnyCVwr7lwvio8sVdBHdMO8n9BmTBkowrtC4ynRpzXH9GY0e80FmQidubzRjJNme1IrqjBkq85ZafFPyj1ZiBjFKE0jS4WcT58QWVl9QRoN6COdZei4LgX79Q== 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=kC8QRr3SEdUyv6V/mzsB6ZiTd2TxC/JtlBCSiToeSqQ=; b=KmsqZv92AJo/aaQnqPcI9IoKVF6ByGTruBq44J51tpXzV4xVmotc4RT+hAP9eNzAvKwfjv4s0I3VQnrjk8U0JfCihXQrCIuM9jA0tSq4uO1N7Dl3b2E2LIQSl5KliHH/BN3suc7DCstqE4n3/7kOPirGl013w0xsLe5E9DP4s5pitZntPLZJYnuV2VhSCX8+RNkshCg1vju1Aok3bMb3zFaeV8/4uYfSNEJB9NXNawjZCDFyBd3HmW2o1SDW05GmXToOkenOj5jgUx1axM1g/oyr54QmJsH88rJBSgXPfU05NSWpDPJ2MY/h+w+Do1Wk+0td3adt204HWLNwCdwV0Q== 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:38:49 +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:38:49 +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 15/30] usb: host: ohci-platform: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:01 +0800 Message-Id: <20230726113816.888-15-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: b7339ea2-34f5-4e07-8b51-08db8dcce0ed X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Rm88aR5vgotnqpVJQxrYiSXdv72MICZc/+ydxs2A0+3yVkvOU1GuFJtvT87gGaIs0J/EprU47kVqe9gIA4Nsaz3MgMK8BY74U0k4guRSb3ygAvK7nu2aJkagUCQEiuTEijdt4lYh0mCig8uWzns1n70m5JS+KkVlDrmzxy6PA1PI2hCuyp+XCQEVfI70vm+Iqn1sTTGxvJq2DBpFJzy7AUp8VYsvuD++WX0Rr1+ys69JnS1NQD6BdiNYC4xMJB8mnTaJIMf+0GdmsvDtUKhRwofhQMl70mU94XwFF+7QvZ06x6Mwv8f6MjyNNruN1Ap2VGWKBkpX/RmrxKIUsxcZ7rHw9pJN9tu4r71XOpMhSlqb//k0pBFKD6WZXOFQOMAmUZEMsduL2xN/fJoIK0Q3jxDaSSxM+YK5pwhtDk5Olyv40nP+4sl5qWsi9AimXutmlIJcLLV7ymJ4KnWql8cdhPkfWadudWdPbH4+zPZKEvnYH0SBurfITGmXB7q7ODy6Ek1oaK8sXodowea0cU4pgO+BHIAYRqZIQR2NMQMP7T9L7AGXjiX2VBJRaLjlmUPPNg3U2KqahHB24gSSwxGVqoX1xHZd5THrawe3DAMqvEQjOCwICY/7BmVScvTRDFGW 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: QcOuUn8k1/Iaxmvp5KPHpcVmEbN7IDOIi8fgxzszKZFAG6i0bTKw3v4Hn18A3VXeZpZcpbJPUK/jUfU2jOUaHw3fw7fdmypa6yVSEbGgrGcC41b9m5Mcxeja1q9nma6OFZqZWEqfo264xJ9mI309bc3xKq52bNayhEx6u4FBTQsJRJcwWmNoCtRdfVdKvSQ9lxo7SxWUFkkugvY51IhG903LCe6G9O9HDdwo53HHjraGUbXUr/TjasV/MbmNHP0z+3Xf0mBRoESjmKqov0PpOtkHxdNHMYu1S7od8/U21EcqntokA2IfU/L3ckZCATyQp3BH0JxCErjocdonnVWUot3nkMPccpVjdj+RelrvloC95071W2IZuEfaye36E8H74ajEUlMIB5apyXEfB/8xYPaf/cUieVKcMBLcHfXtTL2jlnCmybM2dQNpoVQ1dDNYUpyN1FA3qAqlCs6j8CCvtdjNvFgHi6Ok0AR90GsN5fVNBi2d0u6Wsiy9tfcItVl7PjUUEgPpE2UGv27k4joYUmmkrXOQwUyQ/KyXNMEn81eXVXvHDP2yGd/ZOL2GtFalKICJI1u83htEVQ9LpBZ0ka27g3wA11HHbTxmriChir/lrgnS0MMk+t5wkFAm7vN28RSRSBcIt4y58BmoyNBsPRIPUhvymaP5svS8WH/z0Uoku2ZsJYmLPh14MTCTf4l0ezGKTWVltL9M9q5jvr4yL9BF7dULRYq2UO8sqXF7XG0eSQmF3kL+l6ElgcPM8zwuIyM9BuMEPSKq2MM2iSxOKvIwct4aEFW3MPgSmkbpnyxQs7R2bPNcpdcFPu2AaouqxsaehK107uekaXkjoA+Dlqyl93+SQZIFvglMubbcZ+6XACU9aymYgAY7AnXOvx9Gej1W+jPIPnFyuqpZ8GhHK0Vfu9eVEVhj+4NSBRARve+XrSC6EErWxyc74zFD24FEfpdmavlOUsiljlj1RIv/PW+B3V7Qw8VZD/7HNvWuoSJgBAsa50LkuK70sDeigBl2S3AJyfabf74j2EOyZCY27br+mPlycSx50hnh4MWrPaAgBYzSPJ40jSx0IBSmznLRj8gm/dXvTZLBpq7mKqlyRfVQa/d+NOqd5LcwnbJX7NOJXZCcKQHwC0DgvcEkZQ+IrF00X2uir6IObF7QapNYnv0SDY/2+3vaHTt0T6UXw3usiaoKV7hERnLbugKEDlgK8M+Y9tPUNyt4VwhCgs66Ar/YWfQQHWfXcWwM+e1/LQVr6OWkGLyyJ9UO2+QUGqGLFC1MxncBoiElYS2l18fDNJg6NbPuqt9BC2wGHAONfv0skn8Zc3RvOVVPZorxktb4ijiryp6Hla/naNHsglqylBZTxRs6KH6ptY+RxXhhMiguQZUmCwL4kdPS4+rPJIDl95jZS6tUSxjUPbAPEXV5Wd9OHYae9lxJRFXmW0oadodJPzP+cAsCNr9SKDRd8yab+E5RneHAbmw58X3+fH2Lm79g+uMAqjc8+ntdZjqZuxlgQKu+yVtRdJTaj0fE50w1knEude80VGStIok/iD+5eHuOH/0hoRTYN6vUAdosmF/cIiNBCUUrSmbKblS/zZsq X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b7339ea2-34f5-4e07-8b51-08db8dcce0ed 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:38:49.1569 (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: 2Lh/vSSUqcnWEOqV1yYmO6UcsJlQqAJLnQY9v3xTw9pJOEG9N4o3SUSJMFWVn0ximhCQ8TMPIVbFZwZ6vuxi8w== 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,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: INBOX X-GMAIL-THRID: 1772490923815525458 X-GMAIL-MSGID: 1772490923815525458 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/ohci-platform.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c index 45a2c981319e..4a75507325dd 100644 --- a/drivers/usb/host/ohci-platform.c +++ b/drivers/usb/host/ohci-platform.c @@ -200,8 +200,7 @@ static int ohci_platform_probe(struct platform_device *dev) goto err_reset; } - res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(&dev->dev, res_mem); + hcd->regs = devm_platform_get_and_ioremap_resource(dev, 0, &res_mem); if (IS_ERR(hcd->regs)) { err = PTR_ERR(hcd->regs); goto err_power; From patchwork Wed Jul 26 11:38:02 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: 126283 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp348603vqo; Wed, 26 Jul 2023 05:01:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlGw6vWxNEc22MY7EaVBilKWippRbBTCcG6RhHghg/8GgsJljBbvOdqahgqU5x2q/PIn6d1/ X-Received: by 2002:a17:906:328c:b0:973:d1ce:dbe8 with SMTP id 12-20020a170906328c00b00973d1cedbe8mr1374407ejw.46.1690372893756; Wed, 26 Jul 2023 05:01:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690372893; cv=pass; d=google.com; s=arc-20160816; b=vW0nkgIbdZLVWyIBjCtDBWpAlucaBYvYTAkwz9ZufVpHpDEkQfybVw26bpzI6o+gm1 0Uh91VtpA2rV+p/6kLh3nyohNwKPeAbygtte6zlbvRw2gceJwqPLF/kl9vSEWNUFfkkI clIFtxtKNeaB9Drlo6UHOtw/temLS9PlT1ICkgMJKve4STGfjc+zw5YyyR+aUloi78lm BmklaAE6qJd0UKA7eKHRBaFmK5F4gW7SF4xVfHk3lJqJUgXYvu1yLhTvE8suD2yg/m4Y JVNTUCsHzNDSbMl3QBrlWQ9XvnmPQ6OGdbafvK8IPLH/MA8Zih+4BBmDjH7yyQBOaUaX kxGw== 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=ScXWB9W7vzleb/f5NZnxqisbCcaCtCHQ8TducOkU4NA=; fh=bMC5P8+r1uhJNT7JdPC950luRXJM8ZVXe+jJ3ryOPds=; b=tWMFoxGQzxNcvUscgx2hMVKl/SX4lG+VjYI10Plj+UsR2a1dyyyDP3c7CQ05k5wjdw hwk+x9ew7t49+SRgltbXw5nqM+ZmU2ljmUr0Isa50dkC0kjHioKm5LhG66wrJScLdsET YWvRaN4cQV+ay4W5KwtZ3ZrGLsABc9KwbKZJKI/j5F+bYXu9C40/dT9JoiUDUuRmWzpd SFIR4Ay/Vxg3Wov85/XmGtqygjRMO0cnRib8U2MxHbKYrsvmZHHu0itfLue/1uWzCUCh hVQ5yaXOkixs9kJAZFBAKRiJPHBDlRw83hZtkDr+bLdHAt/Cws5/LyECnzKDdVcgALcG dJ2Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=WhnIKCuC; 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 l14-20020a1709066b8e00b00982a267a399si9145829ejr.561.2023.07.26.05.01.07; Wed, 26 Jul 2023 05:01:33 -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=WhnIKCuC; 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 S233784AbjGZLkg (ORCPT + 99 others); Wed, 26 Jul 2023 07:40:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234271AbjGZLkN (ORCPT ); Wed, 26 Jul 2023 07:40:13 -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 DF69635B7; Wed, 26 Jul 2023 04:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Km/ttNp9BYwb/64zg20YVX0Sk5/7u4CEePllxtvppwfJIc6YMjb9AERCOMAFmuqL3bhQIa4wdBCxTuk8q0fY4SZ4n9scwxBCJ0WcJj02gdQ2Q6XaSyTqtmHyq1mjobDy0+/kCbIps/d0k09UOV15ItCE+JQhnOlHNQ7J8mnLhAHm/ZIjmbGrnozCbzm3r2Cg/rxjIQcg9nXWZi6HXD/JRhM972XXEmZgFoTbmEENn6t6e7tRoEGT3lh4qgBXtDLaEMTc+/hc5STwkij2fLDw/kKBCde1dm9EaQKHGZGKIRo2e58cDccPI/VyWoH67Mq3JFLvEssYWCPz/kq6u3X9mw== 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=ScXWB9W7vzleb/f5NZnxqisbCcaCtCHQ8TducOkU4NA=; b=YUYDGNSEi6lgu19JB0naYXPzB9RhUY9EGE4ivMZinYgBb0FXfQ2hf0cTrrEwBkcLnQ/LF5GBowVBmWYJXBOmowvptXl7qBzPlfWlyn5OKuf2jSQ7+59qIxiTUv6y+a8n9hmSaP9l17CdbAnI4bw6ngybJIHo0G1aSFWbXkr27mpLcP6VmXfeEODHOUsnTjCp6MEDPLLBLXT1mx3I7c5THFGyeqtoGIXUGByoLdR3bh14jecgpDvq8wKGqIrlwrO00R6Hd1rdX9ap00tvul+M1IJh1e4IoFYhWnyBf4r97J4c79yHUvTakCh5C4ilvN2cn6nDWIzWqWQMz5H7f+jQAg== 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=ScXWB9W7vzleb/f5NZnxqisbCcaCtCHQ8TducOkU4NA=; b=WhnIKCuC1IiSg3LZPQTazcVpSzlooE2Gk40hSRecIft0y+axHSDZ5RRUS0DwJF4rDX44+0p48dr6M1BPDKw3NFxDEYy6IdVAwws97WrV9XOt50MKkjYSOS3HkaM+65Xh0gOTcZlp5BeDgSVrzOK6gZyhneFsSd21yIHo8zt+YGRDx62gvgwP8OcL4Op47Y0TxAMwNcjKF3E5lGfm7klPczlUMVjv++Fn1jFEbrlrcsf1WB0bcJan4OKsF6SMYSZITa+381OmNuG5rfKL53AikEYi4FNcoJA0NTvIvBxPO3gQpHTZADq5DcdWSf5GYZpoERoXI9ezegcJ/LZU+su8QQ== 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:38:50 +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:38:50 +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 16/30] usb: ehci-sh: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:02 +0800 Message-Id: <20230726113816.888-16-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: b4f1bc5d-ce84-4362-b073-08db8dcce1c1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jJntfgr9eWHDkovjli8/ZStnNWA3wDK14I/Tg+tRjdkuKeyIlzF7QyeAOlMyGvWFmRsoiuBdLjWG7SxEafKRd4w8pcs6vVsyPZnpVjO9QJjYAVUDwwuZXJwzvKdWkXh7nEah4gTHor+L6XcmcX79xhvrOXZ1W0lg9x1o8KL0XM5k9AWCvixxwfvXoXD0deRsvIeK/3Fip9EVUuA+tlCvhUek4M71CZfhUdjvamNg0lVChrfVwvtd7cwrILCVetDd5tNiIOb7xefWXWLtzKfjPOlbslJfoHZILkKAw5x2XgRyh0+yE3rljYSopnyE9buYFtCgVoBSmLrW2o86qJhIWRnJyX3o7V9Iy+s/6NVAOms0oRX5N6sPCQA1PdxiQ9keCogOOCgvXz5XSCQoR8ukq9Ytti7FnECxLlzS4r8lsGP0Rwo/2qJkR5VBT7vGWrtq1OSz4/7xr6C0lw7KTTKxbUhDO5Df89Gx7Z5o6Wlg89AA625U+9YSjVa6Tzd/n+PadKxpYf1EE+Yky49nrJuu4d9SItE2fwLk0urx+Dnm8JdS3ytuWslA/lrEm7F5BgGjOy4fa4xuvF1DWRyTZiCPVYasgFdcnZxwEz9WoDjGuCbwdYQkM6gI690AzRgdoT8r 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: e0FK24B3RbXD7UMX6D+/6+RWswpwQL6QBL72oFC7yujWmopONO4Gu0+IuYg4F+lOoVus/8KVVaiZ+NIOqKGiOdz2v0VE2MWgfT77ZOg6ljC4Yrk1BTwhllB6HyYJs3te/YMD1fstpF1YLpxe5L78Bd+oA7c6kHx7f/WAXEW/0iQ6ZQ7o0T9em8Fn+KrD9EQlEw0F0IcL7En08jXGao4wrGzaGTOAg43J29cM33KVvVCetamhwEhBMJqjWDMa09XaSA8GwetUVMYt8bHaRsWGCbWR6qMbEP1DkjrocIpqeq+0SKIElmaiCoYQ3UyIkqr85tfZxIlDi/J5Vbm8p1VcfZ6ZNEgpRaiIeYRsR54uHlTEP+XzGyF52qx49DtrvjCQzrK+B8yirYZ9g7Q/O4UP3iRY0c5iOWflHEBTMa6oFSgzJB76eV5FtqRkhFP3cu7F+sEDs+gcmtJD1AMC0oC3Yxt7CEVzTHYB/FwIBJ9FcMxUT+w0wNaPKRCu3YP8xdvxQyxua2Ytxd4fpIx5sH7zJsJhWYnsFxc7qV8thsdoVehKpSm3EpcnlZFLgXF00VfO7rex9hizOrlfLDQC52clmKqVMXVlKSiUiYBaiuft3X5/rqnZSpQvZYD6nTM5mPCBDoAFNMZmKHAAyDDos1Ga4J0chP8HvWoIg/r7xYIRl59n7+qy862U89sOnJKMZkjCc/F86AfgRfX7ZRYZDWZr9yxufGJ/qH6vctRpx2Qxv/WKMhRWTST8fIH15W5N/ITW5qYZ1dqkhSFhdmfDCGjMUCvR9ItkjXRUMW8QfPvEX6aGlxm/8SUuqNIV1Pe8zqo+Vs4Vz1emPxWqI8VcvxQJU59cqFhjQPMgiaCYcZqjpYUPbF+9YknE7mElagcVXsMopcLZDbLygEswALB4P0jh6NIBk6RwfxUS1dzyVc6QRFr5xqLlWVb/3lCzq0tsiNMt9j5z56EbmOZSegIvbDuwp0zRxQvjyddMjBWeDqGpivcBYd0xtpzqfowPFc7vlyi60AcXiRGwj8VZeGXf5vqkqhT5H5QF4nuhq5QfqcW8jOJYrGElA7BOjB3dPL78spI0TwI/hszLsm8Jt65fyYzHnAy20yHl4aquXrbgR/tDD+W9Ee0xVhJ1/zPBIj/3qy8ENNh05NsLoCu9u4nDvzug1SanEchZC6IXzzSrAuxjvRDBlJgTKol3zknvbTZ60hb51jDb/0NgW2x7mDfcuxjXPG8G6DitGECinhokWG1CqkZNYk+vI5mxMQvWxr72ied1eSMjplzS7mx2HiLOaxJdkwEYr9jLwgxBn1uQU29/18x8WXbMXIC+9PxVp7DFD7dXngBFPYpOw0/g1t5iqEb2mXX/shEy3FV5FYB9r2DtKZyorAj2RjvpEzLDpnxKOgi5R9CQRSLfm9Um16djKUTebhZDJdWYqxdTzojuTcjB2uWlHYi7mfysrFXWpYPWSTGISmWSB/4KiiIGhcBrNYOnIxHLIMRLv3t0INV8bDNWovvuy3h80IXSDjtLgBHoH2gPKRmroLx0McFJ6sXSoFojL3pohbPBhUoupm/IOuSs4qT5WDR5tO9YtQszvl/gW8e5 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4f1bc5d-ce84-4362-b073-08db8dcce1c1 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:38:50.5529 (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: /l8xJw/u+doE73SxxouhQY1Z2LUgE1+dIfGoZg8ZHIKN6hNeOdpOHz0TOyQ883LnZ7UlAE7vGU4QMXbovJ1ldg== 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: 1772484447720030382 X-GMAIL-MSGID: 1772484447720030382 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-sh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-sh.c b/drivers/usb/host/ehci-sh.c index 0520e762801d..575c513f7ea0 100644 --- a/drivers/usb/host/ehci-sh.c +++ b/drivers/usb/host/ehci-sh.c @@ -95,8 +95,7 @@ static int ehci_hcd_sh_probe(struct platform_device *pdev) goto fail_create_hcd; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(&pdev->dev, res); + hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(hcd->regs)) { ret = PTR_ERR(hcd->regs); goto fail_request_resource; From patchwork Wed Jul 26 11:38: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: 126298 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp360746vqo; Wed, 26 Jul 2023 05:19:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlHQ+uAVMWODEELUd5Srus2C06XpM7GODniCHP1A4z7Wiku0A4qg/y2ukNedvy/Fu2A6m1GX X-Received: by 2002:a17:906:9756:b0:991:d414:d889 with SMTP id o22-20020a170906975600b00991d414d889mr5924007ejy.15.1690373995724; Wed, 26 Jul 2023 05:19:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690373995; cv=pass; d=google.com; s=arc-20160816; b=aiDXV+2+pRjPjBZynLeHuNiitVpKPAnybHcjQ6EuZ54JByN9ZukYKtjbKihTzD71iU QQTWTk7aVRIKCdrgVKjfmnp2GubvxSlBpEcpnAB12nrhJP5jW8VQbFcPE13Gce5l1NbW W4xvqT+h93Nu+2G1dMRijt2gl8jlCHiAdGwXBercDPpwAfXnGDZ6MWJGPQI9Lz7xPzKs NvCkQr470UIWmz1duh89jpkM6YwWhUFeiZJwUARtdQPCVKhyb40dBWuRvMvvVAIgywW4 /0PxYTjpPRztI4Eu2ikL098HI1nB6Jo9oUQnyuCTf0Ud8t9/XysHaH5fCTAm57R2xJ9e wGGg== 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=oHaq5Y6J4d2EPi8H/aWjaEASSHYIEugpZzwedGsCR5U=; fh=++c3CZSJQp5iLaO4rG+4om3SLiHzZNbADjkp/0zpWO4=; b=ps/3LimDIto8d1HqtsG9vln/hFCvkHSdFBhjmPR/ArNKLHNVzXmwRjkCYiDng6xf/8 T/MkLvSMrl1DVYck2WKhGZvzBoK/Ixtb181YPK6u3AyYSjFkO+8X/QVu2DeM1DHTCIpF SMvJxuXQYrIhpeOiG9wgMfo83iGJElimlUy6pDK0BVEoEkXrFTMPBsP8fTKRhIjsOeCW 3k6skg0sjZ6gdbncHsy3yXth2JwqiKfaAaFPMz9EZp0ZxoiboIT+6Hg6csfA2dcE072B By36faspRJyOj04rotSgwr3y/JhA7gCVKuN1OaUfZ87U3VB6rYpTiWRTEG+rwtDMdZxd Jesg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=VO+V52MK; 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 t2-20020a170906268200b00997e1a4b954si9566934ejc.25.2023.07.26.05.19.31; Wed, 26 Jul 2023 05:19:55 -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=VO+V52MK; 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 S234323AbjGZLmk (ORCPT + 99 others); Wed, 26 Jul 2023 07:42:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234321AbjGZLm0 (ORCPT ); Wed, 26 Jul 2023 07:42:26 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2125.outbound.protection.outlook.com [40.107.255.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFFB22D63; Wed, 26 Jul 2023 04:41:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Us6OPZIYqSXfaduTgjGpk0KgUXcWkmrvnKz45HxiCGYFRmO+PxbVNyThCOKS2WzcAGEeTAiKTQqIA+S59O1qug3Fm02zEJG1RIBY6YY8CYc8KN5FPNM7RbWMp56uE5mGK5tjkfng6wgOxlRXVD/vq9S0yDC/Wpvd9eK9r3ikH1p1cFUyDr6LgvNcJDsRJ9eDmaaWgjgYEO94J6lRJqZM8owgWYk8RJhDTHL2ZgoofFIqB3HoEoS8b71XLvFM2K93/mE9VAXdu6rFCBG1LlDqN9Q0PXtlWMXYCrRKQEcAYD2BEDoT4AXlyEUreauASKG1IXFOmx10vtL3aKmnW+Kf1Q== 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=oHaq5Y6J4d2EPi8H/aWjaEASSHYIEugpZzwedGsCR5U=; b=lw7uM7RK0xXoWOHZT76hUpteBmVC+kd23+zGGaW050ZYrsKzlpCllmjzbidDL9CXKAzlIamKIYxO/bKiA+78VEs/WkHeLPfgoqLHfduvqS+ZCors8lg7My9VOqJz7WmAHJHxGovBBYjo7As57QIWstMAM6uN/wjWyzOg44mt29VoGbhjbbag9BWaPXTIGcPDF51MDCswSLitD5S1dsOCzCCXFC9lZkAwNl5Lvo379J26tMmcpT6WnrV/0gCMtMrLtG2w3jhuikem0kxg8VkB5uQQHmjZQnONF6EHQwst5eKmf5W03Ob4yF+Tp4iL0xjvJxNbc/gb+5ukGA5QEwSwYw== 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=oHaq5Y6J4d2EPi8H/aWjaEASSHYIEugpZzwedGsCR5U=; b=VO+V52MKzIbodJa3u8O+TM6kt/74Eg3tIybSf1sJssLdABNnfBcuU+8s2X6ApjOiLwInosVxOiqKHsZO2dykQ+LmFyLzWykwYndBIv0N1tGMfQR8rQ38Xc6G8/g4CIkE8jrR8z1Eax7P2zyKuqIoc6dai9Sbr00HoExux9N48P60UGb9/4VHsvYqfLVXxup5RIAc+c8JoqIGL7Nhb/ySi4yMFBwrqI85t5vQny1LkCIzRSiiwPU2oW2HEyl/7+cNsW+zJWFzxPh1AMKcOByrkSvfdHp6fispejcdAKG4/YHcnTH22W6ws6l8YAVktR+Icg7JX7/2so8pqW9FOJ+dQA== 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:38:52 +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:38:52 +0000 From: Yangtao Li To: Alan Stern , Greg Kroah-Hartman , Krzysztof Kozlowski , Alim Akhtar Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 17/30] usb: ohci-exynos: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:03 +0800 Message-Id: <20230726113816.888-17-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: 40d80bdc-55b9-45b8-bca4-08db8dcce2df X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uKbsr7/y0ChOi0kZ3iTzrhfktCEl6lQzvkTWSPKFh2M/25E4zIdnO8E1oAqzThjMXkz1spXXWi0hXipps3aKHefit+Lzji727IqmMEfJ3a+XVqPL0ZXq5MjIeVtXpD4tSzwWMHaWJCOpT89czNBmDItuX52RYyGmiTu1dpjnXiRPX72OsH3TUGR8MHKiJ2RILlLitJslO2LQZo9zfC0n7yTuL34YynGtbdqHkNOsvLFWmi5QpiWbtujWsg3R6TOfW5SYc0VA6X4q5CkOIlAmBy3GaZnZbN7Bj7PMzWvY44pSmq9rnmsSgfYxE5pDqd6hkjheX3Xf/blE7cYuM8bE/wzjuMHa8n47qDeRsSrRVnk0jp6L6I+7VWTCU/aIfOmGZL6jiiuSxuY3PiwG4WRyB3EiRQOmVuzx1ljVDVDz2kqnFuKTCCzMQz5v1bnWb2AFbfHSzoFtDlVZfzbtT80Q2hkBlf+vwLlUEQd5ehzzgX0LvntGkn+h9xstik255NWTBKA/omIybVaXHedZmSAn9niLT/P2ih4BpCs6nzCdduGr1kpWgoyC0HwNRTveo8HvbCyzAblQw37ttq15U6KfDXXZkXE7uBtukCsD49wN9SRgjGQsuw6E+1WLSzCy35FB 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: 3UYhuI6jvpT4A8GWYmVhEXUSEQ2TYXsW/9obrMWVkLvn9wuDUk98MbOeGWM/R3sJGLzz7w81CokJzFzMPBeSnt8j+YIWF/yNA3cgrzj1PLqPMs4D308gf7RglTITn3BqeQKHG69RzT9ay/ziGq9rXAKK2MEpVZUz+h53H8O3KZq9/XxO91pXp0J1A0QhRgp0/oSFl9gI2YJfpcPAGSjemJEAcY7Y60kAc80lUTlMhjiUaRhm840CStm6TLXqe8lZs1c9NcuaFccZGqmhzJ3PXz+EYi9woaqEFMIR3ew9lf3vrcOBUiv/Zsp4SAo6inOvMTc6JImAoa9Z6Q72Kr+Jk1MV/OWvAIsSSfjFZmHELjbnBoLqDViSaBvbhCilMHjpFUKLtRbGltHb9pvjUIEL20E94bF8yWyMq7zOwu0UyTeH1cVm8kNWKyUIzgQfkqfyuckfJm3BG9aduSBVI5I1cWg+CzFW3dGdqchOvzuHtTX9LthMWKCXuitEsmGF6BW+68udx1VZppDggenIWqEGt6EHX1lgv+pB9RTjEMhhLLYAzF+Q1EGbRCM4Re9nCcq1NAT1ezWWbVhuIGhFxKaLsV0JL4He+3D1NiWil/2PjlVfRybBpQaFe96iUZuEue3tRqq94jvdlbCuWeN2q+quhA3bbK8wfksaqdZhUF0M8SdtdaovLTq/Sp4KcQu4ugzpRd45Z+gNvMgGvAfkmcozM45uB+BGbDEx7hlcNwtWNlkK1s/hj2gbc32/8t1hrJJbGNDlIc+Ff3KYBxhqsEEuvif1FBfduU90qm1Fd93SIRKyXi4UowjqE1peFZCkjZMR6/wgltO/+PxBg7lJW71pWAXb+rf7k8ihSvUp4sNHx2tsJeOvgTDaylI2sToRTOsHG6ke3A36LjNiNr6O8xSLSoPwyCYdfid60p9Psb1RumTa6ILnpnfAT8clBB/vgiLl7Ki6whRlh7BlRQhPYckZ1tvhCCJX+4xmx23Fv0UlKE0PCfFHenCv9L2BGkbl/WXWFzHx5OPNUwqo4lbTHFFTTRGy42AJVNb8KJIZkse2nDer1fIeYp2GXZchBK1Mblf8kTFHYdyaDai9KVuvkEYmkGkksjDWld9JMd3ihfuqIoRfjXjACZQqstMsgWX3ssNUUtphlNdEW4WSSB0uaYEQqakJGuuA8WEqf44T6rtqmbR85RSPqQka9SGgbzMBfALruOfQVjRr4LCNEdx8f9MAOaEtdv2LVifvyFI5RBrZv2CLh+zCL/DhE1e3ceLKLyMVEuICru9mt09JS3MLY098SMNtvV7lcSo/dV/RX6QW5Kbokg2qj5gXphMnO71sLeiIowrDm/cH1QVvmG09DC+g8pAKTWusiX7zdtIN5VCWDnNZuYU3jXcEYA3fkxSiROFP5ARpZr7oEc/jMTXHV/ZMqV58qath+1g0NZFafAMtZpLyI3C1HXeMjDXf0TXsOT+i+pGKmnrxwztmTfJK8AP+yogAjBOm9kIckIYHy0lSTruHqW1yjnW7q7VQvYxD0M5wteVS6E0kOzUSps0jMR1ErL4x1I/6LR23Fno4kKhY95nRfPoAfhZDO7Ej/lZW+5+g X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40d80bdc-55b9-45b8-bca4-08db8dcce2df 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:38:52.4170 (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: bRNWanw7798jXNXNMmkjhQf83PRUFjlRxatiK0/Eto4S5JCst08G6iCFM51303O3fWYlzdv0UyqH6szN0QfPAQ== 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,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: INBOX X-GMAIL-THRID: 1772485603089277975 X-GMAIL-MSGID: 1772485603089277975 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/ohci-exynos.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ohci-exynos.c b/drivers/usb/host/ohci-exynos.c index ab31c459b32d..20e26a474591 100644 --- a/drivers/usb/host/ohci-exynos.c +++ b/drivers/usb/host/ohci-exynos.c @@ -149,8 +149,7 @@ static int exynos_ohci_probe(struct platform_device *pdev) if (err) goto fail_clk; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(&pdev->dev, res); + hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(hcd->regs)) { err = PTR_ERR(hcd->regs); goto fail_io; From patchwork Wed Jul 26 11:38: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: 126306 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp363513vqo; Wed, 26 Jul 2023 05:24:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlF1d/DsNTV2V+I8F2QXBwMJy84eOydeFeElTQw8B08mFpu7cZwBsQUWw2fehVvPOUClZJ1k X-Received: by 2002:aa7:da14:0:b0:522:5834:d2de with SMTP id r20-20020aa7da14000000b005225834d2demr1346361eds.8.1690374296690; Wed, 26 Jul 2023 05:24:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690374296; cv=pass; d=google.com; s=arc-20160816; b=a7OtXehiGalK9fV5sIt0wKZb3Ie/j7FG4zByjG6L00ziXmRupMmK9L7d5aENRWq2D5 juaipvedA1jfxwnzLcfwgKb/60b+qxlzq0qKeHM05KTe0nfRKDarDTqEsvzDKg+eY+bR 02/wyamRpuQVr3Td9FUbNO+el7leEVFe6wteV+NOi0b1b1Hrd2D6Sl7DEC0EMIwN4TwV qaQiQ/x6xjcrqJtxnhuWLMtR+rs1a2iG4T0Kb5h1YUtnjZdl86WTqftdwkpm/NZFgCw+ fwqBuCTO5Mzh8FtEcW4Z1/IXYSvjMLg0ft0+8sZ1VA1EIn0LHYqIGNecQ9Hd+PvPIk/1 3FgA== 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=J4oauksdotFXSxZc5S0ZaxH/Wm29D13fTOskEePvOiA=; fh=asWmNyLUo2fdhT4xOFc3PNVSx2FBPPexgYKNjjoF1dQ=; b=v8nBRzQ/sppMB80fccAh1Pfn5+tyck8LoOYQMlYFan/Q5hmI0AzQkwWLHxSoX3Ea98 4hDiCxlS/QgRF/4fY5Aq0G8Up2MxXIchQaOIdocpYJE27ikEMwdixLtlX3/W7dV0DtmG J9a1XQwXxfofYoePz/oecCjUCIozl2/q1C8Zgd0wH1cWKbMbQhW0OR5Y43xig9tvbTTq KMjXkTaIta4cFjLiQ38KOM5XcsIAVzRucoL7FirroEcEJI4f2h0C3x5vEYktd9aN3S53 8J74Rdec8Ld9BOkSTYwP4aUltRRBXNHXNM9/45P0/+7ncl+X0Dx7a/naS58l5dS1+0Oc TNUA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Lq5KeOpt; 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 v5-20020aa7d645000000b00522450bada4si2604261edr.660.2023.07.26.05.24.32; Wed, 26 Jul 2023 05:24: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=Lq5KeOpt; 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 S234199AbjGZLkS (ORCPT + 99 others); Wed, 26 Jul 2023 07:40:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234102AbjGZLjz (ORCPT ); Wed, 26 Jul 2023 07:39:55 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on20712.outbound.protection.outlook.com [IPv6:2a01:111:f400:feae::712]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6893269A; Wed, 26 Jul 2023 04:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UICNyaPCjg6bT81+KitPtFimR4i4lbQ7cZPqGbOKRysrPDJUW520L67U4yUr+9/J6HIxAkfgfdhP6nglzyR9Qia/hGPL1fHfwveLr3WkS0LQP8+Mf3kr7QMnsCA5s5rup0+VQ8IAI3+cLqLT/2WAnPpLCNiIFxqMD/714k2MpBxSFLjlxXu+khSQqdNqfyMIa6KDQOd/JQA333W69CNbil6cdB7ZHb3hUF48QCQ1GjgmbdOeoQZSyCHHW+Hkg6ORSKNGY3+MzT4J8GRyqLlfP2XPcnm2hjZGRPWMl36xXNBtr7k8GZDFE7EVwXe1Vh9v/bRWzA6oRjMJscgeccks+w== 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=J4oauksdotFXSxZc5S0ZaxH/Wm29D13fTOskEePvOiA=; b=GAR4rgP+RNAXeajNzdAz+Aj1vl8a7b1dlvqSLEA+XahTU+C3wzyBLYUNcoratrw9G0VSP2cBCjhWKjOyU3CWgwsqeG0c2wrTMu1TNymfkks81+8uOFWKIEAL07EkEkC2kgeetMdYF1PiUHbzYSFmAq2eIxTZTsAwRF9sFPlHidIgAPwEouIsJwfDCmY/tftsiGB4qPuOv35SCAL71C4KRfxu5j+QBJUgpZDWjjK3kVuDgB6NkbgRoNR4PvmKrcDa3Z+NLfFIKyr8XYEQAL/2eRdE3gMNPC0Cj98qvkf8hv3IAbZE8YMYFDUgxtfFnrk0RH4qcDFeeC6yFzRmqZuVxA== 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=J4oauksdotFXSxZc5S0ZaxH/Wm29D13fTOskEePvOiA=; b=Lq5KeOptWpTY/RRdCB3pW0ZLeB98FyWZdV4xoo/vKkWldHl9eDuQn+9sDyupSZPZ1NRbZhvt3gR9W7NROSXyutQT0i99Rzt67Euh3CCnMUkZCHhRT5M+MyCAqVAyMEd6Ne4gVfj2SbyIicMkj1I04CbwcW2kywoHT8/7GhF1LpfJGRH1CYmpUDO18Zu9xQMChQ//a1pYM7SHo15pG2TCKF3hJuS7KnDlagsbmyIWQMqOkjFk7qJZZUepi9vGOVxcvzHFySRHaVl14tJHnTUVvCfrCfIl80mUVcO+HMUwdRghkfDF2R3UDF+4I23VNesg2gXqSap2wtdJ57RaqwNM4A== 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:38:54 +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:38:54 +0000 From: Yangtao Li To: Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Alan Stern , Greg Kroah-Hartman Cc: Yangtao Li , openbmc@lists.ozlabs.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 18/30] usb: ehci-npcm7xx: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:04 +0800 Message-Id: <20230726113816.888-18-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: 76385692-75d3-4991-b120-08db8dcce428 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O4j8SEaswPAW6dvm3pS4oDYX79xfmkKvPcFPsegPMokNzFJCdF9v8Lq5OKb5mS3Py2uSXpFO5jnlvd9kvmRKg1lWZZdn9psQlZPT8BmEKdNGZ68kqpfHXEwYJ2AikhtXEnTadjVkJZ8Hyj0HsplXTs06AJwCgQI9ZKnb7Mj4D08LohsvFK6hrYVkAsM5grYH/D0xYAFV0lkDK1vXY3BONg8+q3m4pOG/wb0dN/I9nQ99Zf+iOVzITbyBjvHaRdshA4XqveBw7Ykf+GpSgt6b3BzLYGtVAiOronu4pUa0iy49qio6eYdJogBFy+ZXG9cbLPDy9uXPp4h2/MCr9VAU3AD8ww3OepO9+rxX2AvbhnlDcShhpEaVgQFqYEAHz/lvBF6KEq4Pz50BXit6DEUC9X+6DuQGqfhe3KdmvTLpLJHNzWxKOSXLcfCnkktOX5LMRp/AipJVksjdVYJIA4Ji7DYzw2hF7BHflEARFcNXZ4kLdPt8JcZz+efBye31pfMtbdSfQlbwxCRWkzcBO1lHo0534TOc7rrqFoqglyJ0VbdrzS0GL15GyuAsJkWQ7a7vI6+sw/DE/LEozNgKfE7KprAZ2s+3DeRILEaFXz+zk8m0zGEs2cPiu9pabtN60Wpn 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)(7416002)(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: c1Fhl2a+ciwOpdhV/OyT/OQh9IpRX29xx6KrDP857kdMclanXmKOVUj/X+HE19RV3KgaFqbpSP6MJv8OJHg5P6S6w4sYVyPx/Eq3+BCBScgUZpcP6u7ABOqcnx2XnuArLeoBl9/J3IUYoBK+Ab1cgRPpyz/Rk2Reh/hk9puqcZ7a0N5DiBzXKLOflP0RaiOGeOzzY7nA9+giYB5TtF3n3zm0pkaziPzAIbl9JaN3HXz0+8DR1VQ9e7s5CX0f2rCX2O1ArM6WbJV/dEEppfW0hO1dMlRqDWKdKNpH81CCUH/4oHx4XezpehtISG/9G7z0ArSBNdh9XmCG10txsHhfxOimrCvoUIARbhoPVM7sui4Q81R6TkV96ZJsskI6ytM1c2tCyfahGHW7VshhyGF5awvtSSJLaCYcZaHyDMl+cy0WOegHuWzPy+BYMqvkkLXJqzuHhCG1RN2Nw92RYvSscQEJE/IaJ+hp8AMP+2Ul7qlvfjUDGo0GOm5Bek9IZSVxzYYVcBxlb+n1jlUIJ3L2JsoO4zq7tX+OfNRdwiLBhxt3YIM5SguNOimpvxm6vm4pBQ9HizUSqdGJJAuiFEMkcO+G7RW3OXJtHvxSaz5+SYdzbleXWryu0jGnTRjsGBcaCgslE9DCOEUnVyGd98gZzKUxoS/y5QBGKZhkMPd+FcReFcNnC6Y+lW4zePpwjUr88LQKedLrvP1T2Y2oD8TtbEQgCG50wmFt18QOTOHrf8JPx60D2SHkq+jZexupaA/AS118wJkT/Iy4itLIK20zlQsRqdi5UBTFC4ztvzw2eCguCort5fJl8Whj7/jFeoJ9O+2XR63Ldwa93Oi1PPcKH3X/fxD8sJ5olp6S3iw8WGMjR5mSxarffbfTs73wyfo47NWaCosiV5JLCtWeH14LWpCSyT8LYkOGUh3BbNOX0MAJ77KCzm+9g4T3CQT0fSb9yz43OOns/OBdEKWicPOibPTV2aLGwybKhU9Rxz1Pd2wRIIMvrJoVv7y4wHiBtQI8zg6khnzan/cnn04pd60ETMU3VRETGsF6v3mCIcksubLXvgnnaYrBztxBx7EHFDCyQ6dmEdfbflyeALY1eolQG7d0S5rj1qW9whknb/78yWnku8QzY5ouHxlZlh/yBmiF2rqZYXvigw2BFJDQDaNeGBl6rakbxTcw91Kt4IXv/OoHczxJec78zm5o51ESSj50xQr2YbQyCOoERFy2KYB48Kq6syWrwfZSOedfsfnkUjVY1wyvGVm0Gkw4qslh529lNb+aECwlCZM+EWk8UiHXY06i32O4x8uVpNR1vLDYJcmPkOgR8iQ0T3WRpnRowxI2V3H7zBFvf9O+/kYT5GVGbO7xo8xozuVyVlcxLgaLfWrTskTvx2f/aUEl1GHgsETfpBfcpnIzTnPnlUBqDaVIr46twwTqnSpWEym6QvH7VmJpN6JeZVORVeXtU/1JATFVXYPDbl9SNBO6M6jWfQ96Qr0/JmovssABYcSYsNdOEIlZmJoRl+VAbVgdf0x/TIfIZb1JlC7UODOAkkJ5FStzuMxnItp+SSAHvAp05z6ht2TJEm6GeS7IM4syP9nuTuvE X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 76385692-75d3-4991-b120-08db8dcce428 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:38:54.5747 (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: HzOnfQM1FqOUJ0G6QUjoNET4ZmnLEkghizQ2mWfCUHoLIFgnN951Wuu8NjBLzk/kAqNjDbZGc968+L+DTzFa4Q== 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: 1772485918880292537 X-GMAIL-MSGID: 1772485918880292537 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-npcm7xx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-npcm7xx.c b/drivers/usb/host/ehci-npcm7xx.c index 0b3b3bd689cf..3d3317a1a0b3 100644 --- a/drivers/usb/host/ehci-npcm7xx.c +++ b/drivers/usb/host/ehci-npcm7xx.c @@ -79,8 +79,7 @@ static int npcm7xx_ehci_hcd_drv_probe(struct platform_device *pdev) goto fail; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(&pdev->dev, res); + hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(hcd->regs)) { retval = PTR_ERR(hcd->regs); goto err_put_hcd; From patchwork Wed Jul 26 11:38: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: 126278 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp340584vqo; Wed, 26 Jul 2023 04:44:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlFCq1IJDwcX9eSwyihO1HtmYlU754gxSMMgUBqYaqVArZwToFsdYO2Mw4G0bYw+ny7AbA/E X-Received: by 2002:a17:906:3f09:b0:99b:c0da:5028 with SMTP id c9-20020a1709063f0900b0099bc0da5028mr1491264ejj.62.1690371845049; Wed, 26 Jul 2023 04:44:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690371845; cv=pass; d=google.com; s=arc-20160816; b=029uNJk7gD+47cCJy/7/5w/tWumktmPfatf2oxzMSpMIH4lWJBGJmdFUxdXzlH/J3R 6qYQcnhvxbEG71d9MzSnNGVBzuDILNYURRtB6OxnId682t11THiDCZ//edAm/B2nJg1y Fzfhtuh8Vmyf2c+19ZILdwrUxRMOOe9HjKOFRFziBdzTP2LSbtzHYqCqZTHFW0qXTeFN vsAs48Ox9zsJLBrahW58iwPOz27jpzwip6Oow3LhKRkde8IEZj2ociex4t7wg1h0+BHA scgS1Yzk3NXO2ZrGf8nndTjl+RWKDg5NHINAKSq94JXOYvSQzh6wF+psefi06/ogL4V9 vBnQ== 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=gEqLmhRkcdEd8su+d1qa6gyjoGA3Q9/s31q63uuIvl4=; fh=phYkVgbARr350kUcBkEx/XKJx5ijTJQ41rcCQu49Y78=; b=SdW5PSkDq0++NBDSwsf6EsSn075wMDdyEtULIUpHOiWiQSUTuVHPUhk8XAirzSTne6 YVBOPnGpXUnWD3Cv28CvXOXXLZBFnDddMwUKVgtDVXJwiOIoo+dJs490VtOIeZXuiv5z UCMYtO30pOisoNeYyqfWHYhTUZjaoSXBUzORMUJDuZFTvjQW/THAt9Srb/AogvYdZzFH fEX0WIrlMUdGsE3suXV+5aCKL8j89UCV8p3k8yWOJh/qF68agcxdcyI7fmTxMqzeXYOo A/K9plsgIUcn4ejTrTpiHJyiK+SIdGSYOGvZI+t1PQjjL7ofFVay84+sRsazZOdFYWET Od/A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="Ek/CflMJ"; 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 g2-20020a1709064e4200b0099bd094903bsi12082ejw.774.2023.07.26.04.43.40; Wed, 26 Jul 2023 04:44:05 -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="Ek/CflMJ"; 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 S234279AbjGZLkp (ORCPT + 99 others); Wed, 26 Jul 2023 07:40:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234102AbjGZLkW (ORCPT ); Wed, 26 Jul 2023 07:40:22 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2125.outbound.protection.outlook.com [40.107.255.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 074DD3A80; Wed, 26 Jul 2023 04:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ENAkyAQJqVBMuo5xFjgbqoSpmrqHoG1l1AG5Wi11zCBbcMpcJva6as4nmGLhN9J8gJDv0/qMv2Dzfxx7adnoVvopCqhUyXKiLRJOf4B3KJJkwUWEQPojraqt3OsEyCCWMbcflTgnRpNbReRF2Hq1AhH++ky1/oKb+WwG+uiAx2WWC3cTYSoq9clkhK7xZaWFlXqfeujcq8p5NReL20/G2DXABizm4/xnIeVyhE5xfptt8S7RLu5pjDVXG1j7fVDbDr9cHKFD3FLReR+J4RPCmsyKEZhKlkhtZ+ZPljFcpz/XhbwV6p3o9gVWFK6jYTwKsDXhPiNloVlAGiTUeK/I+A== 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=gEqLmhRkcdEd8su+d1qa6gyjoGA3Q9/s31q63uuIvl4=; b=AZ360VqkLQAZMIFGIU4zWIe7zgw7hnmOuK4kclKVZGz5GulBEam5Or9+mDoGczZ6gzD99tHZ6OZzqPUTV+h/5lObRcxUvnz4R1LTpgkRnWCB/1jusFjDaN8WlOvDZkfkMVhjwthv/Rd7/8nYYrwJyx5KwCsJQaVtyQMhO0eB2m9CtFNoCtFzFO7+EAvGolI5PI7vjghI446xu3KlcETQ55B4+3zkikNcsuwOQXS2IJDSMyV49cPmEvUDN4vvNkB69AdH+zleFAj/zus41LBTXWO1/7qL65R4h6p6JdAegZ23UqGfkZJYbRoHQjK+xc0asy+LJbQaULLaREbfHWxu6g== 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=gEqLmhRkcdEd8su+d1qa6gyjoGA3Q9/s31q63uuIvl4=; b=Ek/CflMJdMRjXmcZM8wl+gfHQstk+Mc4975ActrSbuCIaxKFJATEWdtUkVaee36P+GrdviROoBDlUet8tYfuFqaVMoypNM2pq/aCCjQ6bn2sQxzhzwoBcMXEyIumumvElx2IYGc0YFMY2Lf40XNwuO7OZ8H5YOzvFiY7MRu7Yxz1T4r9Z6RybZxhut+VZJpA7LCRP3pUbPyI83XWTPqchWLFvybBzcwSCh/sklM6Z4WMRadGRMZEZS9Yrnd6EM+Dgpxdn8lu7kREJWK80n/Sm/JdXH0DWZ0Ps1eK9ceFSoNro5J9gwccEJ4kgQMrkUrukh9tehkuc+HR4NKOsI3E2Q== 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:38:56 +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:38:56 +0000 From: Yangtao Li To: Vladimir Zapolskiy , Alan Stern , Greg Kroah-Hartman Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 19/30] usb: ohci-nxp: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:05 +0800 Message-Id: <20230726113816.888-19-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: 46d13fee-49cc-496a-fbb7-08db8dcce522 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4rmRPyfu96d3Fnsd0rLyYjVacSQayIIKxzTAETJF/y22CcnB2AOlsKRvk/M/nZlzOpV9cq4od/UbT9Etyrz4CSmCs88JhoNJvQ3dtmRJeMDVGztvCKq28Eez83cAKe92KYqlz3sdosf0M5jkTFztw0iYkHCLoZN7FAy7Bc2wAL4UBdhqgZE3rcZi251+yinvi/wwjwSC0N9JS9wuos0NNkjW8crRfNluhkklY7lAN2I+TEP7cjLDEk3ZjGqelQEvvK2G0vtKiCGFztiIA1P0QupISGdHvLpgeSkPTqhc0keTQH+EuvLLFGG4GBs+w2lMdLF1W2zL3YrwclZoWs3qXZ0k4WzOF5hW3DIsxWHmr4Cgy/44yB5AeLlI28GxPqGmCrzjYczcJZcp7ghZwndeucw50wvozIrzU4PqKksCjxkQBWlzJMtTSzaGgzcEtbH0sqV+vpBbqrMGEc03r60UQOZE8Qs4Zw1laL8uNzVGJ8AYE9PftvFGC/OrYc+YfQdWzI/4HnsoagXoL3GF5+WaOcUHQD8TKx7GhFvMHbkPx+Lywb9PbE+yjnVuwys4bfE7Cwe64i6IsFmi9tx48GKpnk1sM3c/mqZ1AJQ07CYRT1ojOs9eI/HslhfCj3C68Nbt 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: Xcrk91cwWyGnEsos2m9YILslgHyo9s7cfbwn+7Gt3ENdXHaHt3Plu6xU24qac+uoK4yw6fm78RD2mDoyaP+EilTc2Gq/kLGpme8vL151LxiTx6CB2V9kRsm+FTt9Xa2JBlL3YYAheXtr8NDJl1pRQHEHMJklADurB7jKl38IBhzXp/WZ5AzIzIRGzBtEZlQmCi2F9iPZBbiICPOjJKZ8LZKBKsIILXW4u0DlSaaA2KeHAKWFL8UaTXMWa4FzbOAlvwJ1M5qm5dWDgJ35wv+AUc0dRsHkSvAL+jav3k/R6Dd+SkOIrBPqTuAfs6BMrvnCuooKCsKB8J3NY7gKPo1efBnOW9HZHxGDwqDWn/rVDPzepCsZzz+EJx0dGRnzPbUctfs5xa3yRIxKfYRZDsupvMXkaZ51LCMy9+1eKBXCKAnDCmskyJOSCBoxp5T3AaPL+v8PxcRqisgr5yzebJOR5r2gkWr0msXs+S8Fn7rD/rY76sQLrzQ/3kfndmUsj+4OxeViA2YmdDYb8Q90ZioySUM4pXdqqesj8MjQrINdAwNNRDQxMDRQf5iWK2NK3N8Qzigv5KAreF3Hs7Uulaoul3WRDkJPW31oLGeRet9KeuCYb0M/1XzA+N9EGNCFEvQPsNO+beYcIbavzTIONTBJRneKGwMVfxRfw49GMenBJId9oCh1+UgLxor19oC2UaZUGdeA1x/JzsXRXSS7ynko0MyqNfTnR4GzJJpAg3XOWe6FqH7CEE+rD4y0/NEo782SuALaZKB7p9jcm3i3/l/JrQMx9jzWdGcZHZABHiMlaokE/Imbm8TixcRAMFuavFQoI6j/hYovfW08f0jjIAI6dySyE4l9/cwxJl5fdf9jbR0rMnb44uzPuJQhlbuQU34a1dnZE8DLQgxSD4C9HOoSv5+lubdP7p9dw625R/d3iADTg2+YTJ6S+LNSjLAoyHDInjj7WZ+DiPE4cGZCYJLEuhBrXQX0XLRgVcnO3F3BWt1rMEltQczzBrrBMSRKw//UXxEy6dtof3mp5kWyl2zSvOQ53pcRWsrf7fZTe0tvIoPMYiZoHijUpp4tzLmI3hrBNTLd4zGMmaG+VFFDcM4Cf7e+lCWeybMfO6exXrDs/q0zRDfheLUlT4JYWBSXOSmlySpyX8iDo/UfGI8WUyANvg0KsUjpE422/FDHnrhPU6XHIG9DCeEmr4/ZuoqT87wY4qqublrSEXz4ktgvVC8si8JW+eOs4hMnQQnodJMksS85NnVRFS93JDi8PS3M8aNrUoukxLU0gjuVvU0zkKM+24+rRAueaRhaSNAM/E4kgL6etH1jJhjG7CruN+S9U74MtlC6p+h/ZudQCvGM2bQXTdFiE1Fr2e7iMLT2WeV3eSKiflVcLlAhvy84dlY+MaxXPg/0Zs4+w8bIl9AeQVtyD7QJEmpSSg5cMCuANSZT2ELZvsjjnoyGZThLm1C6ote8rPsZzY+VdOtuXXaIaeHPnqnSLukTq6DZtuVJoVbzoqEiLOTxdeDGKfDmstyeKYZChMJXAHEv+V76jnt6B2CO7vEbPXOuRKni6r3Uj3AKmSYpNAnyLTEzzYU9qJZmpFm6 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 46d13fee-49cc-496a-fbb7-08db8dcce522 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:38:56.2126 (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: CWNgcza4MtvIW2cSuVl3rm8Wpc5HYFLpib39QFq1ih4qSIqKaXmL0GvKwQ+EG/c035NbSfUQPBQd28WRzf+p1Q== 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,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: INBOX X-GMAIL-THRID: 1772483347410105828 X-GMAIL-MSGID: 1772483347410105828 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/ohci-nxp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ohci-nxp.c b/drivers/usb/host/ohci-nxp.c index c04b2af5c766..8264c454f6bd 100644 --- a/drivers/usb/host/ohci-nxp.c +++ b/drivers/usb/host/ohci-nxp.c @@ -202,8 +202,7 @@ static int ohci_hcd_nxp_probe(struct platform_device *pdev) goto fail_hcd; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(&pdev->dev, res); + hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(hcd->regs)) { ret = PTR_ERR(hcd->regs); goto fail_resource; From patchwork Wed Jul 26 11:38: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: 126292 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp359344vqo; Wed, 26 Jul 2023 05:17:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlG83DoUwA/VGXBjOz0krwQXAglnYZI7WJMT1XrK/5undX6MTc0eyVkeQmR9eq+ReuF9WXh2 X-Received: by 2002:a17:906:7a57:b0:994:4e16:d430 with SMTP id i23-20020a1709067a5700b009944e16d430mr1743801ejo.20.1690373852165; Wed, 26 Jul 2023 05:17:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690373852; cv=pass; d=google.com; s=arc-20160816; b=hwkxlhBLZ/2r8DlF0Nx8/cOYRWzoLwbnL41gri96d5ac4pBGDa03M79U8sFL85J8N6 koSOMgxxkeKzkl1qR3JtxmK7sU4YWvr8RTDzhEYjiVSI3e+wFmqzE3Z8dG/I4fWMZb5w tTdUkl+f7Ezvrttvg1lTKWyvnPrRT9V+QrWF9s+zxNo9F2TnxdLiSUramApj/koFRgcK TwTADCTGGcmphrj8mmrGY5zhpn9JNpIxKJQ5n9D0oWR5gxcMiWF5TzWu/Ng+ljY/kHlm x118IPwSDHm9pB8kx1tZ6WjWa7R1/zInwsnITNBbH6YaEcbvQBzdlpFpjf83Fl5lhQur 5Ruw== 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=cLa+BGyda8V9euB7oiXve+U5NKobynlZzi02pY3wUuo=; fh=bMC5P8+r1uhJNT7JdPC950luRXJM8ZVXe+jJ3ryOPds=; b=YgPtN553YxL7hfb5MzNdNTOwUAiVr1hrkts+9HnBaClxGP46p4E/OJIZrX69kJcbJs sGwUaBeC2lXlDoQvs5SwcdVBG9Y/7CBF8TShYGHzLp1fy9knfnjN8Ht2qmPWKVsbNvbL WqGW4tHVkknP7L8leaJHm26a/SVGzwoa5g4qO4iXEEjMla35M4b0Mw9QE/SDdke2fwyo NsGeKS09f8vAcKj3ZeYYtg+8euuqzo9FbNDNAxdVoSe9pY7wvg/YWHIHTPe9BflUhS33 sW0uO58QfOC4/LxPS0JvXmF6L8e3WV7xtdZWvmKEGeI1nKjjOvARodaOo0RF93d8BsAc tWWg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=JGKoPrhw; 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 u15-20020a1709063b8f00b0099bccfc95a6si358780ejf.634.2023.07.26.05.17.08; Wed, 26 Jul 2023 05: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=JGKoPrhw; 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 S234017AbjGZLlG (ORCPT + 99 others); Wed, 26 Jul 2023 07:41:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234181AbjGZLks (ORCPT ); Wed, 26 Jul 2023 07:40:48 -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 B39F82D68; Wed, 26 Jul 2023 04:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O7WkFC/0FlHRHerLqzYjQmDKhhN4DkKG0J8LENhgmTVp/el2vs3nv1N1YRbIV8ecJKG6OjTtSgRF3Esov7URjtm9wYpQ8azk/TyA8N5itfDnND2rlJ4W0KbzlGjGwVQonGpuojaY/BXXvPq2ST6tTJcJ3L7UMyguMcgocj7hySmsNzwhNHL4DVZXfgDck1dIFjKGqS6ui/Lk9Xr2XbMa2e4rDN5JHIUZM12Nip/da8fClYK6kRcbt/05NqKLgY7difJagRh2mDgvq0Ecbtfu29Ui9J7H90U+C4p5/I/fMLZPTTW+LVCwEg49FWkYeH71NRKaTb+QXicjONQFR7PRYg== 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=cLa+BGyda8V9euB7oiXve+U5NKobynlZzi02pY3wUuo=; b=N3kbcLH0iFeY6fFvYlS2jMpON4twDlRe2/8OdRujCTgbo24t+0I27+F4wMOSV9LChuE3Vd/WWVYWGLEtray9vqzxflDjdhkSi9zpNQoT0xE0kPb99h/ueYu5xyEi1nsHwU3IIOIsWe1b4dYKYK53n8emApFQP3g0e03tBvPJUnOh5Jlg7ELpiExhjWTZWA9pBzgRQV4bDZ1WmoU5Jxx62pwthiUbpRjNMwk53/mNIR9uZDEcRWUyN6aivTx5orfduA7zrY2JD+gbRc0fg94Yzg0a5put/DEAHfXsyx4m3Ja1t3Y53VVzC/B8tXC59Dqg56EnC/9AOibDi0liXOz84A== 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=cLa+BGyda8V9euB7oiXve+U5NKobynlZzi02pY3wUuo=; b=JGKoPrhwsUp/CcgI80Ppip1SqOOjMaH2JJf6KuAPlR/juMiw8yUUcASQPCI645dlq2dGmL+/ag3smzK8V7yEdWwJy+Vd6zifosbrpZ2j9IE2qM+ksqws3ySOrFgPzqYJnfaHxQ7k7b/FQz8XMfaw3sK/RaTttGkfonNH7dkv0V/3guP0xSlBhcel0PSofcxWJUXseL6jXfkMA1cMyoLSFPrqUFx3MH+7SiTF15uYeKFhogLJ7HnUOsYgVQVTTpEumM4USfzqclzWPBFDVzuZSjjqVJZmWtjAXmx3ki/hZj7z+fy0CgmC3lspIaJEh04cACkOmKDdcdbl4FNXKmEUJA== 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:38:57 +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:38:57 +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 20/30] usb: ehci-orion: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:06 +0800 Message-Id: <20230726113816.888-20-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: 9d4a91ce-dba4-4eaa-e905-08db8dcce5fb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CsEgyPCVRf/vQ018vw2dNf4xEwraORzVah57eRxBz3zDbIg0SA0xR8SqeRtfXkr1d+YTuCLV5grA9EZs4sIfkVztsWuzMo0ucvkutUH356um14P6DfzTILbddBqsGHpE4rZ2Ipw08v5Pv7tBAIk9ObKob9wKuAU7HmphAu3B6QlHXU3VsWcko35OTF9E83BUG4V0Bd/h+tQC5akgB7NdtMsgpkgZ4+tf2GTaFE31/EPcIRPuerZhvKdM9fTtMVzsvAU5mySKfljQe0HlULpVZUDCVyofz9M7+THkzffUkW7th4zfaa6cb9ULWrO3X1foeQgKSXX7H9ikwjpaP0fJ/f2NAev6vskd9hCFPAC27BaD/aauEA1MYJakcB69KB8lvSIcjODpOcinlSwsNUjpBympRHLycje6nkaWmthgbEzoSy8OExWxE0j+ftCpIHEqEdcJZRieKAquutLjbvYsbfKzR/aJSODirhNi9zvVOxD8YEKvP1rvrSEjq3IiuERN46ywx3p3JreObCGdLuGlYYlplR7zglQxcgcdcsYGP5EPBoWsZ6fKn2hdSYUTa5TnkXg9IDeRKf2crJXX9V47saurbBIgEZgetkWJ229duNkE2WRVIDpFMy2tda8MSK3G 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: 2r0XdiGWT5Vp/KpPXyyvC9sf7GS2BMQBv9aC4eIkUppDYMs56fTuI9Y0SFyZxb482NoTUG9m47cDXKkSwhnyAFx9ebwr7w4y7kAHap3ZqcPjNgK0AlyrGqFvZ6MIaB8YlebYtMOghe5YA2IBB6mFxFkHc1Vr5UfSaCE8uja9zWSjuD0RykZaBe+ifPJiJ8nWNg5SDlO5KozG7lziei41zIM8r5VJ6vHG0lmoz9y8EhVrbtXJ6h7slXnXDPyfBC+iDG4/yTDr2cO4RXBAIRFz6aFv1TDc8BuxY1cz+0rEHwHMBolRvDj3doYit4aPspj6z30iD4Bnzl4EFCfSxI7EkNCQkGIaZf9N0D7GZWQHbsxA07Hmjzbd1v6dU6PPqsIrvmcfQ/TXnhtcP4SlAWGQ+jr8YIawCewRwZh4NO+q8FsDYPS/pkSuAO0BWcfiHG34/TR3nRIS5s0g8P1SAWQ9n8TTDG+W3xROMiq4F/Ij/fCDBzTBo8knK3h4kXbigt74NRBmUEvpYpSWJXU7V6VfQCn2kAyL6hCO8I8w40VX3mXX7qdBd57EL5hexQVcvogNY6T4BNh9B5q+bFgFLIObhGrBYO9vOdW21uz5ae72nY/xxluVKLV8K6fQ2RaFKz6VuYo01TvCDVGJxf0nFx1hXLktyBArOehDKR7lzozXems/sMy9ICiULCFiBJw1fZNKc6QG0C7Vej2e5gbMbKDOJTZJ4d3u+cfHPPU6KxqJNgBVwnPw7vPdharf5yZYY+OsNAA+LnSizs4kihzsC0pIcBRG3lEq7Ciik77dNnJSBQO6/97mvLKWQCONd0J5bG/v9mYbgWItTdb7xhHomP6bp6plwpv5Mdktw6nNmJykdZiAm6hqIeQa4YMkaLZw13RQeuvkM/cFEI7R79f1HBeVvQizQAYD1lJ3uWCIx+9eGKhZUbCm5ugIpFT5rGRYAu0GGE+1mailJhCiIPgUa6t/rYSUqVZ+ZldtYQCaETRrLKOCG2B3JuT4xhQnf5xsDFAI6h8FYUsaih6oFJR3rheqQRqGiKd6r5KsghdONvYjtMmfnt/hnAfiX4Q5D3eFsRcmO2H4hBKYhfnemlwDgiFLVkCwts5ktSqnXiNyNTQY+b5X1dc53zo7gWMHxKA/asApfmAKpEi6Pd5gs2SL9p9BwaSyr3mlS+TTRXkopG7HTVqh41IHEIMdySU3vNGrTqgmwA+3oShwvoz8XUZV7NiCcK7iCnyVG9Md4naUzzg0eGg6VQE4J7vR0qbaQQQZPbCELQOPKyt/JmBGAeV7MP0U1xcvdUCWW5oXAsniSDGZFKN8Zz3feyLmwUtLFynF7d+ZOciDvfzmtzKlak3DX5DHT8qhMnisgvQk+seYHwWqTyKbPMG7VsJJgeqT0gMFE+5Y61GI/V/SFpLUI5+MCm7LVGXJX5gHG0ksbHNfZ2v6tGKmiI3iuCtpinbX0nMivwpXAZqXaqo7e+8aApnUdPM2yMxFCNxuj8gmGLyKCDsADTTzvSfAqXCUQv0lkbx7hiJeXZ4LYGRXotFqtXOK3KCQEOcYfLWr1DMAn6huOQ1BaCbqADO2nf4fPnQH0gWS9hGB X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9d4a91ce-dba4-4eaa-e905-08db8dcce5fb 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:38:57.6366 (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: J0461gaBoAGDOBcWYPk2sIQX6IiwW+xWyn8/OE26phCubgz+8rv/gXu9Mx9NFBXbs7R59OIVi87aabpKLzUWdg== 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: 1772485452179313194 X-GMAIL-MSGID: 1772485452179313194 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-orion.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c index 2cfb27dc943a..e0cf90aa3ad1 100644 --- a/drivers/usb/host/ehci-orion.c +++ b/drivers/usb/host/ehci-orion.c @@ -234,8 +234,7 @@ static int ehci_orion_drv_probe(struct platform_device *pdev) if (err) goto err; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - regs = devm_ioremap_resource(&pdev->dev, res); + regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(regs)) { err = PTR_ERR(regs); goto err; From patchwork Wed Jul 26 11:38: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: 126290 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp356907vqo; Wed, 26 Jul 2023 05:13:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlEJgYVS2UO6Qu4IbYt4ieR9NoYi5I9ZUsQ1Vb7lAAmuCeCYaoy1oXE5PyWtG4DiEqhfMnY0 X-Received: by 2002:a17:906:7a12:b0:993:ec93:a5ef with SMTP id d18-20020a1709067a1200b00993ec93a5efmr1519256ejo.47.1690373622129; Wed, 26 Jul 2023 05:13:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690373622; cv=pass; d=google.com; s=arc-20160816; b=AyMCdmV/t3XjJd63Ousj3tktToLMbMaQlFRKYE4MTKHCs2evJ8OeWNwVOtun05QWys AOOsGR4YyP2GH3oCUCrj6KKZTaFW8sWXRpzko/1FgvfcRqxqECbGTgoZ6gOS671+bRrS gEfm4uVs+kDkqssIj+cS/Q5/Whj4aPdQt9BTmHI9pvf2ShsoPKI5cUS82NFIQ1TYdUNi irvErEKyws7PRBAdwtdyOAL85vRSRQ38F8HRSD1XgOtClVZa7Kyx+3qV9e0F7+pFu0G/ Tetcceam/s96VWgwc7nQn8reHe5TY1iDAuUleo+D6vvCT7G9RCXl5OCDwAu9MMKhd0Bg ChNg== 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=0UmBg57MQIr5hyrMZJTzcboQ9sMxMX2/pgWvrf948Kk=; fh=bMC5P8+r1uhJNT7JdPC950luRXJM8ZVXe+jJ3ryOPds=; b=RBC1M/9zBSVyteWgRzYxhWt6pr1fBnWk8YC4RcJDN4zVpBZ8fqVAS7fc7BpBUGNtNZ 2X0XCAGuJRlX9yoc5M1xmUb82PD5JZAqWnHoH329rk2Yh4yLJuNsIddHxNbHwZ9H95IX 83rusa1tUqIGVmhUK4UAZNzILZVGoIUVpqREEg4d/QopIXOWMEKe/P5p8neEtZ+LxQx2 erDzfQslQy6tH7pEv0qsDdNJB3gBeESZ6blYV3HG5KAalmOHwBOTe8mGLDjZbkl8h2mr S4nsDoWYZkunv80HdewvvhANI9NGQsLifTxHJ24mUSLvaXZ9xYjtR23Qlx3F+nMWYAwS twDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=QuFXx5Xc; 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 l14-20020a1709066b8e00b00982a267a399si9145829ejr.561.2023.07.26.05.13.17; Wed, 26 Jul 2023 05:13: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=QuFXx5Xc; 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 S234137AbjGZLlK (ORCPT + 99 others); Wed, 26 Jul 2023 07:41:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233894AbjGZLky (ORCPT ); Wed, 26 Jul 2023 07:40:54 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2125.outbound.protection.outlook.com [40.107.255.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4716230D6; Wed, 26 Jul 2023 04:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QyDKlGEUgMS6IJOFvOl905EZ02aj0f+gCVMFPTPPQyrtF2jPLltdXhIGn0pKzjIJzb+f7piFe3dCN5fVvd08Z9hXiVaXR6CUjmuEvwpu3jpdOy/tgFLipmQpILNBYSzYrL8J1yZ8T8cek7cZjLNWxV/7l2eS5XIquY3T0ed9kMgvFCfPTjaU7qtPL2gdGF+8iOl8qZpN3ByVKomhSwnd7NKseVFWIiHzNn6F2+Uy/fN+n3UzmMTTM7fZ0mcQun+eEnw4itkwEyMnxDFLnfA8qyuf1yfQXv+XvR6xmSmyVAdL7lwwiPds4MC0+9kMaB8ZB7umHYvrgeQcMv+TTjZ9Zg== 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=0UmBg57MQIr5hyrMZJTzcboQ9sMxMX2/pgWvrf948Kk=; b=OeJqVSC1/iL6TjXAX2k9yP9AniILhKeh/cVNkFhJGhz4GxUhCB5p3uvuFJwqy0yy8t5nyMcKQQ9J73C+V6TGHn+sn65mXBE/ABD6DvpzQW86Vm0Ajs17fJ/dk9q7goVHO1d+qehx+dRbvh7HFmXSJ31d0NO0xYloCN2OaOqE2OKs1gknfga/7Rgd6Vl5n2vDxY9A1pN5FnkbhP77arPgtdndVIWDJuiY82lqbUVYAklo4Ll49SnCdUtHc4Tn4ZAvwwLLDgGdsclym+Yy8XXktKpmhBnCp7DLu2Q1CYB987qjpK4RkGsAidvYFgq3+ahiElBuFP+cLIOmkF7hpYpDxA== 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=0UmBg57MQIr5hyrMZJTzcboQ9sMxMX2/pgWvrf948Kk=; b=QuFXx5XcT1FWStqUMqhzOuSSgPvBwRFNfC48x+HNaFDeFYv603bowC0cWNzPXSVostrKlCOV85DOyIMPmETpn33NPmE9arzKC6fHRSvduo5jBBOcHUhOKbHbgFPMxdY/kkLjBLhEE3P03osGqN8KedL0rGbcsUCUu7Se8oA/JRsIqs6SpE+w5ADpMs63nDrNGO9qvk0nysRN9f8dgaBTOQODF1ucmwBqZaAS/lYf3wrzonRYlFF5ocEZMEeoTbUmM2x0LM6S0ZT1oiaYB0VnQYhFnk1DFwp82t3MQFQ0xf2gVci7q9NBMtOVlqMy0ygASYwWSiRQDsy6Zo/kq3iZug== 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:38:59 +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:38:59 +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 21/30] usb: ehci-fsl: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:07 +0800 Message-Id: <20230726113816.888-21-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: 6f04a105-e1b3-4940-abd0-08db8dcce6cd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LCoSpqbUDo+3gB9dcoI1xSLJ/j2yq8wdXSHEqSrxyKalYvgkcsik/MfQGBmWlrimZ+P+9F9uV6IVAoLqB+MkYJrqF/AiLuU09QavT4BeDGDvyIXS/fmec92C3IyIVXjEvM0mlmAXJPCvEVa1mio3Y3/NAGC6SynijjrbtM6cU+vwOPGeDrU8kGfehsXP9Mc82sAG/EehJOtUG/aSoYSRatPxG6iT/zSrkW/ugDmVMzREqGfW2LsykasOLJGNYJTujhB+7Ef3QEbgOFSFq43M5IAMiZScR/fanDyE6z8rbc0mNfuDKgfDxgngMHPTG8luT3XY96Uoyqi6HFPLRLaIk2QD0uQbt8aTozPH+KnMavkSMnK3LsW7gHPEq8b/NHarzjutT+wwG+lqWlrCl4IQZjsP0soSsQgEYuiEv0hLGZzoyiDlPj6vqCuTvQl+pgUrOoB/nBD7CiBCwq9bMcRcu794EL+DT+hVqR+Ar8sgavR6oNBsFSoIwTPAo4vmexGEkgq5vaBBSnMGEuPeuFpnt5QxVwR8gCNcpC4wqOmsmhnusCxrzYt52mPOeLw2xOt2yp5yrf6Fbo5LAWRa0jRnkV7j6nKevkjFvIl4g6RBOAjhBxorFL5wQa9gYzP3qkFt 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: ch3agO31shaC4c5UrxPq1NdTfoFj34jAREQaKj9S7/P2iw9SapLTxzut2vV0BD2w2dKzvAQ+Isn31VA6d+05WB3dY8x/heIrMyNv4UG1uhPWeTownqFIrRSThMzpmW+PeKgVKxlbVWKb/4ulrlvFHboj0yju1a+vNVta+TLn3nureS7CT9ISbZ34rtsmoaV9R/qCoJzWfiI+QWGuQiPjxxLdQP+WwbwJnXftBLQOqUbTtq7NboMC4sSecocLP/pZaYzea1LlwVTJ8piHR2+mgLQnjI15N38dnGnk5HUMok+JburHSoXaMwTt5Xj6iyQdUhv0rYZweje3g6CFGwCzfuU6IYqrsuIsM76kLaC0rCrUmGCLDH3+d4pAkKg/ADZYboBgjCpHIIZ1pJlXzZz0nheimQKooipZ2/Ui2t+NncENyXaljI6hqSG53mOzHL+vwkPC/gT26rPlj8KVnwWSwiF3aX7TpNYe5Svx1I8yY10wUt86T8i/aBgkPnSo1bSTi34pYrcaFr3Bhtmfi7okJAD+YpSjercNLgRg+iCoTs8mEBSlbcrP+H9o5MIdJGZYhdMOZOsRhUwOo9RiRc0wBUUn/FEsaGGRwb1BYWWG/zXxgt6vFmMSih2wddZrEr4WDgciT28swnlbgnBl3Gng4zfF7FgSXyEL58DLUCCclf8cW3Qx1NOaSLGaHR34JJK9lD1+dKcwkGlnvagYg2QQGT7lCxSZHZR15UALTkuw8GpNsjPNi3lGjMp8ducKL7Mn9SOYwPuLLolCl1Cu322wCX1AhAAeuwjYszk20NeXi2wH34HKrdzun7qkOFphKrCCWxfwuVl2NnZTbj/x0S1dKexKwh2AiWOuynYQx6XRH5tLRZ7iWtjKiw6SD3izDJKPCJeXXOtndaIct1Y8tIrC5PETtq0rPUoljROB/daMpZZRMUXpYv4P9vDV/XkzxB0RT6ImYBe2fpQ3Hxcwa++M94gPx5weNBpdAPzrz9f208iETlCly/nrUpsMampnRfA5O+Tate1VkTDPp1kOI0ZPqOPBH5yILpewxjLSYZMQuUO+Z9no1j4wd8nAwKm7B2iTlWCZ09OC0SFB0D4bQTRiJeekv4GhxmvtkCrEbD/rZVCjC/3Mnj6vDGzi+3bNGTqTIfb6Sk+HomKylQj6E07xQwNhRzOmzho42n79Vofgjc9C3XStS9KRULvq82x2vxZEauH6FZ9sxs7SJn/+pS136RlxfDKJvMWIAe/F8DsdX8tWlB7QFulb5bkyia2csryC32CJbVDo8ixkNeIM1tuixE4+cMMAyqaBPsceRt3fFpUrPoBVpnEKMdJnYGPsoW+ziMfVzLq58AxsYOvEJgZFDjcyU/v2imToHg2n215MQe22P7tGGm1ZW55F+77GT9B77Y+fEm2o92fgJqqn5ZE0omzoMWcp9PCmWM59QQ7h6GVVxNZYoqV3/1ceXR6KUzHeRiaLl13EPD9C7iyCn0rP0tpYFYY94JmgobbpKoX+XB1f8O1ttSir6mJUutq91niuIeerwiwpCX//+7JxB3Xs7m5Ctu7BjId9oEq/u+hHQrnZ/NLcsIeDNsw3/Ohv4MTG X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f04a105-e1b3-4940-abd0-08db8dcce6cd 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:38:59.0029 (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: ZUR3Xs7skPpt57Mf5PsyWECsZ0b8/B+Am2deYY4brhpXLjoq+h9MyCcZexjB/X7Vu6dpBI0fu1M4R7HKrZxHcA== 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,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: INBOX X-GMAIL-THRID: 1772485211333259551 X-GMAIL-MSGID: 1772485211333259551 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-fsl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index 81d60a695510..0ed715af54ae 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c @@ -87,8 +87,7 @@ static int fsl_ehci_drv_probe(struct platform_device *pdev) goto err1; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(&pdev->dev, res); + hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(hcd->regs)) { retval = PTR_ERR(hcd->regs); goto err2; From patchwork Wed Jul 26 11:38: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: 126330 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp377340vqo; Wed, 26 Jul 2023 05:49:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlGHRgQY5nNtxLrsvpBPohiVwlXrlB+F5vSdGdLe3rOUwrFTJWwukEHSMIRLI3oPj2ZI0fmh X-Received: by 2002:a17:907:270b:b0:994:13c3:2f89 with SMTP id w11-20020a170907270b00b0099413c32f89mr2105069ejk.27.1690375765117; Wed, 26 Jul 2023 05:49:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690375765; cv=pass; d=google.com; s=arc-20160816; b=aHXBVNuf2XMHmnfmd2kac3IeZgPtiZiBvp/m29SmZ44Yw4X1ve+BUOKofL03I4mqX0 C9W6tCn+ghyzQGAiSY4knVcet8Jg9/7I/oBK3XAxpjg8ztru+3fHz5vYalRvZ73b6bPo KPggbubNSKoL/cLHCrI5FKsmb0R1Ug9wk+9uvF/BvA1ApQg0oFOiBqyb8aweAOQdNxIj WXJmpghqjrx4ae7keHl9+bUpBRnT7YyXuUhpkunJO5dQfLMzTI2hMwpZdbc6MKL4zHtn pVUAVzHqznw9jzL5EWMInEdYIq6R40C1K6upLbN5sw3spvpNRjyc0DkT6BfUyjJOF+SM kZBQ== 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=+fDPDzzC8SZ2ADXiURdNmfzV87FuT/nfV9b9dllITpM=; fh=G0vXrG17h2/vlfZCASfGqxOXgmNNHShLvauJVeXF/Ew=; b=miL1SHRWPSFNY6JY++ARbKcH6m3IqrsVtMQpKyOjGSyCuD6Wy1G+LaqQwFnQxEnw+o CfBxN1tXeXQattZhamrsC+PbeGHQA9su84ZuoIkN+wVHQvmzdulO1kl6ENcRwxPjw0Tq DfWm8XDswQaRQrHIld8l8oReJIv16mc39R+6UrvakoUglGH3H6VMyzFDVQLroHwghzoJ btM+O32DwQs39TckBcFsVUBlSbpg0SIgo+lQc/B8eICBtFh2CLfzP/DllBZHr1vNIEkh p2OweC25cXyNFQgIzna4Kl0deYlNn1lcRfFOqCx38RCfi7kV9VY0x8LKtcJDwEnlnUSZ GEYw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Tjyw535Q; 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 u20-20020a1709067d1400b009928c9d9971si9946892ejo.875.2023.07.26.05.48.54; Wed, 26 Jul 2023 05:49:25 -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=Tjyw535Q; 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 S234290AbjGZLlN (ORCPT + 99 others); Wed, 26 Jul 2023 07:41:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234132AbjGZLkz (ORCPT ); Wed, 26 Jul 2023 07:40:55 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on20712.outbound.protection.outlook.com [IPv6:2a01:111:f400:feae::712]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 607E330D8; Wed, 26 Jul 2023 04:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KKNymhwuqu0bhN4cE813Zzpi7mp0UKGXTY4uzxoHtoPZKGdF8hXE1MS6ve6mx0VnLW6AJTWpFxeV+hyJAu1Y6+3NQaQZdTaRiX/MA8xVpYCu8NJWC9/PZ7WF2DRUbROTVmhtxhqJOFWvXRPTqjQLSeeyxhFLQBK1CZNWrqTxK7PNSd+/rk5lGOt//HYQ7ZF0kRI7lc9s6FG7TatPU3jn94PYtkzfBZwbRbzU4ezaTx2x9ktNwN5DnpX2NrEXjUe29qPGo8a80uXzJz+BPsPQ3VN9dBo+/uTA4M0icnfheGgaE84QzLC+u9EWwSF+JkyhHvK6N70G95fBCJdWxmB4yQ== 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=+fDPDzzC8SZ2ADXiURdNmfzV87FuT/nfV9b9dllITpM=; b=oEBcAm84okWh8ih035UHTWwkisQobNYbuyaA2fLgPy5ucu9XAWCARKhXphCv6qhgsFav6liQdhIAUIFXkxiPGGLLEhYo2twyw6u35lOPCCmkcBmR6A0DSwgSWclnIBP3jFRBNjVyGvh8AoFRQ77+g/8A45Hh9jmGxELeAgpfnHYbfYnM3A2eeB0EpalwxbZBa84RuN0l/8/T99N/WGpGv1eYDK5SSCbwPWJ5HSTzjsIYIcJUL7vL2zzejAV6R9kQVmhN5AzAT++xd6S9OpPQsFDzfL0Ri0PoENuMczWEa22YBacePdgL/nJ+2iNiuyu/2uD8GgyX2nCLx8f5z3ZBng== 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=+fDPDzzC8SZ2ADXiURdNmfzV87FuT/nfV9b9dllITpM=; b=Tjyw535Qmd8y1rASI1xeVuqMU5PQIuEk+1ScmDyQMEgl5zI87u8uOTdWUQEy+B6b2dReFJhrmcUQU8f2qg3jAd8P5SBjiQ/eSmPnsLivXO4Ld/nJC5UfW6JDam8eF+dWk7881+iEn0PUPkTmZqyaCaFOefXbjJ4amPdjE1x9qbUKCsFac+RNmgXWlMS+IiKS1/gdJ4n1IFlgU/e90jHOFI6zJK/Y8H+eYKaE/0UDJxx59TIXmFZ7vWxyc5JCQwajAEk99nKIDq9G5C+wZoS0l0StlqiDazrOHd/Q0/2BoU+TIcSYKs3tzVR5BawdOxa5lNiir7zklfKZLU1GawXfGA== 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:00 +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:00 +0000 From: Yangtao Li To: Greg Kroah-Hartman Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 22/30] usb: oxu210hp-hcd: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:08 +0800 Message-Id: <20230726113816.888-22-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: 16855644-1e97-461b-5eaa-08db8dcce78c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hzXGaoxuFUzBcssTpEz/eC7IZln8ofTHIYpFd8N0V1wUk6j4i4XDQCCEWdWIwI3NOBNvQx7/l+w6VAjNgvjO1rCPb/8mE0pYqiXRnfO5d/xi+N5IwtpXILgovY94DIzjYTblnW5t70oJHFC5bTGnWGuARoszqRBRABbKoD1e3i1PBD+Mjd4fZGxjJTnpVthj0zQh7pJ0NwkB2bjJzqLiHPdzaO8/1vj1O3W+9BZca6QFjSAS+B8UhniPHLDDhc/hmCgH2Oj59Zp7Z5P//LtRyX2CUuJVVgjRnqh4mqxcbymrDkagHFQQ3uJHzloQDOpwHuXwQgHCqWJfl1Z7SxWUJzH04MCgS55PT7M9p9rHAJTzD2dcJH6pCakC9P3i4O1endLXoj6Dm4iSEXvpzeyDf9rTDbdgt7cOsz89ZnrFPQhSfpPa/y3iyhFKro3FitWEaNibzDkBLN5lSPnBH/SewfSxUiPqJvIlSgvVTG6CIayZWRr2OUtYyXULTDWK0c25mx4vX/fI/mF7z8D+j6g9kcTVgqVONuoB+l/prMg+V7kS88f4V+iEZv8GiOSdwVoupoxB4vz+YkHXYAQiAlFWGcVZkdmPuVJ5BSycRT6+Di4WwQQmI46It7h2LmPW1fmo 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)(6916009)(6512007)(8936002)(5660300002)(8676002)(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: tNOr+6q+Ew+HjllzsVHT/BGDyRiTDmb6MGyDqfIDzLsc4hI26S6uekyk9wZt6vU5nooMrvzwPhokfXEFD+1Zf/GmvHuzOVdI4y185Xk1N+rA+89zRXrAGCtQzbcQiZF8voAgxauz1IyoNIkcslPF52fRAQ0BhN35MqJ9yQ733oDRMXnF4b3NsiDcmeMRMq2jJcJGy7PW1LcRzJpCVMzAUXWTLY5GJ4nuEpGEWZaIXP0mfncqOA/NP4k3iMNc/0xoeHG4Fthw+XzmRbHyn18FPxzhmNXNoxyVPlTIil7mu78EXPGH6ooPU17qCEbr2LLGsFzeZ/EPy87xphPg5Nl4aKfX+SxMit98h5ocy54nsWenML/JnVjR6wLbvUBB8usIJIK9H0W44HWDxJGMsw+R3IztYYRp4JoJIM2OhlpzWF4oERYmDIu8+9BUgQ7sAVF0v6dXMcH8Ij/MEtvQP6g87sgRAnei77piPgDDvjPZ1YSdOk1EyQOS/YDPsuMvR8D2TN9FZCCeNs5/mTfI+dGaeBVUrVZnj0r4f94BfKwqeATwrrZtAGu0wjXOc4JqCIoVpJua/BIa3Ix1HK7z7+xmQuFx8RSqc7mSl6h/X6KR9MLqao5HnnMpTx8AaUWthXd11/+nm6AQO/qMNV8kgaS38YpTrrxQbBfEEhUOfDjI9qrOaZfOUUThMJwB4wJF6UfxI4Wltk671bFsD2vLf6buq7Zm+LMEVxBGp8Ny+jV5MVcY4EWWzMS+CXKBJukmCEikBJtKKvbzc2hfLTMDro3x1+2/7KU9WXdAwQbBKpQD+TWJfF/9G/Dls/Du6OovJ3hnOVpozFVQ4d02Zh6Bxk8l2pcu3aVtH3Pb5kxCciwfE2QAjJItbAeNbZj+kyfomlZEbNGJB5+qXzJpfcbRUGiLe9ZvkUB9QPHQkYWXmbanfvMZKL9ajU2sXGG0d6DHkzw+7W1gNwbawHkLZctmge70BY7Z1CEYeTiT74YkYXGvO7G1L7JW+53tpil0F9nrvxVkalcz10JgGwksxzXKMY3Tluy3zKRo4bGa4pleWT8ZgBmJfOJaaSIrRNyeH/1kSbv1Kspot3S9OuJX67SapvGtHAxphteqs7w9vazdpWdNIKX6+3bbPCitS4x6lfPliTtGFsJFUHg3nQHMBemn8YRY6z0DpE95v50A73DiKinOORCFOa8ZDkaLLQSpsl1/c1v4TJF6nR3BpKqjLy5JWQji+1xju6/oEw+xTBmom+l3jzFCMc4L2nG3zWKuUCk830mNaA/Rlp1uCLWbSzRikJECQjV53sFOnhSaB8dlZuvfCp5RhZhu6STEbgyUegp4j525UVKG4yI480z6yg7ozqXjH8FFUoUvPwEeeMnA6PmBCFBGjK6s8cF1X20cs2473SEKCfOD01xKntL7s8bo6N307s+uy2InmtRAZtTQHPBxVbF/2VOQ4fBAPSLZWxqa32sbon5Qy3TVL7ZFvf3K1pismzqVOn5GQ85fHcvS+NZXSVe+pVvhV4kHSQkhxexltDoTQQo1n4HmzQf92AGmLR4QpmSSGcDi9DOFS/KSWMgFwwUGSlFN3WzT4RnV09hnTkRh X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 16855644-1e97-461b-5eaa-08db8dcce78c 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:00.2758 (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: s25/aav65xEgAFIsI7tznh9s+QFsqq2enGuM4eiXDEy8EikBE7l3MO01XjMb5lY6/eplKizDQedBSop2it+Fiw== 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: 1772487458360124628 X-GMAIL-MSGID: 1772487458360124628 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/oxu210hp-hcd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c index 50c1ccabb0f5..d467472f9d3c 100644 --- a/drivers/usb/host/oxu210hp-hcd.c +++ b/drivers/usb/host/oxu210hp-hcd.c @@ -4230,8 +4230,7 @@ static int oxu_drv_probe(struct platform_device *pdev) return irq; dev_dbg(&pdev->dev, "IRQ resource %d\n", irq); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(base)) { ret = PTR_ERR(base); goto error; From patchwork Wed Jul 26 11:38: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: 126286 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp351439vqo; Wed, 26 Jul 2023 05:05:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlEuybnuuhLe4vkCgBf3uQDP896Uk8ss6t4g5GCaLc83IwT7oka6/ZpYDK6y+BmMFLn9vrLM X-Received: by 2002:a17:902:8210:b0:1b5:64a4:be8b with SMTP id x16-20020a170902821000b001b564a4be8bmr1765846pln.35.1690373108964; Wed, 26 Jul 2023 05:05:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690373108; cv=pass; d=google.com; s=arc-20160816; b=wqiEdAf9DRA6TGrg1QH/yW2YQmTg6Sb6E9P73twAOVimRzCQ79n/nZ1/sUctMaDjpN 2vZoGybm9tumiC5+/qpHNPQYrk3fLQwr/qLxxCHkS0JX10A+3NKkZZ17G8f978n5pFDY ZKyY3xzZ1luYoSCFdYy6jygxyA5d5u394dsPLCovATN74OkG0wE8cwQ4KRalej1bhG5U 1xXxHkC4ka7b8ubgW3xxwgNa3KTCVj5qQVGaF2dX4yNG6d5mTmRy6a2YDEiFUnt8vSdz putburl6/kb5Jby//Yw7tDBx7N0jP3uyDsMJ126vNctxSn8HEWC8FlHkbJNqbiuJlq0c Cxfw== 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=LcG6i6r0FRHt9CMt0fmlfb2u81GeCT9OKloj93/aD10=; fh=bMC5P8+r1uhJNT7JdPC950luRXJM8ZVXe+jJ3ryOPds=; b=dLmup/XZumRnagvGsxPsQaXRK61CwXTbZwJ4sgtVkYsizvWxCSwn688djTXMZ3gYi8 clyMy11+i72N5Rz08F0Ya/h+upSdLIV9kHvryf8/On/cfTLSNwQIhr6XuQLs7h6MP+ID bz0y/bj29nN6CPaZkXDC8Md+SUdO3G73zwefanmigufwPzkIAwn9Su6Uw8XTHW4Zyr0Q c37iYrUIGtl/qlRLZJxM5qL2nwxPLhxJF4jyJtr+jlxt9ngHWaxGhKwPcwqkv7+tdGxd cACmuWcxbxuKeruHIae6/jjO8JYiEmAq1debrXUNl7U9L2DhVcyCnfxt/bk3/9g5qT5T jA5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=enlWFFab; 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 l12-20020a170903244c00b001bb3316f71dsi13771650pls.481.2023.07.26.05.04.55; Wed, 26 Jul 2023 05:05:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=enlWFFab; 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 S234144AbjGZLlf (ORCPT + 99 others); Wed, 26 Jul 2023 07:41:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234171AbjGZLlW (ORCPT ); Wed, 26 Jul 2023 07:41:22 -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 0FBBA3A86; Wed, 26 Jul 2023 04:40:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nh3sVxPUlb9BFMduxPs5IkBQiOTqocjuwrjzpkaB1727zSXBKxkBteNbC51zxMG4A/KBhLZ7wXnFxxPkbfhPVp0ucgR0tAv/+9zI1VpNXoOh0Zl2OEZk3JwCORz1HZoP5m04Gk6WO4yT6guMu8oXXFcJ6ru28I3P6gYHx4N18nHsJAS15gR1W84WVRgiTfXL/DDXJF3pjT3hiz6oad5sOE01c4mo9e/fyBnCmM2kh3bU1tAhuMoUHL0dkF+rJyCoqHWEHWPXenA1UQ6JJ6KJvxkj9hqBYm6hU18hxSrworN1+UtGBYGtPoTOUDZ+qbDp9C8Q4h9wZvXBms17tbhTBw== 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=LcG6i6r0FRHt9CMt0fmlfb2u81GeCT9OKloj93/aD10=; b=W418qm0yfB1c0kz6Z0cA6QsgBVuXz9xtgFMHZ4AoUREBx36phMLFIONszz4WOI4rFLRiYDQBBASZqSeTuQUhEb8uUx0kragf2Ptr0jvuXeQbcfODvXbzKg6urF3qjdr1ShH5l8rNYFvqvaachHH5ar89EVZR+lLarTAsOni0NsQ2CX62tYmWOU3sTr4bnBASAlg//7bK+btsHmOZalT4KgS65ZIMO58v/L35hG6mOXgkmdYaJB3e2OSCXkflZGKfN/wh9FjKKiTWMUVjHn7i35XVWtLIXwUPBOUZNAXw/z1XptcxrmspgtMuxcepYXKWjdRx5z2dE7TkjXYuJOBWMQ== 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=LcG6i6r0FRHt9CMt0fmlfb2u81GeCT9OKloj93/aD10=; b=enlWFFabOL4RMLMgR1G+chrog2l8t1p7PPJjOMlXZLLx/GdVGl2krwrLJppltjkqlHJIBkbc66rpM9Yb+M8p1jH1RSAi3PsizXD3+9gjQDqRQlzL1zArCTVpjBtuZ/i4ghmKvBQK/1bAOccaGNnPb52lGq+/DnaHnemD8qUfQX+zWsX5DvY+a1DPB41BjC+GLOD4mLWI6rGHn+9YnkuBi3ypoVeaEwzipQcyiMgsfxQp5OO9F1ASCjGXAShP3FTpVY4uVGGWkDJJEiqx2wQVzsNS/n4nlFbrT+rGmm2UxGmrfulWi5RTSdaQ49ZeRSEnz05ZskkKMUSEyDkJmBFKaA== 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:01 +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:01 +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 23/30] usb: ohci-pxa27x: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:09 +0800 Message-Id: <20230726113816.888-23-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: edd65ab7-7353-471c-857d-08db8dcce860 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n7XIJlwVfEE/PVHmRlgDX4UV4dCFHrcIAy/A2vA34aGeyjAFZ5d98Ew95rWo7dM/BeZQ143iCWhdEaZwQR4X0ujFCz/Sb+6pkbyaTNr0WKkin67QY4R0+BluF3+0WV82WacBjKBPY00oai6j+AocsTTM7MCh6XnixaE7X5YFG3QzJYe6SSaVfx01mz5YRBMi338a+fO19q/0EtvfXbtysuV2Kp8lWjqhpl9RFUkFAeOwD806pdT9uSuDMQ1NGFknLOk7Tp0HDcj+0s9v2OmEZTpjm8fWqIm8HVHO7VVcjdYYYZ/jmqef3vd0itxA+cfk63g0hnJM5kp/vslgjqKwOncJDYDsPl6WylJ8hEAdfBH5W1pyhsqadZ12jnAQcu/WGwPV1rdwMsXGAfTqJnDN7XLiojgvvcinNbPeuUkGd+Ei56BnNmK6Tw7Xddbr8PQqACPyGi56+0IKC+Be5nyGhOoNx9vSDd93pFMgNBInH1cD42GrHJQMc+0h1/d8N8tTCDU3s4DT+rz6b6z5wRQiC5EgkjcwEdWj14/SDuHi7xrjSpvrHWcv4od89fO1Y1MjQQi7JN2WJEeT/m/N+WzTQFSbOI2vk27QwCo/p9S2Gv95JRdRBMZ4f7AdJNOJzMol 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)(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: 5mZ312JP9AgAmli2cZGUhBYYhZZ5cLntBFN+bLA35INwbojeEBwQczjJRvKCvQtUfVtycQXL+ys+DMqSbHvWowEzlTiGrmZtGRyS92OCH0FMEL6XOGCwyJRLrjxjYDON1FXoTLBItcAMMSwPITl0VNjs7crpgr+fgTl9ONRCGdwxDxr1y7KefN3JQ4rPQw2rU1TeQFL1o+ajS2X1DCagP5KwYFKPki2YxWLI8uf4NBQGzPKN2coYxB8u1aAxd7S+yZrfx9J3WMywxzAaSz/ix7p8gEq7pjOBxtr0XDEcOTCs0sPWl8/XTx6c7AGriUgH6je2Iaoc28sC0zc9jGU+9r6vNAuRSjSXpyrTmd47fhKiAn2AWwzp/QiCF0LwpNyNn4p848v6nvqkeN9PwqBt8Pe3SIl7CezSDbdI/x6fNHAMx6cRrs+tn/F53jkWtzdgK38T8IWKeEKhgeV2Fmgbbb2CwCpTlxz8KiT+1c4F3p1vi8EnKGtXWXgR7qiFteOjUF50m6ZtQQ+lQrzo5UZRBfeV10JZA50wIr4N1PC/WJgQcUoq/MZ3GxpssX2zBKICKwLxgOTR+whpYqrzjIJUF4ENZEw01Scj56RoEgS9iveie2/MPzWat3czKP32gQe8T4RbiCKMAqul+BppAzlHlZQUCEbnv7+fwdW+JjILb9lLeQXX+1sQxAduYd7NvAeO1GTvGsJ7HHVGSxk4pgCCwwTuPhF+GrcicaJ7+m/Hv3zgKOoQVFSFvJ6RZxgzCSjISYenKATebgvZholE1r/RCpckBM9kqqJMLEaZYjEz8ckuQwFPIUzMcZ6EVXojvCnuk3wXRy9guzIBiUQtVP/qOMXz96VpLAJ1XLHIr3dfEekv8r6qFe//Dc0pkH5TFUvEHm7KuVnSOf+hC3V2I8H6ax1hJaKGFDW98PfJcz4pXcnk021qiuzypTep+eEUkbiHZh0S5wmIvrrpcpYmy9R+Eq9wIASbBpOe0VAvgiwBU1OeKwvXPkgl1Ko1ijq2JpRb2sd4Elrtr69F/leh0Qb4CKRcH6t2Hvwu3BuQdDXE0VG4mwx5mfOefHcK/egs18j+jLtGJLiMdH5UXkPH72uLtraR725vbpHX0DlB+3gZ1MqsnPd9dUoz1L9eo1+dCfhpgQUYgac+JGpjleaaqXmz9snTurjxOM4+C1fzknU0uOwne9odgkYQVHJKm6QjC71Zo0ooVCGTDqJjVjye2SF7zf0+yW/59p3Oa2vn5TbxHC5LjrP+VNkOsz1lESePGMrVMy9h+Es3bJt05WkuhsAyZgcGluazfImiAE1oT2BMmaZS7uyDdV1J1xCqEOlqEsVaYetwYzYyt4vv09hZiTClJfD3OSOKa6f2DXva2oEnxmjeMru51XkGm2OLqDWJ04/f5thXdzgGvpUz9zLGIzqH3lpIMEFKA0OC+HyXXk2nDia2pJPyHZKk0igg6nxVNj0mm+piYO66uu+5yoGdS8GZQVN35AxF6Aa+J8QoMcQks3mRpqxpsZYxQb5o3ujrn0FkjqJFnbI0lH9RSX4a1FBPRTWvHkFVEDxYMDTdw0C2aw72M/Bi6KvxQ0ifNIXesu7S X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: edd65ab7-7353-471c-857d-08db8dcce860 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:01.6463 (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: WTSP/ZFOyk5GZ1+PDh1Ma83f1+d1NcNY1wWRvcHJMxQ42hzvmrZTZgXGuS3Q0+mrUHHOL7A4zszQ0iJNTdhJwQ== 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: 1772484673163612771 X-GMAIL-MSGID: 1772484673163612771 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/ohci-pxa27x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ohci-pxa27x.c b/drivers/usb/host/ohci-pxa27x.c index 7410442f720f..357d9aee38a3 100644 --- a/drivers/usb/host/ohci-pxa27x.c +++ b/drivers/usb/host/ohci-pxa27x.c @@ -435,8 +435,7 @@ static int ohci_hcd_pxa27x_probe(struct platform_device *pdev) if (!hcd) return -ENOMEM; - r = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(&pdev->dev, r); + hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &r); if (IS_ERR(hcd->regs)) { retval = PTR_ERR(hcd->regs); goto err; From patchwork Wed Jul 26 11:38: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: 126279 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp342688vqo; Wed, 26 Jul 2023 04:48:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlFxzeatWAcOTD7gExJpZBDmR6OTn1U47lWD9UJcdy+/GeKIFkO5NfIsENlQPMqhRnjgJNyF X-Received: by 2002:a05:6512:281e:b0:4fb:8b2a:5e09 with SMTP id cf30-20020a056512281e00b004fb8b2a5e09mr1635653lfb.43.1690372120724; Wed, 26 Jul 2023 04:48:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690372120; cv=pass; d=google.com; s=arc-20160816; b=KPZeMk85+9KRErOH4cl4gTrP+KecHDHaPmDD3S0fxlySN0jQlsLZmenjKbgtD+xqPb +8F48LS1bqRjT++pfY7aRlbj2ZVlNHUosmAs/Vn2puhFponFXIvzvhEndYCUP+0Q7H8f mG5NqNu3TuBqol3mzEN7bR+d0zwnS/GjrwBFuc8xoOKtrhRPqgxq3euBDFJcm5nA2jTL tiVET97RLZ88QgHIHxT3cwVnm8SovRYugrPkrYpI4trHakDOUgaMFprAHMUTO2sW7ZQj TGTYGhI0Sms8r+i9BKMyWLoq5H0kpUHIIx0YDIHu7vN5hS7o1HS6oJAFRsTA0WBZS6qp Pb5g== 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=bgVqVbMpfc3X0caBRh7jZLKtyw3vW+LrBwfbZKx+AJk=; fh=39PBg3GBaDOTxpVOZmwRsNozk17riV2jEJ2Z+eG5fs0=; b=Cbpxo4wkDfoVYidtVU3aem8iBAJqsSemFGTcT8FFMBeT0S6W1u0W8Gh3e0+jre161l dv4/FTISjSPUnO2HouwkMb81YdFTNiFd884gm0mLH3sVL+7BsXCui38c/EXra3MJH3Mc 4Pxa8U87+RNo0QFiPgVGc/kRcrznlz/wr69/5wAZlRe9swnoy/R9yVycd5xYlVSyOkKb 3rM+6lODzQ1KBxnP37oqI5dFakO0nw5zQytYfUthehFwNGMA50y2D1kOw2tVD2yi9GeY ZUACSzXHCYddj8iG3aw/6djgvxNxwjipYqa/51FYyYTuPP7VKg+2e1P8zKdPmuCSrUiM tzpg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Ir5zKxdD; 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 k6-20020aa7d8c6000000b005221fc03d2csi5697831eds.682.2023.07.26.04.48.15; Wed, 26 Jul 2023 04:48:40 -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=Ir5zKxdD; 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 S234204AbjGZLli (ORCPT + 99 others); Wed, 26 Jul 2023 07:41:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234210AbjGZLl2 (ORCPT ); Wed, 26 Jul 2023 07:41:28 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2125.outbound.protection.outlook.com [40.107.255.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA83D2D43; Wed, 26 Jul 2023 04:40:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sii0qku6Dq0XT2I1nKR7Y2oYHoHNqe/xbFLdl7m7mJ1Qb714bQ6E1AG0047M+rjsVA6pIO3HOrzZnweoXABZ+vQm7sdJNUmZSoxiMZbBqhAdCIVut9j6M6y10xfaf3arzQUl0+fBoManxyKb1aXOLjeDHl8X9sVvJ30et8FK0nP5XB2qwyvkfFNS6tPtuzjNA/2gIlZtf0ErFvXFexVed8rWInuiPp9Zg4wOG3n+fvwzV+/X+5pa8gd/LDh4vzfm8J7mi3xZnSgilTl9jf1SJBpiJIR52wbIEVp7Lz1kKS5eBMnlBVYdSIoMN9johtix4FLUksKUZhRjoS8MdSKzyg== 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=bgVqVbMpfc3X0caBRh7jZLKtyw3vW+LrBwfbZKx+AJk=; b=HhWqlWOBIgCWkxFHwxhYDkhDc6TSo4Y5qOw/qJucLfnefKQ8F54WN0DmDjNoiBalPp88pCy2R+EYVw+Flps+hfetiL8ODfEji70PgPLLUOGXHN4JfivWwm4WbFwn4llaaBd9fNY+lV7lFjAOSuIWxSsGpqPGO+NQiODiI1ptxWW7Rub61opGIVj7r/MPxaqsO6MutoODtB65ANwR6fuHg8VfRG0fGmPCnjDSbGolbpkMJ0y+wJ1CfowqqwVODZllCO7VzPdjCC0t7MUyO1lB1ELdj5qQnzJo8nz/OgcUsxokqO43illkEJj3UJ8CikWfnegQ3Tm0E2p80oCyhuqUaA== 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=bgVqVbMpfc3X0caBRh7jZLKtyw3vW+LrBwfbZKx+AJk=; b=Ir5zKxdD+nqsz0hXhk0B9T6sxC7InTz3+/bZeIuXeNcK7xzFHF8fzbahJRa113mYFlmMAy2fjum/pyQznE8egyDcIDrlTPVluo/PJbM8szPY+38WU+C4+F7FaSji5xHxt6ThVE9qWyiBHSg1M3cvXpIAJ/TKInL9D4jYZE/XtfiReg+sEbYZYRuZgB+F0jEqeShjdsjf3PeVT7IJgGoZhltbSeMX73IVcBc35jDqER/afjPoBFDcApN5ZbAM6OtKN8MLBZ1sIZVI+lTFFgabohD/XnMRGBGl3b+s2tSvtGFLmiws26FudbZuLrK/qVwM8QZFpImTFVPDp9F2t/pAGw== 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:03 +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:03 +0000 From: Yangtao Li To: Alan Stern , Greg Kroah-Hartman Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 24/30] usb: ehci-omap: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:10 +0800 Message-Id: <20230726113816.888-24-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: 967eaeb0-f652-47a8-2076-08db8dcce94a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: voxVoaOTgJUifUca2v51mYz9VRWZc2aHt+iu7ZgmxEToXPWN7daX3rva81iHXSj6RyIzjwE3nRPfdUdMp7llV5tNBLiCCAeMChuJ4PaWIarwmh92InBvTH3sn0rzBJikVsbVOGoaxjczyJVFKUk4YC/gWyY+DyTWCY/USnKM45zjp51sbj1mCEOjoSj5L2UKZmmtCekBvsMMCSX9ZLwgda/1GmpFflfSc3dvm5H/hedTeIDBBIiM3NOkcZb6pRT+RpknQclfMdwftBOhXtwSILTypRbvu5D3RzS4eHrDwfOFdqhEihpuO+o5IYFvV32pAp6DmyGTEVWrMVIL17+/FSC/f05JgOwjsSCM8hZ1Pksks0yOvwFLT46bFNVumwjxnjfoVBWCQzs5rCtjKX91AnpMmK4LTtAwwI3SRA6Q1AR7/AKX8mcO8PkC31DvfxKHLPrZg+jx/+OdaYcMYUrzp6o/9m3+xavTgoP27pgbWsK9pIJ1GWAJQeXjMC6E8w5hFhKu/8s/n7Idtw4uFktKCzbu69n/u29QJ/dufMkfa2zRLvQNq7nWfiQYWznm8LO26DhcsSTJKiYHjBwpFD1wCHgxALM3BelImyRq3+Kh83kpcYeFDuNYIArljIzAMrC0 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: afT3RuB2o2lQrZ/+EZ06PXM4ZJJOP5boOleY97Y447WqAaq4TpmuqagRY0Q2XBxe+p4pslz2oxYfBDJzLhWTU8d7qm+LOwtisvmFqSVhh56hxG9AXQb+7CKx6fR71GngBTcFUaZyl4RSnvl4khxhmURgV5rJHoTsgSG0QwYdyCYSW5ZWYj6SuTzP/Balw3f4CevpvNG3O1po8ORCPPsRX48+nGDWytxWzKzUWs6rCCojzmCZGwJDQLQVSho4WUI7GdHTSOX1kaoMJwWMGLFmgKpvdbGDTgEJGBZpACuu3aJqykZIGkPz5W6q8fqD/sXz+CE9GxBGwGWCxttP89F6QLgUwdToVyPnpvtmxkKBC7sf2R7GD2Ljy3r6SyWBpYCFUpKBf41fUwRxb/E1Y/P4b2KYEUOmCetL8/7ncZjrR4UzKaDYhzRjfjz/RBS7mMfTYnDEqAinTCAbCeq3ilsrvQPq7IbeLKYtUwsybaAUDjILL8TjSpxuv7O2CGCuzp74hHzPBxPB9HwUsERnkNPqv+1j0P8LgQmcnYiakGrxsBgqkBnA6GrtDwHjlYLL+8L9+uSb8MeKPba6y0fSMh8MIpTqGuA6srvFvMYCowhycRtD0FH8BG4RbcMc+IlzhcGChizkFhDGclpxeNAG2H4AloU+D6/hxgjdpEJhEVaFugpk1sOyDCc+xM8NfTWg2SlnDm7ICTFg9TDtOa2TvHcf7sIKISDN6MzmBOmxhaBbwIHFbbZ293skUKtoSWw9CNks3Hq/Dm8sIrp+iK8HdelrwbiLOT4pqnSYCUcBjaD2jPokMCxOdWnl1iRe0gZt4onAXf0WKmoXyA4J6AkjxfSLmaQd6nXaQTAfGe7xNCF/W0lkGygeLUwR5P2Q4KC7kKIwi5tT09c7MxdCAuZzA8XA3d11NFg/UMmf1nQPI0GLwkD+mnMlf0IWwG9I8W50eTnXKSd3cnq4cMYLiSuwhN7bf2ZC4llTfnQv9NkANY3rOcrkvDsPYaedeQUE0EKumrc2flhjiBvsQUc7wZ+TRPcsjZlD79fiMfbvCoIb4352p8LGgtYX7oBR0XWT3EOH++/moCoRrQKK5Vl6u1jUrYYHjjO5D5FlM3+pUqH7JAqiiwNT0wcCFt1foLEJBQF8zj81IZ2od3wAHsU5uY0HvCgt8LRbrrU4j9k5CNjuUsvJOuHbvvaRiALM2YGX3ESRzCN3OUF+YA8SFiWnHV6HMA/kKr0abGgCFJXyuXR2a/cn/9PhZE5biz0PdqKbdiUC2B4C/i0pXJ4hEaFyt5fFIuBGgY38V9U1vtaTatdUpLdFI8SlFtGN1iFQ2iTzJJAYGjUsrF4BJBUmB+/wZCWiGXh3nbS8rN9Hj5MNaHEQ7OvaChZllVzFcZ1EGj/VFjgb/MWku29qa6qne4d6X4H9bq64B4OKTO/yx+fKxoOg0D5q7Ua6dnVQRdiJ3LJjoMwX/wnQ4DevYNhzcRZjkAknvItMzUXfUlMCOBScpKuVtDA0RF2XZbzursC07oRwGvE5WHghvVVbPjlRFfyicJbRLBtfExVCrKy2qWuDA8YWtR3NquxlFmqItIiIbi5cu5u0GXTk X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 967eaeb0-f652-47a8-2076-08db8dcce94a 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:03.1760 (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: ythmLuXDxVkt4AQDAWK+5kolqhjS5NkPZ8X/8t44KbvWMzViLFFcuhSFw2/13GeaUkCWzVZF6cWMMXrqmRKyUQ== 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,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: INBOX X-GMAIL-THRID: 1772483636953812971 X-GMAIL-MSGID: 1772483636953812971 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-omap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index cb6509a735ac..b24f371a46f3 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c @@ -113,8 +113,7 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev) if (irq < 0) return irq; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - regs = devm_ioremap_resource(dev, res); + regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(regs)) return PTR_ERR(regs); From patchwork Wed Jul 26 11:38: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: 126324 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp367842vqo; Wed, 26 Jul 2023 05:31:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlGAJSPTKMwBZ51ly1Ucj0VJFm3puAcWVYuyCVKwLNQYqMH9lmNGm+Ez+UU+KAhofDhu+5ml X-Received: by 2002:a05:6402:79a:b0:522:2aee:6835 with SMTP id d26-20020a056402079a00b005222aee6835mr1419468edy.9.1690374715779; Wed, 26 Jul 2023 05:31:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690374715; cv=pass; d=google.com; s=arc-20160816; b=kaKeMFsh6GSEUrtaTo84j6oGd3+wz6BAZBqpp32CTWU9yH2XE4DU1/Pvv97Jja0e57 CN8Vzv1+cSEviY3kzrL2DBb9S8W9iUSG12OG6YQE4+JA8t/37umf8zoIf+j7Yc5BGLf/ DBgyok7c4ucCcv2DIaZ9foPEY5lckcPwgRTrCzaMo9zJ6BsW5Pfa5fh5K/kuV+sdwBSm z4PASoJ53vF+oVtcg7TRM59B9ddP0aU74UIqN7INqoLDirSeAYyPsgclwG+qCN112Yd+ QT4kocMPJNhmvKFPDmeNTWuixp/7icFUquhpl+LwnEXseWwVR8KsCLX5V0B5dW/LG+Lw BOZg== 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=qRSWOokjgdG1mYkVtXRFm95UFecnalzqO//wLI2+y8M=; fh=bMC5P8+r1uhJNT7JdPC950luRXJM8ZVXe+jJ3ryOPds=; b=FAppShbVksz/xjY3CvOS0ujcRAQ9pqu4jtQFVckuS/UP69Oe8WzzhNgKV19c9/sfPW jRSGxvGpny9OrCVXDs04AGx84VjLXp3ksGdkylw5WlacwoGfNjWt5iavmLyaVEOKyJDp 1HiD/LFiaea88ZNMmnMGXpKk0wcd2kIeL2RQdN/LvXkjPdjr+1Vv7frHJuNnKcit09ap 7y7caUBjIKeJok+K5ISSgW1YjYcLvR8je6DPxs/CrPyOzKoGih7POVpzJjw9RlNScTty kySDlxpvOMne8xK0eiVLIWd7aP0Q3/cACAVtVfxF4IR79IxQ9Y/lvlQub7EsatjzCQPD HA3Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=nHqANgEe; 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 n24-20020aa7c698000000b0051df58751c4si9598501edq.134.2023.07.26.05.31.31; Wed, 26 Jul 2023 05:31:55 -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=nHqANgEe; 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 S234309AbjGZLll (ORCPT + 99 others); Wed, 26 Jul 2023 07:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234216AbjGZLl2 (ORCPT ); Wed, 26 Jul 2023 07:41:28 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on20712.outbound.protection.outlook.com [IPv6:2a01:111:f400:feae::712]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1F862719; Wed, 26 Jul 2023 04:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X+LF6miDWIJQN2wPMBtEzY5JKfH/oK+fzo8tQWjGGUmtRiZChqrx+NlfDRKbMWjLaOEw9UjixtpXKH742R17pYj/SwV5DH3MHnrWTTQl9bYIvn910K9j96W67TV0g63Yv2uzsOkH4YgBNWKczUvDFvehrMzzcjpi4RTVSlQ5GLdUjJwmAfL/x59SCDEaRMWZkZXWuLG8gf98FIUbNnt+oC1RMczN56T9iBK90G7tEUGZGWr56ieA3qM1Uh1t2wlab/14rHXmsyknFoEGFWI60x8jZjk8Io23o5Wb8zCGa3ZsqXQASHnatNDLjKcg0xVgY31b5aVzW02zNyTcV7jSTQ== 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=qRSWOokjgdG1mYkVtXRFm95UFecnalzqO//wLI2+y8M=; b=KghYAqXtoN0oOCWhJ/1t6x1y2hJ6MJpYA+8Fwwm9I/p5b/8cbYpMTXFxHMFuhlAN/KGqCYnODTE25qRCLAU343Gz6EEcj9vxqaiQR3spe8AglQBGg2H9rS+rM2JAy2Jz5gk7x0+d+hf5d+W76ijxZYbfGGBTH/prxQVPjj+V9Zj0ckJLfI/Bt76rQsaCfcm+32er8Ok2B/OnOK5EQPhKaWr70Qvv+kly1GaHzUMn1GcFf6sb1umXlC6fyjYkbyI8r8I24ydDVxDKs1zs8ZPtCkX6I20JyIda2wAy6kAKy9fOvtPAXRAdJAU6UvKZZWyZWNLdTMVVrUyj3tMg4rkFQA== 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=qRSWOokjgdG1mYkVtXRFm95UFecnalzqO//wLI2+y8M=; b=nHqANgEesWXS4HpNtHg1Sn4zea77jhWD0emQRUbbE5uAH14bbQkvaPpLp4g5zWul9lQJXIrho+LFgSNYaQPfweYYJcK0Sf3uuQbEG0JB+PhJuNJ8AzYEU37iI5LpXO+1HLv9zkL+QqhLhzb4U7yHWCkEG6/QE/Zo0H/+FUSLL8p385Wtko7SqCWMl7OX2qk2QY2TAdfh/nQS9snz9U716vuldtd2fw1YmToNbci6cXiV3bPDzqDGd44xdmgPfoqY4U7UAky5BVtUwqwthiZD22xQWjddYXKojuUmF+cQOTP14vXqkcJyR9mkP+CZ8Wst0OCFgaCo0Qb3L6CRoEU9Lg== 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:04 +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:04 +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 25/30] usb: ohci-spear: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:11 +0800 Message-Id: <20230726113816.888-25-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: 9e24eb22-53e5-4d1a-a9a6-08db8dccea20 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cD8sXWq65AAlQ4fZntGz/jrMohfFlyeOdKO0keFRHXGg+BWYlADTdS52j+y67y8VY08VXx31c3sbEqvPrZPz2Ase1dEEQOHlsUlPc39yfW3CXVw1E17KkDcUXwi577qUeWsQMsgwzGyV520zeIDn3t9bjdrPqO0qeMBJEudcoDjDlpCr6mLeCGCmNN/pGw0wV0pX1MUywqANHdLG3JpezcjYyFrYIrWGQJPdxEGLEPlW/mzWPTK6/pZwQyuve8hewEGU3wMjNjkd88dWIT831Np0ikgdrtnfjrtQ6/UFawCVCcmubiooI8gp/1xiZmX9eJmGnC4DRyvpl0412l2wdig+uOPbgnv7VEOqrzSVFnmY57qSbhWJVJ8pdRsrO61NLkLzV2YUTl6hhroEYtaAkiP5MdBM/tSJRYaYtozBLVWkT2C6uNGIdFXShSUY4VtzKDbJFq6j9LILd5zqq1rHUSXpesM/wvwzscPiLwsNtd3Ois5Ovr1LpVxLKUfFa3L4usdpKh8KHAlf93BiCzpmU+J2qYefXO5hiQ+aL2CA8XW3cH5TGAby9mR+Sd64mu4nKrKgsm+Uv0SYxJoB9/KUUHxjyqeh3JX5io6sLI0zVnEks2ZcP/TdK5A15YQGsoP9 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: 9vUY60dcZi9/P+sRx6KuMLjBJVUQsf1ZyG9u7V4SghbtCwmuiH9Igsc++S40f+DUWccVrRxvTTIq4XeeXBQmOU0Ycyc+OL4XeWjvq5K/cvaZRWZuIoq1ClUEpr3cjDi6T+2jS6N73L/XZLV0hjR/4aWuuVHOOu6V4lmD7jW9hwx7twE2Xn2nubMlIYKWOPwgs05r9C1sQxL8Stz8PCxLL5D3diSiqhoRGP3rw1KP+8poiagVbcmxTebJUrjR3rzG045sFxN/L+65QMuS4UEWqGLQuma/IcC8/DdnOh8+z9Gs9tl2RCnPIV8mmv5V7z8x3i/TP6Dqshun7FrXVcDOIwHy5jkOVS4Z7mA3gDrPNiB5nXfbJmt0iHyXS8KvxWKr338vTPArvtIkRvHd6wc5SSEXUeIned3mGE1nhLewHdL5KYM+KaHG9UlRctJt5kc5nE56m/0xPNvgE81ECzPAVeNWu+v+YNtVRkt9MbJZj5SskbgBtTZM4ABCISLC9wNihpHXwEnUi6ymkX6qaBtNf0V7+M+NX6wS8Muk8dqoWvM2N4ycrOYrPVhem+wVQdr8lVChxx3eaxc44GYX9FyswP5IDKxq4JYkNeCzR7HapLhUvYMRg5wBOI4g2b19KKwAEtb9pCSgF+RY3MbUxnHNl8/HciRNdeajVhpwyRKGj1bqzrs91oNj7hJ/1Qzxz4d3qA+7Xinx+nBwqERdyyVd6WYQLEYDFISPga+vFPHKBVoRFZApwhuJY4R2KqVb7YAAjM+zp5xTi3X2gwwOK9H92ep09ZFX+xrn5uv2TCWzeS7BtHgFyXEoVUxIliSuOf9o1iCYVR9hsiDGBKDdMtzM9R0AxuSQudUbTVAh4kpncgIuMYN3PK4+PaqFDnXse+eaXE25WIigqpNlvZgOXKCD0PZuuQo7zzykAeolWX3oKx74WOlyLF6A2JSG+71lJqi1+jXAV4QspQbw8TSOZfk/G7x8w4+cKcDRRJklOy8UrFTBYm49Q2M80i32qwRnHhttgxuhcJLgORsY2VoiB4cJbIzuWwAJPDEmNDBaOGlSulOZQEMpsgPkBY87AwN4+589kgo3mst7o/QKCyRY3YzUovPcARrd4PyTI2mnNOfuAlgbG1D6dZwpPNZo5I1xXRi5cJvdukclwiZ0df7l+YOtLy96RLAW6I1vjUsnmRi2mpI8o1bSMKly5vw+M3FLKdJgpA20/T4uyzJtTqcCRCAo9W55IDpQ0xQgw3zEk4nr3CONhrgM0dqLDft4Z0VN6Q+vYwojRwxjktJ+d3QtvntWxy2ZaxgCIW09UtxSKnk+PgVX9Lbai57KEFRVwAWl+DGnusSNc2gBqMTS63KAmReAZkCayaI8sZZJMERDWNy02jQr4vXaGzU9OsxM46XnjGNXXkMtRKdI8akpz2jI5IfOa3d2KF4/6DvSL6cHpztOBkb4v5w3H3/eXdyicuL8AnwsWV/H1aBqouixGyt8WDmxdF++9OyFKhnloB0NX0/ZsAf47yGWKC0qZClWwhm5TiYacE585Cp2RHtMco74FqukeHf0dFoC19OLduF46q3cQQRFatKSqO0MbkiQQbdeBDhK X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9e24eb22-53e5-4d1a-a9a6-08db8dccea20 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:04.5781 (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: gKX9OeNnGAfScBjOcPdiGd/8/mwsuA4VUqpcwg6VpikLTEMJMdO2TJ1ruougu4QJbjrVeqW+7xux3yH1YenSHg== 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: 1772486357821353112 X-GMAIL-MSGID: 1772486357821353112 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/ohci-spear.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ohci-spear.c b/drivers/usb/host/ohci-spear.c index f4b2656407dd..993f347c5c28 100644 --- a/drivers/usb/host/ohci-spear.c +++ b/drivers/usb/host/ohci-spear.c @@ -68,8 +68,7 @@ static int spear_ohci_hcd_drv_probe(struct platform_device *pdev) goto fail; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(&pdev->dev, res); + hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(hcd->regs)) { retval = PTR_ERR(hcd->regs); goto err_put_hcd; 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/E4LGetegHof2QdLZbQchd3ZFxpQ5060vs16eobBF7AqfjKcjJJw6OLJjuNehuQ7pKobMxrgJLZAIBe6I2d7eJKHPnQ7mbC0o3cJjXFAWvQ8XH4uOzKU22mX3tr7Dqn6rjdnUI0Wo6rGmG+OHP7gCcr43GK8E5YL3v6A9Of6r821qx7bIn5uiw1WIKqS7d6WDI2al2tHQFvamQ6LEeq4fU65iM5RE/PrFiLaZba+HMJjcm8+b25vggfHEUgq7W+KC52DHgk221nF1IOk0MsheIRlgTgmcwVbd3iuXFd934azs8cFDjWXJsZIKjhI35NpAxa5K29qT8vu8yb7Lt34Ixxeq6PJUNDRi4f8yW3c+S9vX4fy0bNayFylWr1g70ju1CKR+tI3HU266WXyS7DYmmSRVKoZxlRycIX+zftuh7boxqV/wDWzNJJbgbkIs2xK1d8+oLqJVYe5JXlwobK/7gkgjWTpRSQAcMKCihWzGlPB3706vn8Wfoq3UFchjd+6jI4UNerFTjdxGXrp5wju+XDXhCcFbZ2E20pi8+lpTHfhK8c/Ithdi0WI+yMLZpj0F7tV/0XnL7e9E3lRnEFn6mdk7Wjnovo9KNFtKSwMXM1Q5xncAyPyDsnb/4LVe3gAoaJ97+Bbq6DSelUTbhuiFOAksTrAmA9PNupR0U04ODKBnEyN3eRuUvmqpeg1BxldDtEpI09AtuCKUvPgAR0PvckIHVW+wqAmp3+Mj/pKjwR2y8JAfm3HeOLmdyyBwpGOG1sLMIO6ZovDbB8n7VKHRO5Es5Dt/m9PvGogYRvqMLyfKYYonkBkM7E+DQ3WxeRjnlgDwbRB3SjXTXBQvqnuAk9A3iYrc2ZZ65msLBYZIyZUyhtPBtPGLMfXd5QdD1cxSQbqvDbRzBuajJNurGZ+Ar4pg8za1nCA3JsVwaP5d6CPOts+8avaOejxnGzLQ2LKycESP5p5Ma8sf6PN100XVqLLdg4Vd3vsOLP6dMNYfDCmrpCt1L+6XVx9d8meAEUKDVr8dn0qOXT3Ng3Rk4TatcXK31BDSpp2Equdpi/k+N95WcNCVI03DacsipoerjFApFqEUuwj9a77qoQnckUH46h3GQve/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; From patchwork Wed Jul 26 11:38: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: 126295 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp360376vqo; Wed, 26 Jul 2023 05:19:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlGn2w5hzrmCQryE8D80+uxk9WEl/Kr5EOPTfeDYtIXxTcERMNBP57rzHlglim63hgP/QSj0 X-Received: by 2002:a17:907:1c1b:b0:992:103c:43fa with SMTP id nc27-20020a1709071c1b00b00992103c43famr5388530ejc.30.1690373957747; Wed, 26 Jul 2023 05:19:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690373957; cv=pass; d=google.com; s=arc-20160816; b=YfInXoK6wXIacfNT4NLn0Fedr5TCIxz9gm36qfTZhzU1SagjuyDjrqB2Hl9wQnEXai 2dJc9z3PudossjVRKFd+Ym4YFCZxAiFIsbFCe/pV7z90VhWH/2eYJ2PIZTDMxiQojL6q PTXAZoBxwBBb2RDiRnzZFTV2H1NuMJM6nOfXkCxm9GH+Vtk/XjgUwMKSMLTMMj2ahYKE YH745L/RCuwYnTXwiqFMJpUDfb5ld/IUKgkAb9sg4eE8Sv7X/76rRqKseob7WnSQhiaS PpsRCeiPzhL2y8A4nLj1YpIlHEY2tdJzROLBgT8IhT6XRqBojPOoMCArRmwOFWm+dtIv UT+w== 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=J0uFL5XUt8ZImrKit8Hy+PaneKQiyRiLkdanJSVwsQU=; fh=L5Ghj9sgy/E/t6oRMdYLuHiVkJCoXmiM63WMqMbJS5g=; b=I42ZF4qDrVrrvHl2wlrJ8GV4AaFlxYbd2RbDfW800u/uiZrZp+8PKoZ19A3SKeRAzc yS/o7Ut5UV2zOsWgc17/pK/n4THwxC2HaS5KhnvQYvT/GRJxjKNknf69i8b+yMZEAKrp /7aoS+9vrsSwoy8SoBm5/WvCiFyfvOgM152I2a9k+TFMk0ejHHbHSu3ZHR0KVsizCNeI 6DIBB1Hue6/CImtcLbN+jh2PkYe+sDqqg4h40kgY8s4wd9yb7yP90QUN0qqgNyE0iudo VT8enxNda1nCrhOSPmtPj8sfnRnqK84zvYuesDdN/ZSX0RnBopW8lP2J+v1n4bGUhEMU Bt4w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=cPf1eL2F; 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 l21-20020a056402125500b00521a873b32csi9563743edw.327.2023.07.26.05.18.52; Wed, 26 Jul 2023 05:19: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=cPf1eL2F; 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 S234355AbjGZLmM (ORCPT + 99 others); Wed, 26 Jul 2023 07:42:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234254AbjGZLlz (ORCPT ); Wed, 26 Jul 2023 07:41:55 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2125.outbound.protection.outlook.com [40.107.255.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D90F26B8; Wed, 26 Jul 2023 04:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nLdpz1Wz36KR1epl+rGGc5l04shDmh49FGdwYeDC92CNmEVD5jIXrysopbhLTj3hvm2MLuup5NFhismTVUflADAN1ku7KYpJuzOeelvbOTbi8666ijLgtkUyuld/M/gbFKx68BqeNZe/fiEBtq4yTtzsgq1AhIslQFuD2K77nZlYAbnR+TISHgO9YQvFclz3bXObTF1nTEZkOYVsdSe69aXb5D0wWrzNrnON1aDX+uip2pWW4q2O8XqxzD/ANVNngMxxBlnykv7Bk/2BerkeIWDYmEynOQC7aueqmYw73DZNgSZJYBWSx/IX0G1oYhCk2j+jJkTvozT574YVBRK3IQ== 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=J0uFL5XUt8ZImrKit8Hy+PaneKQiyRiLkdanJSVwsQU=; b=QX82j3ixJbNEKEFUCg2hTQK+PX2NF8PZWjhxl0+mYLT2uMM5NfeAzZZp3g7cy+ekRt9s+gwovKrG3JJCcHuhL44ZDen7s7JxamBJ9JBPddQn3ktKAoAyZCziL6LdsGuH3KDOHNZVm3keDAVznwdahOk4VOV2N+omIftg45sKu1lA1LECkA3tK8QI2B6LoVWQnCR+PEk042w9umLRZu2qNTUtMTPeLSKRtrsFPm7F6YtOwNn1A3/rvbeD2CXrg8y9+Xlgm09etH9LrK2QPKhohiG83v6pIurBXLGMkyySN/NZP29LfmYYTK6NEpnSkvxx3GZMt9bxm38kJPCnSqOBxg== 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=J0uFL5XUt8ZImrKit8Hy+PaneKQiyRiLkdanJSVwsQU=; b=cPf1eL2FUbopWfV2DE+6oQyTiYL9Jk6jYmkfL8Q+0fC2Yqlw1uKGthXHAdL0VYMabNrAOzoS72yduoUFRp7S2tLv0VjvdjFwjm7EO7Foeq5mtKfKnn9eWWIPH/CxvarcakfkMgqTQe/Ev+3tGtIGZOiLznDUUh6HT80/WZ1/9A9C3tyYlJjhHy5Emse7LLJWyKXo2Th03E2sljiRd6yohIgYVkGYM/oqJnV+4DSieTrfBODDFzIHK8cxUv+UE2Ysixd53/OFazIJrGyQ5NbGoP3/4JB6/2OJdU73ANcUP+XmnV0BrXF5xJ23NxQ6NRP47+NvgCEO8kdRnYHiqP1l4w== 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:08 +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:07 +0000 From: Yangtao Li To: Alan Stern , Greg Kroah-Hartman Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 27/30] usb: uhci-platform: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:13 +0800 Message-Id: <20230726113816.888-27-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: cba60e26-4326-4dcf-c803-08db8dccec1e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6z9I9Yvza1x+mOfIBCqE7lPDkHRVi8Q54kLOsbFRpVop7l5cpzHduQE7UkPWz66mpYhpNzUfOEJ0S6XiXFTSyMNu2WaJwxXUkhIKy4M+XCiDbfd3Xk1A2S8DkwBRKYzj9DmxrtyCmVxl4/e/Gts1I19bQQlxpZvq3wDuEnftAUyA4MrUesxdzQSR1sYInJaoXshgOz8kfcAVnn55albJdcIuxwbzdmSMRQrVerI0kv7uqnPTHNtfJ6lWPPiOrmIZ4BnB6CNd2NB6yduBpfjYOF2j2mf3Ax0f9CKTAem6oKBPpMW8o88gbFbyKSL0hIFsmgMYNO6H/aeGa8izCkuFSY4d7zoMw5L/bjZVUfzGhSbq6+12bZ801gLpw59FxRNkRZocUa2/yPEZ+0PLazeyRMhcF15CxFZ85Mz4JYwDLO8rEa4T51/gjXsBfxxsybjUUE4qGhnNeHnyUCyAUHruoF0Q+oo2/k4fw7hld/PmxkysNzKylOk0YCN6t+9DiaZoowDjqMK/nAKZUqjSyMcpfH1ic3J08sI/B/O3tzG7MU78upTthxett6ul34Gtorr83n+K9a36V10q3r5czgIdi5NstzKVOKUFgbGSHgKlIuMIRhOUwYFwIE2McGZi1N5U 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: mQMJJjJedODhHKUG1jQpB23sa3mh20SGYo9hTB30SseneCDHmtID1RUl4DpbxhPXhzNFAwy1AaEXJDe+ZI6wkMGe5Oyxi+P1LEBnmZiaMKMGtnBsSx9bTZkmCrfztrdAPWm13d6o9flYjUJs7nSiW0DD90+kdA+u2TPM/TkgEc3da3x1TVaNV/4sw6mHuPfdciinD+TpXy3CfGKgCiqEqvhJeGlw3YdZ+yXPUhOc/RlGFmctF8twxqwT6ymxIfWmuij5SsZphAlHJw1xbNPSRAsIrJQ0m/hZugATRt33a3cTmMXtm0NID8BnotosZiOo3Mqplou+aDh0GvKQqqC5UIHnSqPjwigeP0+radGdE5k/tMs+VMVfQzvvRNidzlDC+rXWvw9qkVBFLEXA9NyagqMEG4RmH9lqueYQNTCqmlrVuJe8keQnVRKSDahoXlh/o9Yc3cgrCSAfoiTmoSOz2/Af49dU9kb8OiIS0EeVYqt8r7xRXwaKIdnX7QHzVIJNJbPIs33h9KJNW/fhbfRVv+l/Ko0anr4JkkTfZaR48Noyd0thI/cvF2Q8ptNTWvzg3GJQGofwYo865VjfGYvIec0eXs/MSoJS7pqttfSf3oS0a+1v8W/GgT98aQGZ4IU5gIf262+C65yNGxk5vXzU/4DXZftB2CwtdJdHT3c3NRiHPZgnCV95y3cEg4ERouzF4qcfejygN+Fh5cDRwcUNOSzbR+ZE37Wyjd/oDwKVjZDVwGnv2xKjaDmQoSeyyS9mb93xUczTAeoHI2wdaiwVoZhdGRc8ToiKO3bFYBEM12mb0/uQE/+PcdW7cJx6vp/dsaaDpAM2MaSGgjT3buLxFjLcmthlID+aQbeHGeiAcwIqO6AOb+A/MNXWfAdBJpnGVPxIwgfyz4Q7o5RtgbY/ehW4136JHz999MLty1D2gn6579XUyahrFWZsoIu8T3XrxGLbkhhqLlJn+pqP9mGVqTK5cgcKFNYb2ClYp7ZJ8VyhjxbS9gcYPuWo5nw+tib2EgCNOtabiu6V5cgFt5087IhBuNtWdhqGzQQ6hOXcs+2u/rLXjPzxzoBNowD+HSn/ruzDoAIU8LDn3X11Fap0xrklOVovhQFp3rnRXrRNzjPKi+Ak8FQ/rCHy3UywWwPZhTvHOmwGbO2/qyj3c8aFkKX7/2rnpdSKInHl7U1p5YUPxz7YhFsYxUijA1K7auZdm8QgqWZx+iEHtIbILgq4EbthYAWdmtK0FuGZnQUg+S32RUsw+I/bxwFdUVifRKpfHm41a01z/CCMfzIix54sGlPmE86V1IzibEMXhlNF6my7xv+FPEPruDvu99mv+V5kbTyAcCuIxZYO5PevwDpXsVE8smnCcTwcMBbrdm5oxnZQN7T6KLfeoi4UhZUdfKg2FcjbLUy+hrpkC9miX806TDMGu99OG+vfWdK/MRBUmWoYPIQRGqQ4GB7QJBsJvHM0/Lhvsh2+xyZAqQS0rt8QPwv77/LI5OSuB7CyXMypeHfFLWYyoTrJofRB277BVZleHz6mWXoa4zQc5bdr1PzzQfTSjbrAryD65pFVWcwYtxjdcbZPeIE0aPAT9C2fUpbK X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: cba60e26-4326-4dcf-c803-08db8dccec1e 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:07.9438 (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: Y7XSUccD5h4LHnq4dYEsY+jI9SNw2zsr0xUg44Ai9JRuUhLUkAOuMCI/5mI6S56xUQ+mOJ4HorUCuI/1kDqJIQ== 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,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: INBOX X-GMAIL-THRID: 1772485563174184677 X-GMAIL-MSGID: 1772485563174184677 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/uhci-platform.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/uhci-platform.c b/drivers/usb/host/uhci-platform.c index 71ca532fc086..3dec5dd3a0d5 100644 --- a/drivers/usb/host/uhci-platform.c +++ b/drivers/usb/host/uhci-platform.c @@ -91,8 +91,7 @@ static int uhci_hcd_platform_probe(struct platform_device *pdev) uhci = hcd_to_uhci(hcd); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(&pdev->dev, res); + hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(hcd->regs)) { ret = PTR_ERR(hcd->regs); goto err_rmr; From patchwork Wed Jul 26 11:38:14 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: 126291 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp358974vqo; Wed, 26 Jul 2023 05:17:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlG1TbcADdEKoFdo8iczEaOVMti0D8iXRfwzNurAyYa7AkVRxk0GcX95lo5GlfaDfFMM2Gu8 X-Received: by 2002:a17:906:5db4:b0:993:f2c2:750b with SMTP id n20-20020a1709065db400b00993f2c2750bmr1502606ejv.17.1690373819732; Wed, 26 Jul 2023 05:16:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690373819; cv=pass; d=google.com; s=arc-20160816; b=AeEC5Po7WsgQgZ4jK50vUuCoL0hW965Atr3LA60T39wzdxE+4cbo7GTyg6ZWf0vloI Fo7N6+xi2ogmX9CrVWQ0Y+vU2bCdsCHgca+VBYHFS8RG8FWRlWyzZ6Q8cMGd/WFSSRUr XtHK6jiPDR14ezEXarEqm5NL6EcdiQKYARirlvjqB4HSPhctw219k+QUaY6ujkwOk/1e ZpEdl7wXt2fZNNe55AOwuQVXYpRK7wzxvIi0TrhN8cUOLwTGX12Ks1A9xCoKL/uut2yK uCFMqqx6qTPswwDP4Dm02Tb6/zin4C0Wdvt4FOmAeljuu5yeJ/XATEu/nEg6gAHkM3Rl P+0g== 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=IzMK2ZTWQqeEp762bPuqcoSy7wM66j2IA1G0Fecpu7o=; fh=nSbBGnd1Lx7ZPdOWZ1B2apvEofxypEx87eIzY54Yuy0=; b=I44Epa8XXv1GACipfH5Qj8FgdF47cokU9uQW9btdIpeEw4DqOc3HW7GWl4CREdWE0z l2KmYQTC2Y4Y2HRlnalKJ8vt0ebpZyplPxqJWXhy79SKQ2/zIKhFRxt0l+/MxWC6R2KL /cDJNaJLQkE1jUKWuT4nDUfoPXXPGMGTilVm/zMsGpkuMC0sZ2H5ezE8Hy++xqGMKM86 X5uG+Tjn/xIYbRKjO2GiPcZsxxurfdjZigAynOteDMVjrPLwK1sCyHNoMRbP4FttLQVZ GvYyM4XNN8/db29oPrIWcNo3ufCvJ4VcbZz4S5CwM8docE/7Nw+MWbPYEmVwC2nY+fpT nSAQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=JmoeQqmQ; 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 u15-20020a1709063b8f00b0099bccfc95a6si355164ejf.634.2023.07.26.05.16.34; Wed, 26 Jul 2023 05:16:59 -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=JmoeQqmQ; 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 S234371AbjGZLmQ (ORCPT + 99 others); Wed, 26 Jul 2023 07:42:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234276AbjGZLl5 (ORCPT ); Wed, 26 Jul 2023 07:41:57 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on20712.outbound.protection.outlook.com [IPv6:2a01:111:f400:feae::712]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2929D270B; Wed, 26 Jul 2023 04:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oE3rKxiMdxa91tV5J9I2kcTRsfsnJSgyogGIaFtwH2yxlkU/SD0ML41ByAaW8nN5505uCSxOYdn1PxaKyfh1KRSlX7HjUxSMGC9vegGiJMZ4K1AY8RZUxJk0JRM3pXboS/NWnvSea1VVfgiJW1J5avdFs4CVqiCWbSLEAhKjTSZ9fjzWt4+o5CK59iBsoHkj9G1kWHZTzLurwHfwC7xHcbTxk/zH1HweS4HmR6hds9iVB9vQ8Il8sFC+FE/JF7F3SQuYa1WsKqPHXbXZw3fJ8iwszwgrUuhEgvrRud3g8Octxiwh4/jyI7TaRJa7V4u36+lpcbY9sIHwfAj020k3wA== 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=IzMK2ZTWQqeEp762bPuqcoSy7wM66j2IA1G0Fecpu7o=; b=jMPdjRUwlfQ9P/FPX3Cx+LtMEjte9o6cPhJ7Z256gRSSyy2jrShm+zYvl3et9LqK0fDJ5ncBEmYAY5OZ0zCtd7bqR9b1+XYQqrku4Px5Gc0AUTNBVGvKtL/OPM9OfDWrQ5h89oJQNJxMNH0rNWTlNBA6dWk0cz15RYYU6ArjbiNL+EobWdv6BFOZHW7TDzqP7zlSTWPblk3f28zrW8bZ3i855A7HdzZIkDg4mDo63rsJzcs9XA4nbdNIXowU6mVzNIrBv/0iMCc2c3K11GrE7pXhOLvA1lazQDi/hHhDxQi0gdVftmxj20T2dPcKDzGU/Ueti+NZECNL5hMak78dOQ== 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=IzMK2ZTWQqeEp762bPuqcoSy7wM66j2IA1G0Fecpu7o=; b=JmoeQqmQOeFefJtDSSJrYHV/fq4+6RNN445W0rZa7LkCT8/JRm0dvFVHD9zp2255f72+SRPNxxlBV/W7sOqIz6hCVeBYPO/Fjyxzvoci5uF/ln9TVzKANRlZatZqvkYFNlBYe9yuK8OTS8lX2h7eaxNS6W6WLCr0QiBcUf7nAbGlIvoX1p9oxBgDaukUgiUGQv18kT5EpMY28L2NSvPv5CRpACWGWOShaV6+YV+CMyIhTJa/6stkxXji2DFhomRPYUiOx8bFf2EyWvYXC9zyfvM7ZVUo65xlOJWd6OF8CmMOo6oFH6GFA9LEVo/kCk//H/u/lM8dVPPgejcA6kXfww== 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:09 +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:09 +0000 From: Yangtao Li To: Alan Stern , Patrice Chotard , Greg Kroah-Hartman Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 28/30] usb: ehci-st: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:14 +0800 Message-Id: <20230726113816.888-28-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: 8499fd39-ddf3-4163-b055-08db8dcced16 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: L/XZ770PhXC6vkPEO+Kx2ieyJN+wP7LoW3xd7VFzg9Fxgatc9IeObxDfGG/60xlMHOTuhgnmLU+BBQ2WC+oio9BJYbNWRaECHqY9fZEYpA6QTyNo1wJzBlwUrg61Wyj6JfKcjEo28Y51qkfUjyqnGRzYs5Muu9YYakYghIVGW+BqE6q/AfXoxyAfUZoT6UI7HiZV8PQ2QRjalJVhQD3Krfq/nROMX0kJJbCt8Rb7nZyEce2HpkmvZpmMtoTcR2z1zq8IJdH+LS27pGbyoZ6omAbEDcUza51Kal8hPKqhHFqeKvyIN3ZdwNPFqVk2d2XUi68VTSG3IHoU4/D689qxdxhnWsFldueGx77Ug8cQq01/QGUnGzBy8KhLKHeKqFvVwkhYfNfHq9x+jHP9QD0rWqWFNeLx/JJaSFTWugoiGmLZO2NuNvuQb8+JEUJCoHIC5FyYGAP26ygh57QNY2R6jZ6hCZGhF02yI/b8aSoUa4tlBcGPR6bDKyuF5Ndbu/zP5qn7QKi3NuoFFGpX/bps2UuzBif99e4LEiHs5q/VWz9UxBSba0nVoUrSM3aNU0XCbTdCzSf0bzYLvo8xEJ8BnjgHW93BTvnscgVx4p5Ex9/bYC7hiLzQkw790Q0Lk81C 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)(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: LobCdko0s++Jgkq2ZXj/KUuPYJOJJLTWr4B/CXOFUNEemoaxW2ar1UNKjYYf5SstIOVuX36N1EPvkFcarFcN277wJr+CNU86rZqYzrflcQRwlQta7FwnVnuhc6JEUU0BL1+jInVOVpR98I2J+0QigfwD153cwCNOXaUJZfi8s6XwxNtRhiQwjNqhOFFWK2ngdZxXf1/PiUP96JHv6TsOwlGm5UTf1kf2z1lnFiWOj6AV6gZ1TfYbcCto8srFuP+15kyg5XOctnGaOmAuWxX1vCFP6PmVStG2pfzVtMGpqtH+l9LVZ4mm00H89wuha+S1QW3tEPa07VQcfRX8MkcsR0yHhEn5IeTPP3qZ9NUOuzDnrC40duMeyaMAGtFJQ7jYXVAhg1SlaZ1+Upxee/MEwoEchiB2y1iTwNQLx92bMq+VW4XToJprq4hZw4thwmsDn2uGz0u02EVN60zkBm060ttg/Qpbz5W634OsUpl9HUNIRDZbNGc6Yei9AcKf7Z5LhoHFUmprXCki5ehLvyG3HYfDxfE3SCnIQT+aYoZ+0TjgrLLDULMqcfQo7mC2avz9uj0pAFlLIThtRy+dexPbuUcEJuP2vjcUuvKTBsWZyPfTfgImZQT+SoHmKsBZ0ctzfWWHkE8r4odSJp/CLfHnKSDGM+aEQZcYYDvQY32zFz8ko1dGYr4FTLk5vQolDtOEOrn40yNL52u5+u3PA0b9WlBDl5KGHLYnrkt1koCYpZKi4Za2gy/j/4SgHUD81rDH49te3+xzgH3D1jPgiKM/0B90ANeFFEhUd5MpFVqUVhR90q4fKQu7fozLMeJ1ELlQ3VmyiuMAP7pmMPdfxJpzpowXts2t+tmtDhcOP/LdZ/Mb99QeIvceWeeJd3X9pU4n2ioSRqGPpmfcIOcSEO+7ZXyMUdBzQCj4P/uz3fXOfx4noAWFeyOp8ghkuzAZpcVuzpqdij8NSCm4ntrm25dIAak5Gm/dRtUQgfKwbnxkOaAHIrTofhSMFDZgo42x0jA+6vkfjiL5jF1uw5ahM9Zb3UC8VV7ZnMvAeiCmAH1HEBl50bHDC8musi0lDxPntW2P/BDlb9pBMJbVEQRnz+13vXTh9XflyZta5tZEnGKkBi9/iiJcPvH1jC5xbIpb8D0Rj6DYuEhvs6ZaGZTN9tbEl/4JV8vS/rVmp+ym4DUsOMekXlkJEUBmGpFgYwV1YN/GLm+tZEwFvLB+/dXHF7bHuPERalHPRqLELftnmOXqHzBVH9Tk4YZq98vReL8/2OKU7jGdEZvrAWSh6EPlaYB2FcUxQcK3VnptOMNIcee72GXPvBGm6OFNAN45aU9sRVrsoDzZn9OIAvidm2N7ikodEGWixLPABkPW8V+q/sfM/NU3jpcJ/vE7WgioHladNDi5PYG1q9WbiJv0mnDiz37Gg4avPWAdzVs6dwE2zOyAEpyhQgHZlBPlfZh+yy2vvuzfSKJekXD7YKN2iN+YsBEuDcQN21xjbiqcaA3mr87+PqgX888u4bTm1dqDrkF5mYpvgS2JH1vUoKGFqWlB9u/b5ekrePXHTkz4BKXAaYij23hr/fe+B/8ucEn6MKUfu49E X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8499fd39-ddf3-4163-b055-08db8dcced16 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:09.4879 (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: AxV3iY8qeWG5mBSz4ZJfgjfcd735ebgIsxSuEFMQN/4RpfTUDum5dxa1uY0BHr47qHq9QwhW9/E5QtCXnPuL1w== 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: 1772485418529403619 X-GMAIL-MSGID: 1772485418529403619 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-st.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/usb/host/ehci-st.c b/drivers/usb/host/ehci-st.c index ee0976b815b4..2dbb0d86daaa 100644 --- a/drivers/usb/host/ehci-st.c +++ b/drivers/usb/host/ehci-st.c @@ -158,11 +158,6 @@ static int st_ehci_platform_probe(struct platform_device *dev) irq = platform_get_irq(dev, 0); if (irq < 0) return irq; - res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); - if (!res_mem) { - dev_err(&dev->dev, "no memory resource provided"); - return -ENXIO; - } hcd = usb_create_hcd(&ehci_platform_hc_driver, &dev->dev, dev_name(&dev->dev)); @@ -222,14 +217,13 @@ static int st_ehci_platform_probe(struct platform_device *dev) goto err_put_clks; } - hcd->rsrc_start = res_mem->start; - hcd->rsrc_len = resource_size(res_mem); - - hcd->regs = devm_ioremap_resource(&dev->dev, res_mem); + hcd->regs = devm_platform_get_and_ioremap_resource(dev, 0, &res_mem); if (IS_ERR(hcd->regs)) { err = PTR_ERR(hcd->regs); goto err_put_clks; } + hcd->rsrc_start = res_mem->start; + hcd->rsrc_len = resource_size(res_mem); err = usb_add_hcd(hcd, irq, IRQF_SHARED); if (err) From patchwork Wed Jul 26 11:38:15 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: 126299 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp361194vqo; Wed, 26 Jul 2023 05:20:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlHmAOOWChEWGsMmQqf/pfUTU/UfGUmXtKy70LciaJGLRifkrtViZmeRwh3a3dN3I2sHxPXG X-Received: by 2002:a17:906:53d6:b0:994:54ff:10f6 with SMTP id p22-20020a17090653d600b0099454ff10f6mr1731910ejo.30.1690374043236; Wed, 26 Jul 2023 05:20:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690374043; cv=pass; d=google.com; s=arc-20160816; b=RRdJQpQX27N4SH8zzQZZlohcvEtPUAdaz1JMnQR/+LbOpRynKNU/pax63TGL3Y3LMe Af0hMKiLpEK8EG1TXoWqoGLR77h+kJ105Ph+jDGxn22dvpiuC5rwGPqS9+YKC+Tqg+jv TLTSVhkwzxH9WakODz0pA4fV+Vc5AjBoMKIjCQ9q/h8KhI6VON58l30q1Vm+vzq9kCl3 bIPFGiHkEo1M2jFXqZ7qiDZI4GEKNMU1gu+jrfayWIMJPFzgfQe5JHHiGUs8anGPDaZ9 6O/ZcDlCPA6HhINVRYBgB8Jx9yYBny5+RQcjB8vLm2CS4rrd2csdxsUiI7vhnCxrquk8 bFHw== 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=GSdfkUbBTBOs/S/Z3/ISwWckYgrW78BZo24eG+DeiMA=; fh=++c3CZSJQp5iLaO4rG+4om3SLiHzZNbADjkp/0zpWO4=; b=o/sdhlknx47Uko33j/YL6PWHRa28Rk2z2724AfNSW19dKdGlaAZxgtOWl8KtFJ4k7a vhhnT1iQrW+Un6gsobBnYYQAKeoQmEk02hM+mQxzP6W1tluA8dAAEVUu+51/BUHc43xM VIV81FuvQRirn5lvDH5mYMDGY9rJfDcnNN/RF4y/OlNNNKRGqlXs88FUn0GvVKXo9VOd 4cqxuqVJzunHAlwMhwy8ZShQWm4h2xfc1OlYW8020Lgpu77E8ytVofyT9fqDyfuPWgNq LqAq6KhGo44q7q5Yj8mrU0ilfnAJ4ph12zeaTvr2/W2XhxrZRxXWNYOB541qEh7kiYh7 lAUQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=HbeHodDc; 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 lt7-20020a170906fa8700b00993b3881ecdsi8721461ejb.687.2023.07.26.05.20.17; Wed, 26 Jul 2023 05:20:43 -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=HbeHodDc; 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 S234216AbjGZLmg (ORCPT + 99 others); Wed, 26 Jul 2023 07:42:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234386AbjGZLmS (ORCPT ); Wed, 26 Jul 2023 07:42:18 -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 07BEE2D5E; Wed, 26 Jul 2023 04:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h+nJLtQDVke/ZuGL/bvAC3oWwz0oURWzW92yP9bOLL6kDYXLhne6mkRpFkwcibA6XZySscsJqZTVZm2v9XaloU8HCxg8HSTc2OGIY8f1/OydjGXE0MD2tUFfThEZ5WraNNJcNLEqJuhjQFIqfSH/agWXtKjqj7+W+SxX97mj2IOZ6UO2xE9EaZdUOlkJDVfUxJyHyKiXuHznaEwRjzW7S2tkYu+Rpw03kig6JwKaUS4SH9CfPRAAF316dcnr4W2+BwCjYN4uGmIi5kex2try1lwJvgK2WshUuCym9RZcx0Dp86nx3nN4eSI6WWIloevyP8Fwf6ko3R4fPIg87PaCQQ== 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=GSdfkUbBTBOs/S/Z3/ISwWckYgrW78BZo24eG+DeiMA=; b=I4jzExIpRJR1k/uebKUZh8GpRExqm8r7bC8J8N6J1Cb9UUf+bUwEZKV9EP9ki72wZMJYcq1cc6OxsSStZUy8HVPU+tQUiAds9urDc4pBv4nTabbuJpzbYYHXtLE0x3OQ7IOtgbv4VDtn3hHfbBWUhAjPzuk5CK5BCI2Sdk4/TUIE6ZAhKCrWHW9JxHER1GwXFlRoIJ8PHS0krHHeCGBcAyKA2pSLPI1T5j7Ou4ifgwDkhBAQurpphveycUQGGmoLi/sy8mb6+NgGrXHakUVjW67Z87WefoeItQGTfNsVYFlLnCpJY07iCe5rG4XpGa/eDRULFMnqGMn+E7zvTGA0Jw== 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=GSdfkUbBTBOs/S/Z3/ISwWckYgrW78BZo24eG+DeiMA=; b=HbeHodDccDsZojb87IN8MRhXDU5msGtVLX7Pd3joYzX+iJc6AMYiThRyl8/Jewz5nNA8GmjrHD83bIylW2Gs7EUGZwSQDquvh0fewbLEflC7SiS4Eht0qvTPBnWuOjURIuPQnQAx/QGSoU8/eIj1bxQyqRwYB8dQ+w7iFcbZ5LbC/QetasMWB9uQ5xmea+uJqTiTqp7UWM8yr4xWPNfBfuHjypDTif3Kh7N5WzR1/serqCmOFDT4uID8fZSBqqGliqzgQA9CLkwO3GuByjtkaDZ5LsiBYrdmDiNhqF02ZuCsk2qnAhJJ5V6fD1Ug20fprqFP7HRDsc2EnSJE1T4Cuw== 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:11 +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:11 +0000 From: Yangtao Li To: Alan Stern , Greg Kroah-Hartman , Krzysztof Kozlowski , Alim Akhtar Cc: Yangtao Li , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 29/30] usb: ehci-exynos: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:15 +0800 Message-Id: <20230726113816.888-29-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: 982df809-adb2-4fba-e33d-08db8dccee3b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DTAfsTBOgefkkZzEmYcjFjIBysAbBO+0qo6RN8NkPlK1vZzt0M97AZiDi61Df5qqaw0cyE+GXf6nKmpBJjRU2fXopBdHHo0uljA2UPcp05/cr/iSFL2/Lg8gBg7WdUIt/tWMK0fjkKVU1Y/AyaUPwUWoN1pMGbnF+mf5GnykAtFUvrnbYVDeL98UNT12uAgV5umifp4+tJh04b0DBdDVKyZCnYaYL63Ppo1MFKb5A9tg0y87WYMpIHfWxY/g+r0Kc+/Q4VbVi2+1TXkyHl/ymzV9kkfky0u8yNfDAPHVbgN+0G/YL1Mpozs4yK3/gBwQOcxZPlpXtnWb/IU2WkMPbQ/XUAAgYq5K3WYlaTjFdjwP4WN/0LGacD//g+vhTx0lwM+GakDsSvFfqr2s0lM5qlljOG0A85ABeZAsPQGZ6fF391ZmN0FwquR8pg9O4KZVmFVVbznWGv4kJfwMQR6jSUA3ybWamkSyNqo5LG60jReYogb+TqfLd9moIqSNpEBkiRtLKqLc7pRyjyFvN0lXGxRf0RNUunJyaFI7uZdXleItJtSIoWkrrj3nErD7cfzPEXUom6dp2f/qj+8fXxp++QKRt5Y0ckVOiRDqPXDve/rzhZCWGk49SadA6OGWsZE1 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)(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: qRNqctJCoSQe5b+VUWtOF14tZrem5Q8TOQKnHZHMdmJ9cWiMlTElpKoDt/3P09iZLesmO78WkeAndb4dkARcZerYyKrDLRmuOvjag0Udo+QJn0JKAIMlfwQ316IqiLT++aOh7DxRfqcBSGLpSp8S9LLI6IoqN4N2qAgf58sO+2Dc17k4W4COZ1BrPrYwz4RuSu05B1YM7Zw/DH9WfXxkGCtZL/pd5e4G4fhMcky7HTGFWUBMXpO9Jn2B/w8qbs6nzSsje/xD6JC0yolMnwJ4cXN7vhrjJdTeAMSvvQM2uKeMYqJE2SO4isigXWwmCKaMFgUPeSh7NkvaMwBhI61lRps0jVneMWJnkHLwBCQyowlRbY7aEfH0/sXCrVOEGDyu2C71p5UOxIZjAfcHEKza/VMEI260Sywdzm4WpiQ4CEJ+QKBcHQxFttgEjmCzkjNf2Fp4TBokKs7RgXedfU6gHmBZfFP3P+pvp4KC0+SHQZ3vrD8CvKzNwB9MxBf5M7XlIaPlXz8khrGRwJ5H/fQWqjYujy9Krr/qiQ5V79sycbROsT9g3UEGZLsBDKqFdxeW7gic3ZAkAdh3Xd87QYKkWIp78L7UPPX6zUslDPqATz03kAtGTvVySCEPPrOLDeyUrTkYnWhCUEiEGQSSaFqYZxKRgVt7bJ9vN/0P6grEVhOJS+C5Oppv0oVXF/tQ+qVkWtCkNbj67NRVuhT6rC9Ydj3mGOJQEJdxqkqIMGfVn6DEopLe0RLDtMoZfoL62RPvehfd+zXbi7VcX6L9DBc/LFWdpoS4sq7lLsZKopBlA22V6u0GzgIie1aFObvP6M9p8KWW6PkTMz4HJfWjDIzfwqnwTCjUU9dql1RXraCoS7pDsEpRCWipCECD8syX8A4+3hcIeAONsQ8HAaElDLCAE59HxdDqvVUtY+vn8WzniC6Mj+arw3DlsVYo+Q6huQXbmM3pvYJ4EtiXpR1PFJPmtHV4+ymFzbei+gh7/jOl82phIusG3F4KtMTo0O5jdvRWnJmHpkPGq8TMIpWBQSgUk59p+oWybc//c22ahn0/mIi/Pepx0RItt3h/2KkIZVzEdIquJG3dabNYtRHlcrWNhB96yB1pU65rN1n5qAf23ZksuoaY3ZdK9t6IOZxrlC8/7ZjK2S7e5WChjDXEr40Cc9al8Zd3psLFzawkPyx3y6LjigXSopFvhM13AB26CKlRR78uQOFJtwiYNn4ysq71RSy0FVCUfh3xMx9+2L9bFn9kMoEyGHT4rtBA2/syube1Wls406syX6Dn0wxJnaNzRxKhXNf69nkibZD4VgaJtKX8B2M7f+6UYWXZWlUQrFL23PSwXOnne+sjunggsN2c6oYOeCm0IbcPhhwzFAObNuZqGzzjLfXj+OrO5MRrnkblAOoMOF4aos+f1ihOrXShwgxJQgT2m4lM3JXTW/6Cyo/2wqRFR+6axXiU1XxlwMnSe1KQHeVV7vns9GtBZjpI2YGWTuHxZzVaZT+dcyOb1Xe3pLia9h8fgBGvYUVbb7291gvOguky8SBCKMHdln3H180kgDW6g80GkhOED3qyTVpdlijUvSZl8DdrDGr6/qF9 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 982df809-adb2-4fba-e33d-08db8dccee3b 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:11.4785 (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: zAfZwBZ5ERNSg2RdIYErsnTbCHpKixdQZgcfFKoRgr3gpYj2bDHX0FbWBnMAgNt283b7o6FWLz1BEK1a6jOGKQ== 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: 1772485652781958321 X-GMAIL-MSGID: 1772485652781958321 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: Andi Shyti --- drivers/usb/host/ehci-exynos.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index 20f8c0ec6810..f644b131cc0b 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -173,8 +173,7 @@ static int exynos_ehci_probe(struct platform_device *pdev) if (err) goto fail_clk; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hcd->regs = devm_ioremap_resource(&pdev->dev, res); + hcd->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(hcd->regs)) { err = PTR_ERR(hcd->regs); goto fail_io; From patchwork Wed Jul 26 11:38:16 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: 126296 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp360507vqo; Wed, 26 Jul 2023 05:19:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlFMButIVQmqfpJpXwEvf1rA/HbnVkupGgfuEhi3g2WbOYkEe8EY/nNpoLfKgSyXNbglksV1 X-Received: by 2002:aa7:d3c8:0:b0:51e:34d5:a23f with SMTP id o8-20020aa7d3c8000000b0051e34d5a23fmr1420700edr.23.1690373972310; Wed, 26 Jul 2023 05:19:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690373972; cv=pass; d=google.com; s=arc-20160816; b=wcbLubEOncwk3Pp2XQ6zQUqFkEDWYksMdnXBAIHngg83cp4g1KuyFlC+oJY++Fx6Fq EBMmbYnyPD3vw5gw+RgMbc0zYEIx8vfPhwBcWkmFDOaq/iTFGVrz2+fxVgHxe/4HgKTB CFxh4k7+CO14Y1dxlwh2Lbjs0Kz8oLAT1GLovMmGUeldtuLeRLMh7nS8wyxqeG3OgTlF BvAo9ldFfPEfNSHVtv/BTDKy7wLuQKH0e8ut7mmHvAJSyMN6lWctKeVv1/kfYzTF9Y4q 2Ku1bKBNtGhiG1FNNj7zzC51/WLwsdLXIsWyviD/mQwczRSDO9UHcDvh91zv4YBSKgPO lVFw== 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=WNYGem56MsmLlcj7RD4L5IAaIlnclQKbK0H9s5F9+sc=; fh=AH+X6cXqQmJtmgXIdo9hyVpt0ELIsX2CYmM7DZbM564=; b=XPp/EwqWLV4BzWYGPEodqRl8hIcyNQEQFXErrzRwlJasnuxnxm0q6fJyGim9IZWR7p JGJfLOa5Gc/DI/v0NS2nhRzp56mA+ISpeXv8KpWJ91b/tQfMgRpOTIcxlEK9XXCH8JO0 BSl2OnHGtTfLGgpmjBhkKNtXyvErAnUaPZJXLgBaYAO1TEOULf4X3ve/5qkXWxezydgP r4Q6MnRqEyL0YarJ3RkQRdQfNF39wrbp44o6pTVlo2HPMM1hsaUvc1kOTb8/gbc92M/N XTDiwWr8VCdADLTahry5CR00oBSsFzw+krKp1/IB9YjVP93PnwZyN9GTEU4jJU1WkQkY xhEg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="bfp/j6tv"; 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 r22-20020aa7d596000000b005222af123b5si4943549edq.680.2023.07.26.05.19.06; Wed, 26 Jul 2023 05:19: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="bfp/j6tv"; 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 S233764AbjGZLkj (ORCPT + 99 others); Wed, 26 Jul 2023 07:40:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234198AbjGZLkP (ORCPT ); Wed, 26 Jul 2023 07:40:15 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on20701.outbound.protection.outlook.com [IPv6:2a01:111:f400:feae::701]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B13E35AA; Wed, 26 Jul 2023 04:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Cb5zkHObZGkBTiJTvBbyRpSXkxdAc9uvqArU39wlqlexZstqFfDuC+g1DSNmfg1EguPB0g+5+7N2GqzV1JZ9PKfuG7KqQ4A26RmmzQ5CKR9qY5Pr2CF0R1ChjhLaTyhKRsbHpQ63TG2FQdN6JsOtpcO63ffLotqUbiMK5PsHCuuDUGmyXDqp1jceXITVrnqu1FRZP5iDc00MpdO5a/PxmItKYvGKUZCUXIkCP1EbHaCc6zFkTCL/5kYk6ZnTN+8vaXHnTjk++y5RmqnYk47Uj4Hq+GNuCcl8R8aHLoHTzgCZfJbT6Thxp425QiyjKblExVJnajXphnHR6Dh/K7c/mg== 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=WNYGem56MsmLlcj7RD4L5IAaIlnclQKbK0H9s5F9+sc=; b=JCVcrVbmvBazb4Y8Z1cuZDlc6qPQGOLEOhzFIMgGexRURdNfdMsH0A+bMH49wcqtBh6opfKRqA2DqE/ps2MlZxicTGCxffVIuwU+K5VnuslunpMUd/O6aFKO8TcfgzWP7XPnBUtQRglymWAWb0EtgIxL7Y8o3UYB7nxd6ANhkKLcThvxEvQ5YVAjkcjitl0HNQnPtD2A3HAwBx+oZyevLcJ5ZIuI4V2KwlqMwSQwPDJQUyu77tKaOrjYci2AUTl8i5vaXhI5HJn4OjZQLhybDgWb7NKw/3ngf1XhnwUk6cSuqXtAfd9DxDtcUM4bmZSarEjJ9KGWNkLEoJeS0FM4zw== 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=WNYGem56MsmLlcj7RD4L5IAaIlnclQKbK0H9s5F9+sc=; b=bfp/j6tvbP0ddBXP3pst25L1ulDAfG2KxwpLHXw/+IQE6R4nnfgy1GN9MIijsNNwRNkBTklAMbW3HT9CJoy8pw1uE2L/OGPiASQJ5kXzyqFHxSjyhxbQqGeApBXj0D78SHSm/9bKmxs0ZeVkQ48lPcD/fpWqzmrSrpFjCp30+VQqFoPzqKnu5AfTniH95a5t7hXR793TFa8Cwy+nbefEn7vUWipQ9Bb7frW7b+T0f6FCzYyuU2I9utWkEae9sULgRrC/wdItt5ihgsNTInUxYnMFI23EbsVpaIyJJpTBKK5XaKVVUsIRX6EkxhywcnFaLhxq7hS8r3ooGp7GmVZDxg== 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 SEYPR06MB6280.apcprd06.prod.outlook.com (2603:1096:101:141::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29; Wed, 26 Jul 2023 11:39:13 +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:13 +0000 From: Yangtao Li To: Alan Stern , Patrice Chotard , Greg Kroah-Hartman Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 30/30] usb: ohci-st: Use devm_platform_get_and_ioremap_resource() Date: Wed, 26 Jul 2023 19:38:16 +0800 Message-Id: <20230726113816.888-30-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_|SEYPR06MB6280:EE_ X-MS-Office365-Filtering-Correlation-Id: 98556862-a92e-4036-7b74-08db8dccef44 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3WrXzCFfp6p3n+p+RADHz7ncl95JsMwcWEQmm6A8fSiLDDebVt1pKFny6wcVntg5UPNZxh17XegaKqgKD4xw1bNPCZXvD62xLiRSGPoizUIG4oRyLwDeMmj5X0A88G5Ekg97QjqFLcWZofbjcGcvaO+KR8MZOOG5MprXxWPOQ4c8SEuNGLArKDzuNR9qEh8dL7OimGQ8tAZopnfPLZpOAV3aIMjx3q3jsyaGSccjLQhrFiIvPmSzMnI0CdJjO+5rGa/XQ/vDcsbONYHaBBz+/6cS0vjtNDCs7wUwMCKmL/U4Mj1uAepWcZzkA2gm2ym2LEmirbqaRmff1Y6t/nMqECSAxQz35HkqGWh4QjttHrjDkSMOVJJ6DnBByPdpN5gDqRtFpqaOyifokxfxU6YsKbaK4NMsgPB4K/ycM9YsF+I8caU+IEgYhhjZ+/xLG/m+N2M+w0igzbLyi0MY0pyVHv3XO21WNBm4nMqtprsBR2KMzxgC9aEcB/mFXNvAYXLdiYr6G4HPueERbEMM51YqB0Gm/iIzErbEYd4jemOKnG450RchtbAeJov8DOWqZ90+uOoaKzaqaTfnCLmQG0PTm/4UaUsfuzTSfB0loq4KFlU0xBSLZiq4mfN/9krtmfSF 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)(136003)(346002)(366004)(376002)(396003)(39860400002)(451199021)(110136005)(52116002)(6486002)(36756003)(2906002)(478600001)(316002)(8676002)(8936002)(5660300002)(41300700001)(38350700002)(38100700002)(66946007)(66476007)(4326008)(66556008)(26005)(86362001)(1076003)(6506007)(83380400001)(2616005)(186003)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Ah32Gl0I2YipW33MKvgVLQGqrQN9CtgWy9Q/ZKP55wa31GEpYDxQTUghZ1XFtmchUjqZg5EPfy8vUru2A2wGnhBH+cGqwargmx9vsLwdF51J+RGvKGwuDx9SfJ/KT7YbSRGjj77wVlVH3S4NP6xnV6TykM4th+FVODlRDih0weany6cZSfdgBz5MWyUb7dTaAmY6R36fKt0EXb8D/bXnRt15qYexAJwn2Bym8yQ0EKwXVW+aapJu21nNG7BgmSIO6F9LXTM7u4DGZZdQnbZOlPU9icNjMf7bta7eotn89K0iGkS/rOEZ7GLoF5Gm62vGK9TAAQtUUcGEqk7Px3lUgVaq3cl3A8hH2PNwX3bb6YMDmQjoJes9QEa6N5yZWsLCfkS19xU1MZVRZyPmW9MzV4VKnBQTgiFZY9o/826IbV6Tg9YXiQUQ+YrhULX/BIUioSN5aT5sxCJguvJ2WyXVYmijU9sJ+I22T5HsgdADNvoUD8FbPfwhvfEs26Uw9sushRiB+xgjAYK79eocDqfR9G21ps5vFMCCfzuNbVfX3f4jTHu3/BiaWpB/DVpXWyEEVsQx+Qu+VPBcKGFj83abRXGBldD7zcE0ekuJmRejKTSgvwoX+2igFjohS6mK8xx8RnLR634ufpq5p+8qQ2iRV62YkPzcqsHO9qm2GM7hnFFJ7bcYe5pQgS9Gxi+TZVwxhCVp1CvnFSewokSO7MfltTOTsqZgrZQuX3ldQTj+zpN3D8QTeDQFLMIFpN0PINu4sL3BZUXIToHwKLnM4v84T2wyEIYhwycpDTnyhbbmktNH+SObSwCQGChhMaxiRE04MqqV179YiUjHD9qsQkXdUi4xXHuECsnTNTX+PlVrU8APkYjaU5wcnc1KSNg0EDmMkckV0gTq4LvyTr2+cuEGwKeohnkUPXr8bp3zCCfGALbZ69gCD+ZMKYHiBPQ9Vx99ACXE0BpRV+6nD+uK47OSi+APGC6UPULigrw7mc9o3GFIay8BXlrFMuDf8H4NyOspvNyCPcq99ups4Ew74h2wuVkU2ThiYm/km1B0+mDMn7oZ4p5FvnC1Krx8aTARY4wx10b1d73MXCQw4I/2jMEEunckYTFpWtI0U3gC4DJ22YeW6bEHquHT9EtlaMouUROdjgE5+Jzyq3oagxTykroPjgQYEJGceFBnlmValheCOtaqsoeJ+tkJl43C8xuQ3x4/O3BQnzXg+pHBxxotYOL/2TqLt7NLB5FMNRZESUzwaSEsYoGryFcvL0k9uAyvVjeTSAfH0uIHyu1dIuBYr+wXq3xTH6G0WkZzwlHWAJTYIiOxswP9FKmc4ujNXaUcYP8m6+y2Gmia7lwUdeBbqx++nh+OwVSOsU2kcWNhNHdTvWKWiG+RjJgW9V1MVchrLyJiQFPM9iy34aj0edhUVV6Tfy++8oE61EEIQhQdX1FBaxrI++xGkeqrMi4MkCAbM3MQ5J3TmVykFkFxk2jw4WnPc4X2amIGQQ38wyg0yW1VhJPfIye7iP6WaEPr/ex4SRRMcV8SnNAMYjNNAjzwuVAwYhQ47GX5GpDIhLjTcfOBI3rbrpK0Q0iZwD0TZjUGEuWV X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98556862-a92e-4036-7b74-08db8dccef44 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:13.1558 (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: T/f9gLI8Ij6g0HVBsLxNYNSunlb59bZqFdz0Vb7+IuxGUXmJ2PHzHpcidNvkqg1NyVCaegU6lw2NiOuG1tGLgw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6280 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: 1772485578173136699 X-GMAIL-MSGID: 1772485578173136699 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/ohci-st.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/usb/host/ohci-st.c b/drivers/usb/host/ohci-st.c index 884e447a8098..214342013f7e 100644 --- a/drivers/usb/host/ohci-st.c +++ b/drivers/usb/host/ohci-st.c @@ -139,12 +139,6 @@ static int st_ohci_platform_probe(struct platform_device *dev) if (irq < 0) return irq; - res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0); - if (!res_mem) { - dev_err(&dev->dev, "no memory resource provided"); - return -ENXIO; - } - hcd = usb_create_hcd(&ohci_platform_hc_driver, &dev->dev, dev_name(&dev->dev)); if (!hcd) @@ -199,14 +193,14 @@ static int st_ohci_platform_probe(struct platform_device *dev) goto err_power; } - hcd->rsrc_start = res_mem->start; - hcd->rsrc_len = resource_size(res_mem); - - hcd->regs = devm_ioremap_resource(&dev->dev, res_mem); + hcd->regs = devm_platform_get_and_ioremap_resource(dev, 0, &res_mem); if (IS_ERR(hcd->regs)) { err = PTR_ERR(hcd->regs); goto err_power; } + hcd->rsrc_start = res_mem->start; + hcd->rsrc_len = resource_size(res_mem); + err = usb_add_hcd(hcd, irq, IRQF_SHARED); if (err) goto err_power;