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 ac57ffb commit 68a49d3Copy full SHA for 68a49d3
drivers/clk/sunxi/clk-sun6i-ar100.c
@@ -71,12 +71,10 @@ static DEFINE_SPINLOCK(sun6i_ar100_lock);
71
static int sun6i_a31_ar100_clk_probe(struct platform_device *pdev)
72
{
73
struct device_node *np = pdev->dev.of_node;
74
- struct resource *r;
75
void __iomem *reg;
76
struct clk *clk;
77
78
- r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
79
- reg = devm_ioremap_resource(&pdev->dev, r);
+ reg = devm_platform_ioremap_resource(pdev, 0);
80
if (IS_ERR(reg))
81
return PTR_ERR(reg);
82
0 commit comments