diff options
-rw-r--r-- | arch/x86/platform/olpc/olpc-xo1.c | 12 | ||||
-rw-r--r-- | drivers/mfd/cs5535-mfd.c | 4 |
2 files changed, 7 insertions, 9 deletions
diff --git a/arch/x86/platform/olpc/olpc-xo1.c b/arch/x86/platform/olpc/olpc-xo1.c index 386e3a159cca..ab81fb271760 100644 --- a/arch/x86/platform/olpc/olpc-xo1.c +++ b/arch/x86/platform/olpc/olpc-xo1.c | |||
@@ -72,9 +72,9 @@ static int __devinit olpc_xo1_probe(struct platform_device *pdev) | |||
72 | dev_err(&pdev->dev, "can't fetch device resource info\n"); | 72 | dev_err(&pdev->dev, "can't fetch device resource info\n"); |
73 | return -EIO; | 73 | return -EIO; |
74 | } | 74 | } |
75 | if (strcmp(pdev->name, "olpc-xo1-pms") == 0) | 75 | if (strcmp(pdev->name, "cs5535-pms") == 0) |
76 | pms_base = res->start; | 76 | pms_base = res->start; |
77 | else if (strcmp(pdev->name, "olpc-xo1-ac-acpi") == 0) | 77 | else if (strcmp(pdev->name, "olpc-xo1-pm-acpi") == 0) |
78 | acpi_base = res->start; | 78 | acpi_base = res->start; |
79 | 79 | ||
80 | /* If we have both addresses, we can override the poweroff hook */ | 80 | /* If we have both addresses, we can override the poweroff hook */ |
@@ -90,9 +90,9 @@ static int __devexit olpc_xo1_remove(struct platform_device *pdev) | |||
90 | { | 90 | { |
91 | mfd_cell_disable(pdev); | 91 | mfd_cell_disable(pdev); |
92 | 92 | ||
93 | if (strcmp(pdev->name, "olpc-xo1-pms") == 0) | 93 | if (strcmp(pdev->name, "cs5535-pms") == 0) |
94 | pms_base = 0; | 94 | pms_base = 0; |
95 | else if (strcmp(pdev->name, "olpc-xo1-acpi") == 0) | 95 | else if (strcmp(pdev->name, "olpc-xo1-pm-acpi") == 0) |
96 | acpi_base = 0; | 96 | acpi_base = 0; |
97 | 97 | ||
98 | pm_power_off = NULL; | 98 | pm_power_off = NULL; |
@@ -101,7 +101,7 @@ static int __devexit olpc_xo1_remove(struct platform_device *pdev) | |||
101 | 101 | ||
102 | static struct platform_driver cs5535_pms_drv = { | 102 | static struct platform_driver cs5535_pms_drv = { |
103 | .driver = { | 103 | .driver = { |
104 | .name = "olpc-xo1-pms", | 104 | .name = "cs5535-pms", |
105 | .owner = THIS_MODULE, | 105 | .owner = THIS_MODULE, |
106 | }, | 106 | }, |
107 | .probe = olpc_xo1_probe, | 107 | .probe = olpc_xo1_probe, |
@@ -110,7 +110,7 @@ static struct platform_driver cs5535_pms_drv = { | |||
110 | 110 | ||
111 | static struct platform_driver cs5535_acpi_drv = { | 111 | static struct platform_driver cs5535_acpi_drv = { |
112 | .driver = { | 112 | .driver = { |
113 | .name = "olpc-xo1-acpi", | 113 | .name = "olpc-xo1-pm-acpi", |
114 | .owner = THIS_MODULE, | 114 | .owner = THIS_MODULE, |
115 | }, | 115 | }, |
116 | .probe = olpc_xo1_probe, | 116 | .probe = olpc_xo1_probe, |
diff --git a/drivers/mfd/cs5535-mfd.c b/drivers/mfd/cs5535-mfd.c index 24959ddd9324..155fa0407882 100644 --- a/drivers/mfd/cs5535-mfd.c +++ b/drivers/mfd/cs5535-mfd.c | |||
@@ -115,14 +115,12 @@ static __devinitdata struct mfd_cell cs5535_mfd_cells[] = { | |||
115 | #ifdef CONFIG_OLPC | 115 | #ifdef CONFIG_OLPC |
116 | static void __devinit cs5535_clone_olpc_cells(void) | 116 | static void __devinit cs5535_clone_olpc_cells(void) |
117 | { | 117 | { |
118 | const char *acpi_clones[] = { "olpc-xo1-acpi" }; | 118 | const char *acpi_clones[] = { "olpc-xo1-pm-acpi", "olpc-xo1-sci-acpi" }; |
119 | const char *pms_clones[] = { "olpc-xo1-pms" }; | ||
120 | 119 | ||
121 | if (!machine_is_olpc()) | 120 | if (!machine_is_olpc()) |
122 | return; | 121 | return; |
123 | 122 | ||
124 | mfd_clone_cell("cs5535-acpi", acpi_clones, ARRAY_SIZE(acpi_clones)); | 123 | mfd_clone_cell("cs5535-acpi", acpi_clones, ARRAY_SIZE(acpi_clones)); |
125 | mfd_clone_cell("cs5535-pms", pms_clones, ARRAY_SIZE(pms_clones)); | ||
126 | } | 124 | } |
127 | #else | 125 | #else |
128 | static void cs5535_clone_olpc_cells(void) { } | 126 | static void cs5535_clone_olpc_cells(void) { } |