diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-rx51-peripherals.c')
-rw-r--r-- | arch/arm/mach-omap2/board-rx51-peripherals.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index 5c0d0e120420..f093af17f5e6 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | |||
@@ -213,29 +213,11 @@ static struct lp55xx_led_config rx51_lp5523_led_config[] = { | |||
213 | } | 213 | } |
214 | }; | 214 | }; |
215 | 215 | ||
216 | static int rx51_lp5523_setup(void) | ||
217 | { | ||
218 | return gpio_request_one(RX51_LP5523_CHIP_EN_GPIO, GPIOF_DIR_OUT, | ||
219 | "lp5523_enable"); | ||
220 | } | ||
221 | |||
222 | static void rx51_lp5523_release(void) | ||
223 | { | ||
224 | gpio_free(RX51_LP5523_CHIP_EN_GPIO); | ||
225 | } | ||
226 | |||
227 | static void rx51_lp5523_enable(bool state) | ||
228 | { | ||
229 | gpio_set_value(RX51_LP5523_CHIP_EN_GPIO, !!state); | ||
230 | } | ||
231 | |||
232 | static struct lp55xx_platform_data rx51_lp5523_platform_data = { | 216 | static struct lp55xx_platform_data rx51_lp5523_platform_data = { |
233 | .led_config = rx51_lp5523_led_config, | 217 | .led_config = rx51_lp5523_led_config, |
234 | .num_channels = ARRAY_SIZE(rx51_lp5523_led_config), | 218 | .num_channels = ARRAY_SIZE(rx51_lp5523_led_config), |
235 | .clock_mode = LP55XX_CLOCK_AUTO, | 219 | .clock_mode = LP55XX_CLOCK_AUTO, |
236 | .setup_resources = rx51_lp5523_setup, | 220 | .enable_gpio = RX51_LP5523_CHIP_EN_GPIO, |
237 | .release_resources = rx51_lp5523_release, | ||
238 | .enable = rx51_lp5523_enable, | ||
239 | }; | 221 | }; |
240 | #endif | 222 | #endif |
241 | 223 | ||