Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355100
b: refs/heads/master
c: 6a639bb
h: refs/heads/master
v: v3
  • Loading branch information
Mike Dunn authored and Haojian Zhuang committed Jan 23, 2013
1 parent bf35b03 commit 3943d67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2c33727a62ac07eed3ae423c209f549394c5c4e9
refs/heads/master: 6a639bb83b751bfed61be13c0e3df17e5a970a94
2 changes: 0 additions & 2 deletions trunk/arch/arm/mach-pxa/include/mach/palmtreo.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#define GPIO_NR_TREO_LCD_POWER 25

/* Treo680 specific GPIOs */
#ifdef CONFIG_MACH_TREO680
#define GPIO_NR_TREO680_SD_READONLY 33
#define GPIO_NR_TREO680_SD_POWER 42
#define GPIO_NR_TREO680_VIBRATE_EN 44
Expand All @@ -47,7 +46,6 @@
#define GPIO_NR_TREO680_LCD_POWER 77
#define GPIO_NR_TREO680_LCD_EN 86
#define GPIO_NR_TREO680_LCD_EN_N 25
#endif /* CONFIG_MACH_TREO680 */

/* Centro685 specific GPIOs */
#define GPIO_NR_CENTRO_SD_POWER 21
Expand Down
9 changes: 2 additions & 7 deletions trunk/arch/arm/mach-pxa/palmtreo.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ static inline void palmtreo_uhc_init(void) {}
/******************************************************************************
* Vibra and LEDs
******************************************************************************/
#ifdef CONFIG_MACH_TREO680
static struct gpio_led treo680_gpio_leds[] = {
{
.name = "treo680:vibra:vibra",
Expand Down Expand Up @@ -385,21 +384,17 @@ static struct gpio_led_platform_data centro_gpio_led_info = {
static struct platform_device palmtreo_leds = {
.name = "leds-gpio",
.id = -1,
.dev = {
.platform_data = &treo680_gpio_led_info,
}
};

static void __init palmtreo_leds_init(void)
{
if (machine_is_centro())
palmtreo_leds.dev.platform_data = &centro_gpio_led_info;
else if (machine_is_treo680())
palmtreo_leds.dev.platform_data = &treo680_gpio_led_info;

platform_device_register(&palmtreo_leds);
}
#else
static inline void palmtreo_leds_init(void) {}
#endif

/******************************************************************************
* Machine init
Expand Down

0 comments on commit 3943d67

Please sign in to comment.