aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clk/clk-fsl-sai.c
diff options
context:
space:
mode:
authorYangtao Li <frank.li@vivo.com>2023-07-05 14:53:05 +0800
committerStephen Boyd <sboyd@kernel.org>2023-08-22 14:28:15 -0700
commitd1aa4546e209d49358652771bd6762c0701dc6c2 (patch)
treec377c2aed71567696ce48ad7158ca45b41b67055 /drivers/clk/clk-fsl-sai.c
parentclk: bm1880: Convert to devm_platform_ioremap_resource() (diff)
downloadwireguard-linux-d1aa4546e209d49358652771bd6762c0701dc6c2.tar.xz
wireguard-linux-d1aa4546e209d49358652771bd6762c0701dc6c2.zip
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/clk-fsl-sai.c')
-rw-r--r--drivers/clk/clk-fsl-sai.c4
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);