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 3b39262 commit d1aa454Copy full SHA for d1aa454
drivers/clk/clk-fsl-sai.c
@@ -33,14 +33,12 @@ static int fsl_sai_clk_probe(struct platform_device *pdev)
33
struct clk_parent_data pdata = { .index = 0 };
34
void __iomem *base;
35
struct clk_hw *hw;
36
- struct resource *res;
37
38
sai_clk = devm_kzalloc(dev, sizeof(*sai_clk), GFP_KERNEL);
39
if (!sai_clk)
40
return -ENOMEM;
41
42
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
43
- base = devm_ioremap_resource(dev, res);
+ base = devm_platform_ioremap_resource(pdev, 0);
44
if (IS_ERR(base))
45
return PTR_ERR(base);
46
0 commit comments