From: Axel Lin Date: Thu, 8 Dec 2011 04:42:19 +0000 (+1100) Subject: drivers/leds/leds-bd2802.c: use gpio_request_one() X-Git-Tag: next-20111213~1^2~115 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=45a135f7aa23f7bf9eb5c54258104e1d5f3116a2;p=karo-tx-linux.git drivers/leds/leds-bd2802.c: use gpio_request_one() Use gpio_request_one() instead of multiple gpiolib calls. Signed-off-by: Axel Lin Cc: Kim Kyuwon Cc: Richard Purdie Signed-off-by: Andrew Morton --- 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, i2c_set_clientdata(client, led); /* Configure RESET GPIO (L: RESET, H: RESET cancel) */ - gpio_request(pdata->reset_gpio, "RGB_RESETB"); - gpio_direction_output(pdata->reset_gpio, 1); + gpio_request_one(pdata->reset_gpio, GPIOF_OUT_INIT_HIGH, "RGB_RESETB"); /* Tacss = min 0.1ms */ udelay(100);