diff options
author | Yangtao Li <frank.li@vivo.com> | 2023-07-05 09:53:05 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2023-08-23 00:28:15 +0300 |
commit | d1aa4546e209d49358652771bd6762c0701dc6c2 (patch) | |
tree | c377c2aed71567696ce48ad7158ca45b41b67055 /drivers/clk | |
parent | 3b392629e25aaa7ee2c971dda15995e6b0bb1e13 (diff) | |
download | linux-d1aa4546e209d49358652771bd6762c0701dc6c2.tar.xz |
clk: fsl-sai: Convert to devm_platform_ioremap_resource()
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Link: https://lore.kernel.org/r/20230705065313.67043-5-frank.li@vivo.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/clk-fsl-sai.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/clk-fsl-sai.c b/drivers/clk/clk-fsl-sai.c index ee5baf993ff2..cba45e07562d 100644 --- a/drivers/clk/clk-fsl-sai.c +++ b/drivers/clk/clk-fsl-sai.c @@ -33,14 +33,12 @@ static int fsl_sai_clk_probe(struct platform_device *pdev) struct clk_parent_data pdata = { .index = 0 }; void __iomem *base; struct clk_hw *hw; - struct resource *res; sai_clk = devm_kzalloc(dev, sizeof(*sai_clk), GFP_KERNEL); if (!sai_clk) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); |