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

cpuidle: clps711x: convert to devm_platform_ioremap_resource()

Use devm_platform_ioremap_resource() to simplify code.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Yangtao Li and committed by
Rafael J. Wysocki
22c48a43 d1eef1c6

+1 -4
+1 -4
drivers/cpuidle/cpuidle-clps711x.c
··· 37 37 38 38 static int __init clps711x_cpuidle_probe(struct platform_device *pdev) 39 39 { 40 - struct resource *res; 41 - 42 - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 43 - clps711x_halt = devm_ioremap_resource(&pdev->dev, res); 40 + clps711x_halt = devm_platform_ioremap_resource(pdev, 0); 44 41 if (IS_ERR(clps711x_halt)) 45 42 return PTR_ERR(clps711x_halt); 46 43