forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/cpuidle/cpuidle-kirkwood.c
....@@ -55,10 +55,7 @@
5555 /* Initialize CPU idle by registering the idle states */
5656 static int kirkwood_cpuidle_probe(struct platform_device *pdev)
5757 {
58
- struct resource *res;
59
-
60
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
61
- ddr_operation_base = devm_ioremap_resource(&pdev->dev, res);
58
+ ddr_operation_base = devm_platform_ioremap_resource(pdev, 0);
6259 if (IS_ERR(ddr_operation_base))
6360 return PTR_ERR(ddr_operation_base);
6461