diff options
Diffstat (limited to 'drivers/misc/hdpuftrs/hdpu_cpustate.c')
-rw-r--r-- | drivers/misc/hdpuftrs/hdpu_cpustate.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/misc/hdpuftrs/hdpu_cpustate.c b/drivers/misc/hdpuftrs/hdpu_cpustate.c index bc2b72b32905..11a801be71c8 100644 --- a/drivers/misc/hdpuftrs/hdpu_cpustate.c +++ b/drivers/misc/hdpuftrs/hdpu_cpustate.c | |||
@@ -26,8 +26,8 @@ | |||
26 | 26 | ||
27 | #define SKY_CPUSTATE_VERSION "1.1" | 27 | #define SKY_CPUSTATE_VERSION "1.1" |
28 | 28 | ||
29 | static int hdpu_cpustate_probe(struct device *ddev); | 29 | static int hdpu_cpustate_probe(struct platform_device *pdev); |
30 | static int hdpu_cpustate_remove(struct device *ddev); | 30 | static int hdpu_cpustate_remove(struct platform_device *pdev); |
31 | 31 | ||
32 | struct cpustate_t cpustate; | 32 | struct cpustate_t cpustate; |
33 | 33 | ||
@@ -158,11 +158,12 @@ static int cpustate_read_proc(char *page, char **start, off_t off, | |||
158 | return len; | 158 | return len; |
159 | } | 159 | } |
160 | 160 | ||
161 | static struct device_driver hdpu_cpustate_driver = { | 161 | static struct platform_driver hdpu_cpustate_driver = { |
162 | .name = HDPU_CPUSTATE_NAME, | ||
163 | .bus = &platform_bus_type, | ||
164 | .probe = hdpu_cpustate_probe, | 162 | .probe = hdpu_cpustate_probe, |
165 | .remove = hdpu_cpustate_remove, | 163 | .remove = hdpu_cpustate_remove, |
164 | .driver = { | ||
165 | .name = HDPU_CPUSTATE_NAME, | ||
166 | }, | ||
166 | }; | 167 | }; |
167 | 168 | ||
168 | /* | 169 | /* |
@@ -187,9 +188,8 @@ static struct miscdevice cpustate_dev = { | |||
187 | &cpustate_fops | 188 | &cpustate_fops |
188 | }; | 189 | }; |
189 | 190 | ||
190 | static int hdpu_cpustate_probe(struct device *ddev) | 191 | static int hdpu_cpustate_probe(struct platform_device *pdev) |
191 | { | 192 | { |
192 | struct platform_device *pdev = to_platform_device(ddev); | ||
193 | struct resource *res; | 193 | struct resource *res; |
194 | struct proc_dir_entry *proc_de; | 194 | struct proc_dir_entry *proc_de; |
195 | int ret; | 195 | int ret; |
@@ -217,7 +217,7 @@ static int hdpu_cpustate_probe(struct device *ddev) | |||
217 | return 0; | 217 | return 0; |
218 | } | 218 | } |
219 | 219 | ||
220 | static int hdpu_cpustate_remove(struct device *ddev) | 220 | static int hdpu_cpustate_remove(struct platform_device *pdev) |
221 | { | 221 | { |
222 | 222 | ||
223 | cpustate.set_addr = NULL; | 223 | cpustate.set_addr = NULL; |
@@ -232,13 +232,13 @@ static int hdpu_cpustate_remove(struct device *ddev) | |||
232 | static int __init cpustate_init(void) | 232 | static int __init cpustate_init(void) |
233 | { | 233 | { |
234 | int rc; | 234 | int rc; |
235 | rc = driver_register(&hdpu_cpustate_driver); | 235 | rc = platform_driver_register(&hdpu_cpustate_driver); |
236 | return rc; | 236 | return rc; |
237 | } | 237 | } |
238 | 238 | ||
239 | static void __exit cpustate_exit(void) | 239 | static void __exit cpustate_exit(void) |
240 | { | 240 | { |
241 | driver_unregister(&hdpu_cpustate_driver); | 241 | platform_driver_unregister(&hdpu_cpustate_driver); |
242 | } | 242 | } |
243 | 243 | ||
244 | module_init(cpustate_init); | 244 | module_init(cpustate_init); |