From patchwork Tue Mar 14 05:42:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 69318 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1591291wrd; Mon, 13 Mar 2023 23:18:02 -0700 (PDT) X-Google-Smtp-Source: AK7set81qaK6svpyznSQe/t/Sl0TO+oaYVI/4w3Z/XSCyr/2AK+uNZZKC2ss8jzUz01aK/ZOwxZl X-Received: by 2002:a17:902:b20c:b0:19e:8267:9590 with SMTP id t12-20020a170902b20c00b0019e82679590mr26034380plr.41.1678774682046; Mon, 13 Mar 2023 23:18:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678774682; cv=none; d=google.com; s=arc-20160816; b=ifgiVE+rLyAxp/Q8d6WTf1WqziltdGJ+eIAjK/T6NBaast28Xezrqi09VRr5MkRWyy bjubKbL+A8BeFZKYiIeUVt0Mc3wNlSYjBiWYVwTBxG0etU/ZhuW+Ri+D43RJfgIKyPLK G1qIpB3BvZ6uajT+CXje3SAVreG+k95tBS9idfzEcStZ4uTqJ+epwfWRO/b1X7F6iB33 RGe08BHEYObGvs4hsf+l2Q/7ItuWuBoa3IZHODLDw7QC/QpI2Pjo4nDAsSVjsWFbq6Y0 m7e4g3hAgDqQM13VWihVM9YjQZaoU6kkn202xJ0vzfw1MmIlRpGgT2P2kgle+0JT0D/k rG5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=0CD3o7nR24GZ0n7ikRcp8Kohkic7dSmiW104EkJWZe4=; b=q1UZLr3pyHJ+XpykrRnRumNz7I2UxO9FBa3IMcKbof214UH6hKVZSUmJKJWGyTbwNb y7KprAZRBBfk7LwY4G+wPYzlE6clbTOJGCHn+rJ/X2FYhQNy9HKxrqN2KkgmuHI+Tpp/ ijviUmSXc2VGqOEuWcfxjUaZglp5zKX/6up6wAT+usKFDjQ2YaFlbFvhjhrc40E2erkl MFcWVtbDSZAe/PTXzcHfI5TeSIzdX+nsXMb7lZNQsDSihzdUCrVe+3u/YEBFQUENv+Bp /Zn138gJmSrYD5KgsozAr70lTlFmeVehnTq4zyG4BIssLvAu59iXBuC/VPRnf7zJBwAX BcUw== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lg13-20020a170902fb8d00b0019ad22c40c7si1581596plb.132.2023.03.13.23.17.47; Mon, 13 Mar 2023 23:18:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229968AbjCNFm0 (ORCPT + 99 others); Tue, 14 Mar 2023 01:42:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbjCNFmZ (ORCPT ); Tue, 14 Mar 2023 01:42:25 -0400 Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A9CC134; Mon, 13 Mar 2023 22:42:23 -0700 (PDT) Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VdqljXD_1678772540) by smtp.aliyun-inc.com; Tue, 14 Mar 2023 13:42:21 +0800 From: Yang Li To: deller@gmx.de Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next 1/3] video: fbdev: pxa3xx-gcu: Use devm_platform_get_and_ioremap_resource() Date: Tue, 14 Mar 2023 13:42:17 +0800 Message-Id: <20230314054219.80441-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760322840749910829?= X-GMAIL-MSGID: =?utf-8?q?1760322840749910829?= According to commit 890cc39a8799 ("drivers: provide devm_platform_get_and_ioremap_resource()"), 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: Yang Li --- drivers/video/fbdev/pxa3xx-gcu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/pxa3xx-gcu.c b/drivers/video/fbdev/pxa3xx-gcu.c index c3cd1e1cc01b..d16729215423 100644 --- a/drivers/video/fbdev/pxa3xx-gcu.c +++ b/drivers/video/fbdev/pxa3xx-gcu.c @@ -599,8 +599,7 @@ static int pxa3xx_gcu_probe(struct platform_device *pdev) priv->misc_dev.fops = &pxa3xx_gcu_miscdev_fops; /* handle IO resources */ - r = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->mmio_base = devm_ioremap_resource(dev, r); + priv->mmio_base = devm_platform_get_and_ioremap_resource(pdev, 0, &r); if (IS_ERR(priv->mmio_base)) return PTR_ERR(priv->mmio_base);