Commit c82cf051 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Stephen Boyd

clk: bcm: dvp: drop a variable that is assigned to only

The third parameter to devm_platform_get_and_ioremap_resource() is used
only to provide the used resource. As this variable isn't used
afterwards, switch to the function devm_platform_ioremap_resource()
which doesn't provide this output parameter.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20201120132121.2678997-1-u.kleine-koenig@pengutronix.deReviewed-by: default avatarNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 3650b228
...@@ -25,7 +25,6 @@ static const struct clk_parent_data clk_dvp_parent = { ...@@ -25,7 +25,6 @@ static const struct clk_parent_data clk_dvp_parent = {
static int clk_dvp_probe(struct platform_device *pdev) static int clk_dvp_probe(struct platform_device *pdev)
{ {
struct clk_hw_onecell_data *data; struct clk_hw_onecell_data *data;
struct resource *res;
struct clk_dvp *dvp; struct clk_dvp *dvp;
void __iomem *base; void __iomem *base;
int ret; int ret;
...@@ -42,7 +41,7 @@ static int clk_dvp_probe(struct platform_device *pdev) ...@@ -42,7 +41,7 @@ static int clk_dvp_probe(struct platform_device *pdev)
return -ENOMEM; return -ENOMEM;
data = dvp->data; data = dvp->data;
base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(base)) if (IS_ERR(base))
return PTR_ERR(base); return PTR_ERR(base);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment