summaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle/cpuidle-kirkwood.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-01-17 00:18:31 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-01-17 00:18:31 +0100
commitf7d50a1534a833f4d07c5bc0c2f37eaf1e905598 (patch)
tree6cc649a8aa8b4b52787a1daefd1885ca82c89fe4 /drivers/cpuidle/cpuidle-kirkwood.c
parentcpuidle: teo: Fix intervals[] array indexing bug (diff)
parentcpuidle: arm: Enable compile testing for some of drivers (diff)
downloadlinux-f7d50a1534a833f4d07c5bc0c2f37eaf1e905598.tar.xz
linux-f7d50a1534a833f4d07c5bc0c2f37eaf1e905598.zip
Merge back cpuidle material for v5.6.
Diffstat (limited to 'drivers/cpuidle/cpuidle-kirkwood.c')
-rw-r--r--drivers/cpuidle/cpuidle-kirkwood.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/cpuidle/cpuidle-kirkwood.c b/drivers/cpuidle/cpuidle-kirkwood.c
index d23d8f468c12..511c4f46027a 100644
--- a/drivers/cpuidle/cpuidle-kirkwood.c
+++ b/drivers/cpuidle/cpuidle-kirkwood.c
@@ -55,10 +55,7 @@ static struct cpuidle_driver kirkwood_idle_driver = {
/* Initialize CPU idle by registering the idle states */
static int kirkwood_cpuidle_probe(struct platform_device *pdev)
{
- struct resource *res;
-
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- ddr_operation_base = devm_ioremap_resource(&pdev->dev, res);
+ ddr_operation_base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(ddr_operation_base))
return PTR_ERR(ddr_operation_base);