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+R7lnkyUHgYOKvG6elVtdOTldhMliMkU3mmdHPsRgi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uwolYMir3xqU/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;