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.

misc/xilinx_sdfec: 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: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20230707024224.78907-2-frank.li@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Yangtao Li and committed by
Greg Kroah-Hartman
190d1f22 c6695aad

+1 -3
+1 -3
drivers/misc/xilinx_sdfec.c
··· 1347 1347 { 1348 1348 struct xsdfec_dev *xsdfec; 1349 1349 struct device *dev; 1350 - struct resource *res; 1351 1350 int err; 1352 1351 bool irq_enabled = true; 1353 1352 ··· 1362 1363 return err; 1363 1364 1364 1365 dev = xsdfec->dev; 1365 - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 1366 - xsdfec->regs = devm_ioremap_resource(dev, res); 1366 + xsdfec->regs = devm_platform_ioremap_resource(pdev, 0); 1367 1367 if (IS_ERR(xsdfec->regs)) { 1368 1368 err = PTR_ERR(xsdfec->regs); 1369 1369 goto err_xsdfec_dev;