diff options
-rw-r--r-- | arch/arm/mach-pxa/generic.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/mfp-pxa3xx.c | 20 | ||||
-rw-r--r-- | arch/arm/mach-pxa/pxa3xx.c | 2 |
3 files changed, 13 insertions, 10 deletions
diff --git a/arch/arm/mach-pxa/generic.h b/arch/arm/mach-pxa/generic.h index bd2a2356d976..8bca89c4a256 100644 --- a/arch/arm/mach-pxa/generic.h +++ b/arch/arm/mach-pxa/generic.h | |||
@@ -55,3 +55,4 @@ extern unsigned pxa3xx_get_memclk_frequency_10khz(void); | |||
55 | 55 | ||
56 | extern struct sysdev_class pxa_irq_sysclass; | 56 | extern struct sysdev_class pxa_irq_sysclass; |
57 | extern struct sysdev_class pxa_gpio_sysclass; | 57 | extern struct sysdev_class pxa_gpio_sysclass; |
58 | extern struct sysdev_class pxa3xx_mfp_sysclass; | ||
diff --git a/arch/arm/mach-pxa/mfp-pxa3xx.c b/arch/arm/mach-pxa/mfp-pxa3xx.c index f5809adce298..b84c3ba7a8d6 100644 --- a/arch/arm/mach-pxa/mfp-pxa3xx.c +++ b/arch/arm/mach-pxa/mfp-pxa3xx.c | |||
@@ -234,22 +234,22 @@ static int pxa3xx_mfp_resume(struct sys_device *d) | |||
234 | 234 | ||
235 | return 0; | 235 | return 0; |
236 | } | 236 | } |
237 | #else | ||
238 | #define pxa3xx_mfp_suspend NULL | ||
239 | #define pxa3xx_mfp_resume NULL | ||
240 | #endif | ||
237 | 241 | ||
238 | static struct sysdev_class mfp_sysclass = { | 242 | struct sysdev_class pxa3xx_mfp_sysclass = { |
239 | .name = "mfp", | 243 | .name = "mfp", |
240 | .suspend = pxa3xx_mfp_suspend, | 244 | .suspend = pxa3xx_mfp_suspend, |
241 | .resume = pxa3xx_mfp_resume, | 245 | .resume = pxa3xx_mfp_resume, |
242 | }; | 246 | }; |
243 | 247 | ||
244 | static struct sys_device mfp_device = { | ||
245 | .id = 0, | ||
246 | .cls = &mfp_sysclass, | ||
247 | }; | ||
248 | |||
249 | static int __init mfp_init_devicefs(void) | 248 | static int __init mfp_init_devicefs(void) |
250 | { | 249 | { |
251 | sysdev_class_register(&mfp_sysclass); | 250 | if (cpu_is_pxa3xx()) |
252 | return sysdev_register(&mfp_device); | 251 | return sysdev_class_register(&pxa3xx_mfp_sysclass); |
252 | |||
253 | return 0; | ||
253 | } | 254 | } |
254 | device_initcall(mfp_init_devicefs); | 255 | postcore_initcall(mfp_init_devicefs); |
255 | #endif | ||
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index eedcec0bf3f0..85b1df3f69c9 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c | |||
@@ -532,6 +532,8 @@ static struct sys_device pxa3xx_sysdev[] = { | |||
532 | { | 532 | { |
533 | .cls = &pxa_irq_sysclass, | 533 | .cls = &pxa_irq_sysclass, |
534 | }, { | 534 | }, { |
535 | .cls = &pxa3xx_mfp_sysclass, | ||
536 | }, { | ||
535 | .cls = &pxa_gpio_sysclass, | 537 | .cls = &pxa_gpio_sysclass, |
536 | }, | 538 | }, |
537 | }; | 539 | }; |