Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp319712pxb; Tue, 31 Aug 2021 22:54:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlsCDx9L4Fgxb651JWfNJCtofu36FduZMsFfB33IrPQCwrXv2aj7HqUhYH69mQmlACGXX7 X-Received: by 2002:aa7:d9d3:: with SMTP id v19mr33894255eds.257.1630475640074; Tue, 31 Aug 2021 22:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630475640; cv=none; d=google.com; s=arc-20160816; b=pZGvoF8ap7AsV7neXJjK6Sm2BqvYF9JQlInLY0yIAy7p0NWgPbtFeY6r9jzNEpbYG9 WMsOXKA95/VDS7IidMvVw1MtcNvpv2hNx6nzNKeHhCb56Q5vTKDPVmeBJET9p+9fiY9a cLi4XeNH3U7oaPT6yRAg/3ZtH53b2mpZgbRacP7/uPzNfJDZuDBrLAS21Mp196vbY9h9 HDxxQB5dl9Qfh/e519ToYSt4Wt+0tdomRmrLVLaor/SoCzGtQuTw9BAzCr7WkQ7tdxCG Pl5/zew4PlWg0tkHpXhFNQXeex6j+fN5FfuRbd5spJ/kxGEFMJOsB+uXAlBIx04NznLW 4LUg== 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=c4I0dR5tRSUphJfKCeZpAdlSb5ZUO4ygU0BgzcJjj/8=; b=ArxmE7DxYLypEKnSbXOskXlWv/uS1++ibPar5jJYh9i5QqQ32x/YRukVdLozj7mrLY SRvUwIVD+lNsQgt/QwRz8d5My7DsfCs7AyCv1+pBPAuoX6PlqmNdmZlxGBdFm95ytw1d EXhl/m9RMEBknFBuyWV6RnyetkajhENMKrciaL/UFmifrg9kBBNxKwC7OiLNgthOX3Dr PEYvX0x7zKxmZ3rLQ2CuVgmpCpRAq+u6DjiypPy0moY/rSstXhZoMgcF1pgap17iN/mA 3AR8VMQX0RGonUxYjzROqRVZQRlf4VLhZO/EC9nrWyP+LZv2xuT9ELB6vjczJRWjcFWs khaw== 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 ec31si14036356edb.235.2021.08.31.22.53.34; Tue, 31 Aug 2021 22:54:00 -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 S242139AbhIAFwj (ORCPT + 99 others); Wed, 1 Sep 2021 01:52:39 -0400 Received: from mx21.baidu.com ([220.181.3.85]:48346 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S242207AbhIAFwi (ORCPT ); Wed, 1 Sep 2021 01:52:38 -0400 Received: from BC-Mail-Ex03.internal.baidu.com (unknown [172.31.51.43]) by Forcepoint Email with ESMTPS id 4D184D7501ACAE096EE3; Wed, 1 Sep 2021 13:51:38 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex03.internal.baidu.com (172.31.51.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Wed, 1 Sep 2021 13:51:37 +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; Wed, 1 Sep 2021 13:51:37 +0800 From: Cai Huoqing To: CC: Sylwester Nawrocki , Mauro Carvalho Chehab , Krzysztof Kozlowski , , , , Subject: [PATCH] media: exynos4-is: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 1 Sep 2021 13:51:31 +0800 Message-ID: <20210901055132.6679-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: BJHW-Mail-Ex11.internal.baidu.com (10.127.64.34) 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/media/platform/exynos4-is/mipi-csis.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/exynos4-is/mipi-csis.c b/drivers/media/platform/exynos4-is/mipi-csis.c index 32b23329b033..27a214936cb0 100644 --- a/drivers/media/platform/exynos4-is/mipi-csis.c +++ b/drivers/media/platform/exynos4-is/mipi-csis.c @@ -766,7 +766,6 @@ static int s5pcsis_probe(struct platform_device *pdev) const struct of_device_id *of_id; const struct csis_drvdata *drv_data; struct device *dev = &pdev->dev; - struct resource *mem_res; struct csis_state *state; int ret = -ENOMEM; int i; @@ -800,8 +799,7 @@ static int s5pcsis_probe(struct platform_device *pdev) if (IS_ERR(state->phy)) return PTR_ERR(state->phy); - mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - state->regs = devm_ioremap_resource(dev, mem_res); + state->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(state->regs)) return PTR_ERR(state->regs); -- 2.25.1