forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 e636c8d336489bf3eed5878299e6cc045bbad077
kernel/drivers/cpuidle/cpuidle-clps711x.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * CLPS711X CPU idle driver
34 *
45 * Copyright (C) 2014 Alexander Shiyan <shc_work@mail.ru>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
106 */
117
128 #include <linux/cpuidle.h>
....@@ -41,10 +37,7 @@
4137
4238 static int __init clps711x_cpuidle_probe(struct platform_device *pdev)
4339 {
44
- struct resource *res;
45
-
46
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
47
- clps711x_halt = devm_ioremap_resource(&pdev->dev, res);
40
+ clps711x_halt = devm_platform_ioremap_resource(pdev, 0);
4841 if (IS_ERR(clps711x_halt))
4942 return PTR_ERR(clps711x_halt);
5043