Messages in this thread | | | Date | Thu, 14 Feb 2008 16:25:22 +0100 | From | Uwe Kleine-König <> | Subject | Re: [PATCH] call gpio_cansleep only after gpio_request succeeded |
| |
Hello,
Uwe Kleine-König wrote: > diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c > index 6c0a9c4..76ddcf3 100644 > --- a/drivers/leds/leds-gpio.c > +++ b/drivers/leds/leds-gpio.c > @@ -79,6 +79,10 @@ static int gpio_led_probe(struct platform_device *pdev) > cur_led = &pdata->leds[i]; > led_dat = &leds_data[i]; > > + ret = gpio_request(led_dat->gpio, cur_led->name);
The line above must read:
ret = gpio_request(led_dat->gpio, cur_led->name);
I managed to notice that the 2nd argument needs a change but I overlooked the first somehow.
Best regards Uwe
-- Uwe Kleine-König, Software Engineer Digi International GmbH Branch Breisach, Küferstrasse 8, 79206 Breisach, Germany Tax: 315/5781/0242 / VAT: DE153662976 / Reg. Amtsgericht Dortmund HRB 13962 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |