forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/x86/platform/olpc/olpc-xo1-pm.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Support for power management features of the OLPC XO-1 laptop
34 *
....@@ -5,18 +6,12 @@
56 * Copyright (C) 2010 One Laptop per Child
67 * Copyright (C) 2006 Red Hat, Inc.
78 * Copyright (C) 2006 Advanced Micro Devices, Inc.
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published by
11
- * the Free Software Foundation; either version 2 of the License, or
12
- * (at your option) any later version.
139 */
1410
1511 #include <linux/cs5535.h>
1612 #include <linux/platform_device.h>
1713 #include <linux/export.h>
1814 #include <linux/pm.h>
19
-#include <linux/mfd/core.h>
2015 #include <linux/suspend.h>
2116 #include <linux/olpc-ec.h>
2217
....@@ -124,15 +119,10 @@
124119 static int xo1_pm_probe(struct platform_device *pdev)
125120 {
126121 struct resource *res;
127
- int err;
128122
129123 /* don't run on non-XOs */
130124 if (!machine_is_olpc())
131125 return -ENODEV;
132
-
133
- err = mfd_cell_enable(pdev);
134
- if (err)
135
- return err;
136126
137127 res = platform_get_resource(pdev, IORESOURCE_IO, 0);
138128 if (!res) {
....@@ -156,8 +146,6 @@
156146
157147 static int xo1_pm_remove(struct platform_device *pdev)
158148 {
159
- mfd_cell_disable(pdev);
160
-
161149 if (strcmp(pdev->name, "cs5535-pms") == 0)
162150 pms_base = 0;
163151 else if (strcmp(pdev->name, "olpc-xo1-pm-acpi") == 0)