Skip to content
Commit 04553e92 authored by Roland Stigge's avatar Roland Stigge Committed by Bryan Wu
Browse files

leds: leds-gpio: Defer probing in case of deferred gpio probing



This patch makes leds-gpio's probe() return -EPROBE_DEFER if any of the gpios
to register are deferred themselves. This makes a change of
gpio_leds_create_of()'s return value necessary: Instead of returning NULL on
error, we now use ERR_PTR() error coding.

Signed-off-by: default avatarRoland Stigge <stigge@antcom.de>
Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
parent e8941928
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment