diff options
author | Dmitry Artamonow <mad_soft@inbox.ru> | 2009-03-15 14:14:27 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-03-15 16:08:20 -0400 |
commit | 607b067e161185d5c441aa366ff9fccd4fd676cb (patch) | |
tree | 29c7ee2c11793ba16f3c4e99fddb7d8908dff510 /arch/arm/mach-sa1100/h3600.c | |
parent | 104a416d80fca22284319b06eff87b6f632a3649 (diff) |
[ARM] 5427/1: h3600: ipaq_model_ops final cleanup
Since now ipaq_model_ops used only for accessing h3600 EGPIOs,
drop it completely and use assign_h3600_egpio() directly.
Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-sa1100/h3600.c')
-rw-r--r-- | arch/arm/mach-sa1100/h3600.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/arch/arm/mach-sa1100/h3600.c b/arch/arm/mach-sa1100/h3600.c index 1fa0f58c07b0..0eb2f159578b 100644 --- a/arch/arm/mach-sa1100/h3600.c +++ b/arch/arm/mach-sa1100/h3600.c | |||
@@ -46,8 +46,8 @@ | |||
46 | 46 | ||
47 | #include "generic.h" | 47 | #include "generic.h" |
48 | 48 | ||
49 | struct ipaq_model_ops ipaq_model_ops; | 49 | void (*assign_h3600_egpio)(enum ipaq_egpio_type x, int level); |
50 | EXPORT_SYMBOL(ipaq_model_ops); | 50 | EXPORT_SYMBOL(assign_h3600_egpio); |
51 | 51 | ||
52 | static struct mtd_partition h3xxx_partitions[] = { | 52 | static struct mtd_partition h3xxx_partitions[] = { |
53 | { | 53 | { |
@@ -293,10 +293,6 @@ static void h3100_control_egpio(enum ipaq_egpio_type x, int setp) | |||
293 | } | 293 | } |
294 | } | 294 | } |
295 | 295 | ||
296 | static struct ipaq_model_ops h3100_model_ops __initdata = { | ||
297 | .control = h3100_control_egpio, | ||
298 | }; | ||
299 | |||
300 | #define H3100_DIRECT_EGPIO (GPIO_H3100_BT_ON \ | 296 | #define H3100_DIRECT_EGPIO (GPIO_H3100_BT_ON \ |
301 | | GPIO_H3100_GPIO3 \ | 297 | | GPIO_H3100_GPIO3 \ |
302 | | GPIO_H3100_QMUTE \ | 298 | | GPIO_H3100_QMUTE \ |
@@ -322,7 +318,7 @@ static void __init h3100_map_io(void) | |||
322 | GAFR &= ~H3100_DIRECT_EGPIO; | 318 | GAFR &= ~H3100_DIRECT_EGPIO; |
323 | 319 | ||
324 | H3100_EGPIO = h3100_egpio; | 320 | H3100_EGPIO = h3100_egpio; |
325 | ipaq_model_ops = h3100_model_ops; | 321 | assign_h3600_egpio = h3100_control_egpio; |
326 | } | 322 | } |
327 | 323 | ||
328 | MACHINE_START(H3100, "Compaq iPAQ H3100") | 324 | MACHINE_START(H3100, "Compaq iPAQ H3100") |
@@ -405,10 +401,6 @@ static void h3600_control_egpio(enum ipaq_egpio_type x, int setp) | |||
405 | } | 401 | } |
406 | } | 402 | } |
407 | 403 | ||
408 | static struct ipaq_model_ops h3600_model_ops __initdata = { | ||
409 | .control = h3600_control_egpio, | ||
410 | }; | ||
411 | |||
412 | static void __init h3600_map_io(void) | 404 | static void __init h3600_map_io(void) |
413 | { | 405 | { |
414 | h3xxx_map_io(); | 406 | h3xxx_map_io(); |
@@ -423,7 +415,7 @@ static void __init h3600_map_io(void) | |||
423 | GPIO_LDD11 | GPIO_LDD10 | GPIO_LDD9 | GPIO_LDD8; | 415 | GPIO_LDD11 | GPIO_LDD10 | GPIO_LDD9 | GPIO_LDD8; |
424 | 416 | ||
425 | H3600_EGPIO = h3600_egpio; /* Maintains across sleep? */ | 417 | H3600_EGPIO = h3600_egpio; /* Maintains across sleep? */ |
426 | ipaq_model_ops = h3600_model_ops; | 418 | assign_h3600_egpio = h3600_control_egpio; |
427 | } | 419 | } |
428 | 420 | ||
429 | MACHINE_START(H3600, "Compaq iPAQ H3600") | 421 | MACHINE_START(H3600, "Compaq iPAQ H3600") |