diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-10 18:09:35 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 19:30:49 -0500 |
commit | 95dafd475382740a841697a2ead6566175d26390 (patch) | |
tree | 4aa338ef4b6afb327fc037ed8811e99be18dfe73 /drivers/leds/leds-bd2802.c | |
parent | 1980bcfa6bc5a77491176ba695422e205dcfd2da (diff) |
drivers/leds/leds-bd2802.c: use gpio_request_one()
Use gpio_request_one() instead of multiple gpiolib calls.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Kim Kyuwon <q1.kim@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/leds/leds-bd2802.c')
-rw-r--r-- | drivers/leds/leds-bd2802.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/leds/leds-bd2802.c b/drivers/leds/leds-bd2802.c index 10e40971ffbb..591cbdf5a046 100644 --- a/drivers/leds/leds-bd2802.c +++ b/drivers/leds/leds-bd2802.c | |||
@@ -688,8 +688,7 @@ static int __devinit bd2802_probe(struct i2c_client *client, | |||
688 | i2c_set_clientdata(client, led); | 688 | i2c_set_clientdata(client, led); |
689 | 689 | ||
690 | /* Configure RESET GPIO (L: RESET, H: RESET cancel) */ | 690 | /* Configure RESET GPIO (L: RESET, H: RESET cancel) */ |
691 | gpio_request(pdata->reset_gpio, "RGB_RESETB"); | 691 | gpio_request_one(pdata->reset_gpio, GPIOF_OUT_INIT_HIGH, "RGB_RESETB"); |
692 | gpio_direction_output(pdata->reset_gpio, 1); | ||
693 | 692 | ||
694 | /* Tacss = min 0.1ms */ | 693 | /* Tacss = min 0.1ms */ |
695 | udelay(100); | 694 | udelay(100); |