mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
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>
This commit is contained in:
parent
d1eef1c619
commit
22c48a439d
@ -37,10 +37,7 @@ static struct cpuidle_driver clps711x_idle_driver = {
|
||||
|
||||
static int __init clps711x_cpuidle_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct resource *res;
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
clps711x_halt = devm_ioremap_resource(&pdev->dev, res);
|
||||
clps711x_halt = devm_platform_ioremap_resource(pdev, 0);
|
||||
if (IS_ERR(clps711x_halt))
|
||||
return PTR_ERR(clps711x_halt);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user