Skip to content

Commit c5c1a0a

Browse files
caihuoqing1990Sylwester Nawrocki
authored andcommitted
clk: samsung: exynos-audss: Make use of devm_platform_ioremap_resource()
Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing <[email protected]> Signed-off-by: Sylwester Nawrocki <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6880fa6 commit c5c1a0a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/clk/samsung/clk-exynos-audss.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,14 @@ static int exynos_audss_clk_probe(struct platform_device *pdev)
129129
struct clk *pll_ref, *pll_in, *cdclk, *sclk_audio, *sclk_pcm_in;
130130
const struct exynos_audss_clk_drvdata *variant;
131131
struct clk_hw **clk_table;
132-
struct resource *res;
133132
struct device *dev = &pdev->dev;
134133
int i, ret = 0;
135134

136135
variant = of_device_get_match_data(&pdev->dev);
137136
if (!variant)
138137
return -EINVAL;
139138

140-
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
141-
reg_base = devm_ioremap_resource(dev, res);
139+
reg_base = devm_platform_ioremap_resource(pdev, 0);
142140
if (IS_ERR(reg_base))
143141
return PTR_ERR(reg_base);
144142

0 commit comments

Comments
 (0)