diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2008-04-19 10:42:25 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-04-19 11:29:09 +0100 |
commit | ba4eb7e60b11eba1ccd89d448e6d87d98df95da8 (patch) | |
tree | 2ddbb042dd7df1f47cd33dd58cbf1d1444288696 | |
parent | d8a42fc45517081d1a8cf050a86eb79b0e290774 (diff) |
[ARM] 5004/1: Tosa: make several unreferenced structures static.
Now that scoop gpio's are converted to generic_gpio,
tosascoop_device and tosascoop_jc_device don't have
to be exported.
Also make tosa_gpio_* static
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/mach-pxa/tosa.c | 8 | ||||
-rw-r--r-- | include/asm-arm/arch-pxa/tosa.h | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index af1cce31c74..1722093cfe5 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c @@ -170,7 +170,7 @@ static struct scoop_config tosa_scoop_setup = { .gpio_base = TOSA_SCOOP_GPIO_BASE, }; -struct platform_device tosascoop_device = { +static struct platform_device tosascoop_device = { .name = "sharp-scoop", .id = 0, .dev = { @@ -197,7 +197,7 @@ static struct scoop_config tosa_scoop_jc_setup = { .gpio_base = TOSA_SCOOP_JC_GPIO_BASE, }; -struct platform_device tosascoop_jc_device = { +static struct platform_device tosascoop_jc_device = { .name = "sharp-scoop", .id = 1, .dev = { @@ -421,7 +421,7 @@ static struct platform_device tosa_gpio_keys_device = { /* * Tosa LEDs */ -struct gpio_led tosa_gpio_leds[] = { +static struct gpio_led tosa_gpio_leds[] = { { .name = "tosa:amber:charge", .default_trigger = "main-battery-charging", @@ -434,7 +434,7 @@ struct gpio_led tosa_gpio_leds[] = { }, }; -struct gpio_led_platform_data tosa_gpio_leds_platform_data = { +static struct gpio_led_platform_data tosa_gpio_leds_platform_data = { .leds = tosa_gpio_leds, .num_leds = ARRAY_SIZE(tosa_gpio_leds), }; diff --git a/include/asm-arm/arch-pxa/tosa.h b/include/asm-arm/arch-pxa/tosa.h index 8bc7cdd0f79..bb6e12137de 100644 --- a/include/asm-arm/arch-pxa/tosa.h +++ b/include/asm-arm/arch-pxa/tosa.h @@ -151,12 +151,8 @@ #define TOSA_IRQ_GPIO_MAIN_BAT_LOW IRQ_GPIO(TOSA_GPIO_MAIN_BAT_LOW) -extern struct platform_device tosascoop_jc_device; -extern struct platform_device tosascoop_device; - #define TOSA_KEY_SYNC KEY_102ND /* ??? */ - #ifndef CONFIG_KEYBOARD_TOSA_USE_EXT_KEYCODES #define TOSA_KEY_RECORD KEY_YEN #define TOSA_KEY_ADDRESSBOOK KEY_KATAKANA |