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 73c3bf7 commit 71ae814Copy full SHA for 71ae814
drivers/clk/mediatek/clk-mt6779.c
@@ -1225,12 +1225,11 @@ static int clk_mt6779_apmixed_probe(struct platform_device *pdev)
1225
1226
static int clk_mt6779_top_probe(struct platform_device *pdev)
1227
{
1228
- struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
1229
void __iomem *base;
1230
struct clk_onecell_data *clk_data;
1231
struct device_node *node = pdev->dev.of_node;
1232
1233
- base = devm_ioremap_resource(&pdev->dev, res);
+ base = devm_platform_ioremap_resource(pdev, 0);
1234
if (IS_ERR(base))
1235
return PTR_ERR(base);
1236
0 commit comments