aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/leds.c
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@nokia.com>2008-12-10 17:35:30 -0800
committerTony Lindgren <tony@atomide.com>2008-12-10 17:35:30 -0800
commitf2d18fea8b87d09bdda22cc67c36f5f463452a33 (patch)
treea8641626136a6f14d2873e13f263fa0de6ab04f8 /arch/arm/mach-omap1/leds.c
parente031ab23deb5a5d9ac5744e69a0627823e81b074 (diff)
downloadkernel_samsung_smdk4412-f2d18fea8b87d09bdda22cc67c36f5f463452a33.zip
kernel_samsung_smdk4412-f2d18fea8b87d09bdda22cc67c36f5f463452a33.tar.gz
kernel_samsung_smdk4412-f2d18fea8b87d09bdda22cc67c36f5f463452a33.tar.bz2
ARM: OMAP: Switch to gpio_request/free calls
Switch to gpio_request/free calls Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/leds.c')
-rw-r--r--arch/arm/mach-omap1/leds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap1/leds.c b/arch/arm/mach-omap1/leds.c
index 540434e..8cbf256 100644
--- a/arch/arm/mach-omap1/leds.c
+++ b/arch/arm/mach-omap1/leds.c
@@ -47,13 +47,13 @@ omap_leds_init(void)
* that's a different kind of LED (just one color at a time).
*/
omap_cfg_reg(P18_1610_GPIO3);
- if (omap_request_gpio(3) == 0)
+ if (gpio_request(3, "LED red") == 0)
gpio_direction_output(3, 1);
else
printk(KERN_WARNING "LED: can't get GPIO3/red?\n");
omap_cfg_reg(MPUIO4);
- if (omap_request_gpio(OMAP_MPUIO(4)) == 0)
+ if (gpio_request(OMAP_MPUIO(4), "LED green") == 0)
gpio_direction_output(OMAP_MPUIO(4), 1);
else
printk(KERN_WARNING "LED: can't get MPUIO4/green?\n");