We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1aa454 commit 41c54f1Copy full SHA for 41c54f1
drivers/clk/clk-gemini.c
@@ -276,7 +276,6 @@ static int gemini_clk_probe(struct platform_device *pdev)
276
struct device *dev = &pdev->dev;
277
struct device_node *np = dev->of_node;
278
unsigned int mult, div;
279
- struct resource *res;
280
u32 val;
281
int ret;
282
int i;
@@ -286,8 +285,7 @@ static int gemini_clk_probe(struct platform_device *pdev)
286
285
return -ENOMEM;
287
288
/* Remap the system controller for the exclusive register */
289
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
290
- base = devm_ioremap_resource(dev, res);
+ base = devm_platform_ioremap_resource(pdev, 0);
291
if (IS_ERR(base))
292
return PTR_ERR(base);
293
0 commit comments