Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1983773rwr; Fri, 21 Apr 2023 02:28:14 -0700 (PDT) X-Google-Smtp-Source: AKy350bpRUdiylLXMcUY0EEk/Ds063duac4nBNka7MLDUEEfwBJ8SUoUMu3qvv9LfEzDZJ6OVCkL X-Received: by 2002:a17:903:2281:b0:1a1:b174:836c with SMTP id b1-20020a170903228100b001a1b174836cmr6200160plh.16.1682069293773; Fri, 21 Apr 2023 02:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682069293; cv=none; d=google.com; s=arc-20160816; b=rprN5T8EPF1Igv4D5K7KWAwX3g35eiV0lea7G3D3qf+w4/KGa4Cy76dzUWvnDo2QiE hTKkx1xx6/asRPWLBO8XFnNJRSWDIK6BfneoLzMH1lPDq4qi2vzWZwynkB7UsAu/8zYj J1KfdYGUsSyku8v92gm1FnO3YN2ej77wBQhHqEz9S702vTyXUkhaqk589q0yPG4aAJ+n LaEtQw10+GIOhaONYdNnCf+AFNL12Oo5V+gJlosD3IxPQmwz4IS6gJJjjS4AnTP+DDez F+paFCNxGIZvxnUumLtahGoFlDv5gkI5p3d/9IhfASmJAr2pAOKpz1CLiK9Pq2FOa2o2 GOfw== 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=A6By6PiOFvVWwvwXiJ4hxP+9x/CkxnOZ0ws/dSyJRrw=; b=wys11nTslx5eoNyqOkuJ6tDUrArkJ4s6gPW/65iiFD85H8PD+ztjArgsU19yliq2rm 10j+CJc1eZxOXbOlMxXKN1/oMygGCgeeBYYo9/xxzQ2b1YK5XFDfpHdjbTiUqQjdD8yg RoJXVzhdeF7jd+F8EFPSuOZbeUwyuxJZwxrVbT82oS0zkI1sSnDcKUdeJBAJtVCWUVA0 R6CYfyerjiOVaPy8BpV50vhcpTCdDS9PcncRHtdb3AmfXuEzNc/3w7RypWFp0roeFDDw UhzHCEIC7fz1ba6F3LAaqgU+Fg3jF/V/8+gmHBEIs0i9z6x73KoDpwRzG+H+joWcsTZH g5jw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a170902f54700b001a0544138b8si4558866plf.395.2023.04.21.02.27.59; Fri, 21 Apr 2023 02:28:13 -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 S231848AbjDUJN3 (ORCPT + 99 others); Fri, 21 Apr 2023 05:13:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231148AbjDUJNZ (ORCPT ); Fri, 21 Apr 2023 05:13: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 4F658902F for ; Fri, 21 Apr 2023 02:13:24 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VgcHWof_1682068400; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VgcHWof_1682068400) by smtp.aliyun-inc.com; Fri, 21 Apr 2023 17:13:21 +0800 From: Yang Li To: linus.walleij@linaro.org Cc: airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] drm/tve200: Use devm_platform_ioremap_resource() Date: Fri, 21 Apr 2023 17:13:19 +0800 Message-Id: <20230421091319.79744-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE,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 Convert platform_get_resource(),devm_ioremap_resource() to a single call to devm_platform_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yang Li --- drivers/gpu/drm/tve200/tve200_drv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tve200/tve200_drv.c b/drivers/gpu/drm/tve200/tve200_drv.c index abd557332b28..40b1168ad671 100644 --- a/drivers/gpu/drm/tve200/tve200_drv.c +++ b/drivers/gpu/drm/tve200/tve200_drv.c @@ -156,7 +156,6 @@ static int tve200_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct tve200_drm_dev_private *priv; struct drm_device *drm; - struct resource *res; int irq; int ret; @@ -192,8 +191,7 @@ static int tve200_probe(struct platform_device *pdev) goto clk_disable; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->regs = devm_ioremap_resource(dev, res); + priv->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(priv->regs)) { dev_err(dev, "%s failed mmio\n", __func__); ret = -EINVAL; -- 2.20.1.7.g153144c