state: driver: handle EPROBE_DEFER
When state_new_from_node() returns -ENODEV that means that there
is no device available for the node, so return -EPROBE_DEFER in this
case and hope a device is there later.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8099956 commit 70af08d8634c00e9593a4407b86a303246791cfb
@Sascha Hauer Sascha Hauer authored on 20 Oct 2016
Showing 1 changed file
View
drivers/misc/state.c