Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp322310pxb; Tue, 31 Aug 2021 22:58:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFz11/0ymY88N3GatKDRSWvGwQ317upm7dIwFJqtqA1sGqu43YqQO85XSdcQcFlPenDYAy X-Received: by 2002:a17:906:4a82:: with SMTP id x2mr31614380eju.111.1630475938305; Tue, 31 Aug 2021 22:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630475938; cv=none; d=google.com; s=arc-20160816; b=pvdXSIIM+TYyo7QhTDm6Tb4U9JXx3g8zJi5rEhu+qbsI2mhdnOpBENoFBfyQMO0JRl spGlaYjaoOaaO1eqRKEMVTDHK7hoWsyltMwyfynOeCDTqCz/bDwsK5mJLcU/g8UdVPWo mrhy5P6CbMEY3JS16Ibf/j/lUUdcpZZJwzou7ffcvuSWx8H2p1b6tfE37FztcbBR5l1k ZVAnLXtMt6lLE01KPdN7fWD1Evm5LrErx7I/PRcTEecOIY1gQQErAiEuSJ5xyxA9GMKE DlyHhEYcgr3R+Bowzg2dKuADkv/JmycRiyNlezp2sLTz5jQNbPBLBN5kdHk7Xyuw/WXP Zxsw== 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=b65VSk91j9C9jtOh4Ergs+f8vCiHbxHyt/9XGjN5TTo=; b=LoAi/R7jfLeb6zeL8A+10Sz9KfPZV8H9dcfxEVUuMz0TQ31kXpl3d9ax31JIsiO37j +1oIgEDCD44UO7lrnNjThiAkBxava4txA6/Du/vmmITjcIKsYOUEJTSmZm3TOBfCL8d0 OChc4vJDi+jCIob8wjZio+UPX7U7IDZT/DgMpQxATZI5MMhywcXhSBLsA25NDuJZm+6e fES7058gO9HsMMYdEqpZwknPRSvds4EdYHB3sCnHkwTwyqfCYJ68eYUwr9Eyu/DXdZNQ RsQVWtVhooSH39M86tyeToE1e1vdAIJeT7nvz4aKh6adT81bU9OmkhWYmyoUQ85lzg7g GWQQ== 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 gt9si14451987ejc.542.2021.08.31.22.58.35; Tue, 31 Aug 2021 22:58:58 -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 S242371AbhIAF51 (ORCPT + 99 others); Wed, 1 Sep 2021 01:57:27 -0400 Received: from mx20.baidu.com ([111.202.115.85]:53378 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S242352AbhIAF5V (ORCPT ); Wed, 1 Sep 2021 01:57:21 -0400 Received: from BJHW-Mail-Ex01.internal.baidu.com (unknown [10.127.64.11]) by Forcepoint Email with ESMTPS id 7CB6819175DB390B6A34; Wed, 1 Sep 2021 13:56:23 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-Mail-Ex01.internal.baidu.com (10.127.64.11) 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:56:23 +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:56:22 +0800 From: Cai Huoqing To: CC: Andrzej Hajda , Mauro Carvalho Chehab , , , Subject: [PATCH] media: s5p-mfc: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 1 Sep 2021 13:56:16 +0800 Message-ID: <20210901055617.7729-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/s5p-mfc/s5p_mfc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index eba2b9f040df..e0ec24b39fd4 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c @@ -1289,8 +1289,7 @@ static int s5p_mfc_probe(struct platform_device *pdev) dev->variant = of_device_get_match_data(&pdev->dev); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dev->regs_base = devm_ioremap_resource(&pdev->dev, res); + dev->regs_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dev->regs_base)) return PTR_ERR(dev->regs_base); -- 2.25.1