Skip to content

Commit d1aa454

Browse files
bbkzzbebarino
authored andcommitted
clk: fsl-sai: Convert to devm_platform_ioremap_resource()
Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 3b39262 commit d1aa454

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/clk/clk-fsl-sai.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,12 @@ static int fsl_sai_clk_probe(struct platform_device *pdev)
3333
struct clk_parent_data pdata = { .index = 0 };
3434
void __iomem *base;
3535
struct clk_hw *hw;
36-
struct resource *res;
3736

3837
sai_clk = devm_kzalloc(dev, sizeof(*sai_clk), GFP_KERNEL);
3938
if (!sai_clk)
4039
return -ENOMEM;
4140

42-
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
43-
base = devm_ioremap_resource(dev, res);
41+
base = devm_platform_ioremap_resource(pdev, 0);
4442
if (IS_ERR(base))
4543
return PTR_ERR(base);
4644

0 commit comments

Comments
 (0)