From patchwork Tue Mar 14 05:42:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 69323 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1594311wrd; Mon, 13 Mar 2023 23:28:45 -0700 (PDT) X-Google-Smtp-Source: AK7set/aDP4I/nLNOiqFjiL/12xNgvB39/QEPWNUdXZD3BdYBqHLsArXGYT0vhP8W7wJbhtzc5/t X-Received: by 2002:a05:6870:6083:b0:17a:a4af:8e3e with SMTP id t3-20020a056870608300b0017aa4af8e3emr860084oae.47.1678775325444; Mon, 13 Mar 2023 23:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678775325; cv=none; d=google.com; s=arc-20160816; b=UZ9ojs1DwJUWFJJ3wHWx39L2nUnAqG+dhQyXx9OQBbIcNV5OyyJSAllXfUQRv6/bZ/ hf1ep4xSXaUeLNYKm3/8eKjNUtC3YGVxKM/u1FxkCD3O3n1DROAyUBgYJrBmYWZmVked WpS8VSuyISztO6dtTjHc6nzVXoOLIafW11y1fLDsUvVTqlnxgtaZZSHbRHs8UTE+4c9M mj3mJcTkz3enFIi/AidMEM3RsEW4iNq3of0TcM5hJ6SXmCCabLC1jMMHoKB1RIxVJrG5 O2uQKMLwJD7NYaCmCpcTXv4wJGdX76iXCE+tp5d6Rh3qNfvCT6WEFouB7cABQ+oxTHBR /t4A== 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=WoCPQTwc3h8O0sBDFPz3U+2sn/qpoyTHPocZlh7pwZQ=; b=FKfwfEOF9dgWCDDL/uD92FpIaib5GpkLEHD7Kjb9Yn5VVT7MyUe4NJxjcJizodL4S8 TQSn6+fHvWnKzU4cG0U8095jWMN3z0eXRsLWcQw7nORGB02SSJ+ORT5pdHNrTMnTRc3p hIf7j15DZ4D2NqwlN53DZ/TxSAkbTCBZXZeJNdiwf9ZADcG2ONqL5zL4HlmxPktHKZel NFH6NJJeF9xHoBRkJy5deEJy9+5itHgonZ6JMO8nN9AhRGZum/9d+uZQvrKSn/pGkaZl xnDxo3Bu/hmc+HkodGErT0OHV7326vE9Ogf2j7/b/9Y07FodZPW9lbwLrprfPGsSZ8F/ Omvg== 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 gf4-20020a056870660400b001722c65fc4esi1468971oab.315.2023.03.13.23.28.29; Mon, 13 Mar 2023 23: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; 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 S230034AbjCNFm2 (ORCPT + 99 others); Tue, 14 Mar 2023 01:42:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229961AbjCNFm0 (ORCPT ); Tue, 14 Mar 2023 01:42:26 -0400 Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E92976AA; Mon, 13 Mar 2023 22:42:25 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VdqmRdO_1678772542; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VdqmRdO_1678772542) by smtp.aliyun-inc.com; Tue, 14 Mar 2023 13:42:23 +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 2/3] video: fbdev: wm8505fb: Use devm_platform_ioremap_resource() Date: Tue, 14 Mar 2023 13:42:18 +0800 Message-Id: <20230314054219.80441-2-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_DNSWL_NONE,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?1760323515405399236?= X-GMAIL-MSGID: =?utf-8?q?1760323515405399236?= According to commit 7945f929f1a7 ("drivers: provide devm_platform_ioremap_resource()"), convert platform_get_resource(), devm_ioremap_resource() to a single call to Use devm_platform_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yang Li --- drivers/video/fbdev/wm8505fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/wm8505fb.c b/drivers/video/fbdev/wm8505fb.c index 8f4d674fa0d0..96a6f7623e19 100644 --- a/drivers/video/fbdev/wm8505fb.c +++ b/drivers/video/fbdev/wm8505fb.c @@ -261,7 +261,6 @@ static const struct fb_ops wm8505fb_ops = { static int wm8505fb_probe(struct platform_device *pdev) { struct wm8505fb_info *fbi; - struct resource *res; struct display_timings *disp_timing; void *addr; int ret; @@ -299,8 +298,7 @@ static int wm8505fb_probe(struct platform_device *pdev) addr = addr + sizeof(struct wm8505fb_info); fbi->fb.pseudo_palette = addr; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - fbi->regbase = devm_ioremap_resource(&pdev->dev, res); + fbi->regbase = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(fbi->regbase)) return PTR_ERR(fbi->regbase);