leds: Fix potential leds-gpio oops
Call gpio_cansleep only after gpio_request succeeded avoiding an oops. Signed-off-by: NUwe Kleine-König <Uwe.Kleine-Koenig@digi.com> Acked-by: NDavid Brownell <dbrownell@users.sourceforge.net> Signed-off-by: NRichard Purdie <rpurdie@rpsys.net>
Showing
想要评论请 注册 或 登录