From patchwork Tue Mar 14 05:42:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 69309 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1583478wrd; Mon, 13 Mar 2023 22:55:33 -0700 (PDT) X-Google-Smtp-Source: AK7set/wr+kHxIbOnp3uBGUuJoWDdGr5n2KmtJNhn2FFjpCnJg+8xZ8tK0cWaFWUsTqm8Lz0QGyE X-Received: by 2002:a17:90b:1b4e:b0:23a:5f51:6ee5 with SMTP id nv14-20020a17090b1b4e00b0023a5f516ee5mr38675709pjb.12.1678773333026; Mon, 13 Mar 2023 22:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678773333; cv=none; d=google.com; s=arc-20160816; b=miuTGUPcLyip7gBLw5ovCk/fBGnuAmsxPeTj9bY8i1X6TKzv4YZZXGblSl5gQ+y78A 1UINkSAJrxa5ycJr0tRCsjG/6mqfCrSehD4eyYs8jub3G5HKutFipzu5yWOpfUHpseii FcW99wlI1JUQD6EBaHPmkvvI9B2cKTMZ8B4xMuZnkDXuKt4TWvTJrHtxLOosyE5adN4E 3B48ympY3/T6fkGSJmSlxbEfuUSZQCAfih0PlwBjhveaMibE+aNMuQC4M3sUrrqB3l7K anvlU/JprBOPzuqoCaarqnOPvkzs2d+Vj+y0Ri9VF7NsOvlrgWKWolPs29u2A1jtWXW6 rHgQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=dMvL/QlV6Dtkhj6FNOnLNgKPQPOaSWDacWNywd0fs2s=; b=IDAZdkKENYWJ5NSWlTBTXyF2d1JGbMOKnaw9a86XIrFVenrn9gkYbWvJEewMCh/Ni7 2Da5Btl+CwbjzmCdu1jf5sU3KtC6QcelsAt7GP74tw+0hvMuYb1wUdiNsUkJUzJ+x+vr veL/yjlBSHZnLwMY2ud24MjwlUMqY/TzLr6hOpEbMSC9F5Dqr411RgaiLqpzvJHOH+Ck XjVYO85JiKODSskkM1f+53ng4TCrT2RJIIXn0GFtUBhBcR7RWaMxuMrGOJeJeNU7mGjP zuwx47TpmBd1beuAezHjHAJdOAH8codu3Xs3sj/DSgX6pwmtDg3YhYEhH7t7M+rP1/Sr QkWA== 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 mh1-20020a17090b4ac100b0022915b6dd7asi1943595pjb.145.2023.03.13.22.55.18; Mon, 13 Mar 2023 22:55: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; 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 S230109AbjCNFma (ORCPT + 99 others); Tue, 14 Mar 2023 01:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229802AbjCNFm2 (ORCPT ); Tue, 14 Mar 2023 01:42:28 -0400 Received: from out30-112.freemail.mail.aliyun.com (out30-112.freemail.mail.aliyun.com [115.124.30.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31AAC76AA; Mon, 13 Mar 2023 22:42:27 -0700 (PDT) Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VdqljY2_1678772543) by smtp.aliyun-inc.com; Tue, 14 Mar 2023 13:42:24 +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 3/3] video: fbdev: xilinxfb: Use devm_platform_get_and_ioremap_resource() Date: Tue, 14 Mar 2023 13:42:19 +0800 Message-Id: <20230314054219.80441-3-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230314054219.80441-1-yang.lee@linux.alibaba.com> References: <20230314054219.80441-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,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?1760321426541301862?= X-GMAIL-MSGID: =?utf-8?q?1760321426541301862?= 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/xilinxfb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/xilinxfb.c b/drivers/video/fbdev/xilinxfb.c index c17cfffd9a84..7911354827dc 100644 --- a/drivers/video/fbdev/xilinxfb.c +++ b/drivers/video/fbdev/xilinxfb.c @@ -273,8 +273,7 @@ static int xilinxfb_assign(struct platform_device *pdev, if (drvdata->flags & BUS_ACCESS_FLAG) { struct resource *res; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - drvdata->regs = devm_ioremap_resource(&pdev->dev, res); + drvdata->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(drvdata->regs)) return PTR_ERR(drvdata->regs);