Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: imx: clk-imx8qxp-lpcg: Convert to devm_platform_ioremap_resource()

Use devm_platform_ioremap_resource() to simplify code.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20230705065313.67043-8-frank.li@vivo.com
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>

authored by

Yangtao Li and committed by
Abel Vesa
94945b23 2deed4cd

+1 -3
+1 -3
drivers/clk/imx/clk-imx8qxp-lpcg.c
··· 183 183 unsigned int bit_offset[IMX_LPCG_MAX_CLKS]; 184 184 struct clk_hw_onecell_data *clk_data; 185 185 struct clk_hw **clk_hws; 186 - struct resource *res; 187 186 void __iomem *base; 188 187 int count; 189 188 int idx; ··· 192 193 if (!of_device_is_compatible(np, "fsl,imx8qxp-lpcg")) 193 194 return -EINVAL; 194 195 195 - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 196 - base = devm_ioremap_resource(&pdev->dev, res); 196 + base = devm_platform_ioremap_resource(pdev, 0); 197 197 if (IS_ERR(base)) 198 198 return PTR_ERR(base); 199 199