Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2182606iof; Tue, 7 Jun 2022 22:26:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLDfz8J6RmNdKr3nce5CyYFuWTRm9TfYRmhCJryWvZ5TETAWITiyh7ngOZF4u7OkxzjtZh X-Received: by 2002:a05:6a00:194d:b0:51b:eb84:49b1 with SMTP id s13-20020a056a00194d00b0051beb8449b1mr23277843pfk.77.1654665992172; Tue, 07 Jun 2022 22:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654665992; cv=none; d=google.com; s=arc-20160816; b=CDF9oQETuIDVOPfaC60eD2afs8xUds4Xet94gurvWFPoNzud0r6D12qLzw6XRhygOY oxK7OfTNTXC+mR9hN+yDQkE7HSRbBocohpkKTX7rtsHQ0RyFNRaOZWizbefDoYxhaHCM nAvaYVWTJ8gFGoSqUqSRsi1uX7hetEOPD/C/2YhP8t3Zcpsu7SFfA8qPRtsflEvsT/fW bHNK2jy6kB1sSj1dUGo5SkRpGt9ML1f5FqDC8eA54qxrG1v1tO4bNSJwThu7rFGi6Dbw szZA3nEfHUrqKne4UGRD05JQ90fdVp2Lye4LyKlYxqsITiqi1TKFyvZtje0pfwv4l4qq koEg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5nqFWDVsDHu72SSd0NbRkuagtDM4lr+AvHksiGA3g5g=; b=hVac9yEIdAE9poqiMVbCVw+PdByz1up5iS5jAUoLp0sBwAiZnYG3e9jH7kq5MjPVXd tWmVOShkLDRbtHEN8mF3bauAT4d655j88gwqxVwBU6fvyAh+PUKWVB+SgRSB3i3b/WHA yW9G3zGsNMJRDqe2lFMt09Wqmo+beD+z4S5SVSMEWineGrwNG4gkvSve++QHCu5lEUVU L9uM5xwN05KhP/GXyGLkI2bm81ehIQkmmT/igP+QKcTWHzZmn6cg3RSq58+a5mMH9f5T aZlez+egilp/KXrjf6AqKPlgie59X5PF0yoExo28oFPv9m7fX1E6aOjnVaAzrdsKqMY9 r92g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=i4maBtHI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 11-20020a630d4b000000b003fd2602496esi19813707pgn.256.2022.06.07.22.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:26:32 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=i4maBtHI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 068094566D0; Tue, 7 Jun 2022 21:53:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347740AbiFGRnd (ORCPT + 99 others); Tue, 7 Jun 2022 13:43:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347894AbiFGRbV (ORCPT ); Tue, 7 Jun 2022 13:31:21 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BD5D11CA11; Tue, 7 Jun 2022 10:28:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 5E5EACE23D0; Tue, 7 Jun 2022 17:28:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59409C385A5; Tue, 7 Jun 2022 17:28:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654622919; bh=oDouO6mdzAYWxTehzPqDRU0dUj+dYy6VSS2XFOUZUd8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i4maBtHIs1mmVQJImZV5T1KmfrET9mSq+tARX5xEwbI0ZTuzvXrs22jibmfoD0rvl QuK6A+raUXpB2BL/5z1LUd9UhoDYBkhTqu1uAueKPfhjVXoMR89Roxz/CmWS+Jlwwj 4LnWkNc30UCHDTWUzpGEUybmVQwRP39/tgelljCk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Cai Huoqing , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.10 229/452] media: staging: media: rkvdec: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Jun 2022 19:01:26 +0200 Message-Id: <20220607164915.386816447@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Cai Huoqing [ Upstream commit 5a3683d60e56f4faa9552d3efafd87ef106dd393 ] Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/staging/media/rkvdec/rkvdec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/media/rkvdec/rkvdec.c b/drivers/staging/media/rkvdec/rkvdec.c index a7788e7a9542..e384ea8d7280 100644 --- a/drivers/staging/media/rkvdec/rkvdec.c +++ b/drivers/staging/media/rkvdec/rkvdec.c @@ -1000,7 +1000,6 @@ static const char * const rkvdec_clk_names[] = { static int rkvdec_probe(struct platform_device *pdev) { struct rkvdec_dev *rkvdec; - struct resource *res; unsigned int i; int ret, irq; @@ -1032,8 +1031,7 @@ static int rkvdec_probe(struct platform_device *pdev) */ clk_set_rate(rkvdec->clocks[0].clk, 500 * 1000 * 1000); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - rkvdec->regs = devm_ioremap_resource(&pdev->dev, res); + rkvdec->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(rkvdec->regs)) return PTR_ERR(rkvdec->regs); -- 2.35.1