Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4508558pxb; Tue, 31 Aug 2021 06:57:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyRgy+aqXktLAvdHewL7Qn26Us6tYR1Yb5RaIOiHGOnmAAIEMaTx0jkq8vHLLQYpt7L3CZ X-Received: by 2002:a17:906:8281:: with SMTP id h1mr32478945ejx.352.1630418268793; Tue, 31 Aug 2021 06:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630418268; cv=none; d=google.com; s=arc-20160816; b=u02DlsIEe++fKQ+0lPB7ZBcbHeXpiLTnzjJ6AwEFVB56KZMcymiAINkg8gcXn9YvTO eds+0uSUiXVrOuMOHzxOk/RCO2X5tsuK+m6r7kQo5Q+iTjNZVQjZAFrg/+MUqiQAi6tK 9RdZqTVhpx5c7Djp6rh3wWn1fQazWKYh+d9wCeLpC3Na7h0Mq24giYnIoEnWpoqBPLFq tql7W8dxuz78UwqIbGBrk2Ujhg0NZNUoFkhQNt2grP7hx5xzMOX+Hdv4VXdYVzg4PiTL QYeoqFsyoiI5rxBkrbuBYV8cmqN21X6jGG0KSjGi4/tdA2vHjia/BFG2y6EsjCWHbbpR LqmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=FJTAZZBlUbBdf5xoBMcFXVRA3eUXPuTP3Kbdgm79gHs=; b=LPmL9/F5WR4qn1alS2J2VrzxIle4HxxkxPLfIK2GvKKp7xaoB1DeHtALGmK1KyblZ6 EDHME/UIgyZSqxlnkSc9hHgD9sbSVQlmZw4yC7ffn3f9rrZUAXb4r2h39PjHobTQik+s XpZ3wiQDoaoEtiHjcP+/RNC6Buqy3oqSsIly6I6CijTJiWekrIaQ1nCkTdIAQel8ubGF 6Piwi+nBB+5ekmUFBbOsZLPmMhHaZoA5YlzbJZXBad/3vr4OHCQFDFvwET4Xu//82WQ1 qwDDbppxNJoP5yhvYqguxTQM28IJ/3aFM7eJdDek0Fx2mvVHmybRqsK3ESnyc2Ku+dOK nXAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bh21si17596751ejb.428.2021.08.31.06.57.09; Tue, 31 Aug 2021 06:57:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237828AbhHaNwk (ORCPT + 99 others); Tue, 31 Aug 2021 09:52:40 -0400 Received: from mx20.baidu.com ([111.202.115.85]:56154 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S237285AbhHaNwg (ORCPT ); Tue, 31 Aug 2021 09:52:36 -0400 Received: from BC-Mail-Ex15.internal.baidu.com (unknown [172.31.51.55]) by Forcepoint Email with ESMTPS id 67E125BF96C6CBF0CB15; Tue, 31 Aug 2021 21:51:33 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex15.internal.baidu.com (172.31.51.55) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Tue, 31 Aug 2021 21:51:33 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 31 Aug 2021 21:51:32 +0800 From: Cai Huoqing To: CC: Andrzej Hajda , Neil Armstrong , Robert Foss , "Laurent Pinchart" , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , , Subject: [PATCH] drm/bridge: cdns: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 31 Aug 2021 21:50:47 +0800 Message-ID: <20210831135048.4305-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BC-Mail-Ex30.internal.baidu.com (172.31.51.24) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing --- drivers/gpu/drm/bridge/cdns-dsi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/cdns-dsi.c b/drivers/gpu/drm/bridge/cdns-dsi.c index e6e331071a00..d8a15c459b42 100644 --- a/drivers/gpu/drm/bridge/cdns-dsi.c +++ b/drivers/gpu/drm/bridge/cdns-dsi.c @@ -1171,7 +1171,6 @@ static int cdns_dsi_drm_probe(struct platform_device *pdev) { struct cdns_dsi *dsi; struct cdns_dsi_input *input; - struct resource *res; int ret, irq; u32 val; @@ -1183,8 +1182,7 @@ static int cdns_dsi_drm_probe(struct platform_device *pdev) input = &dsi->input; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dsi->regs = devm_ioremap_resource(&pdev->dev, res); + dsi->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dsi->regs)) return PTR_ERR(dsi->regs); -- 2.25.1