leds: syscon: Correct check for syscon_node_to_regmap() errors
authorBjorn Andersson <bjorn.andersson@sonymobile.com>
Tue, 18 Aug 2015 19:25:26 +0000 (12:25 -0700)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Fri, 28 Aug 2015 12:06:25 +0000 (14:06 +0200)
commit991a3f61fa93c1752a47ae157a8238395850c730
tree0c1bba3df895097c18563288e94a06612e913a18
parentc2d4af9370b1757714b895f005479393e4ec14b8
leds: syscon: Correct check for syscon_node_to_regmap() errors

syscon_node_to_regmap() returns a regmap or an ERR_PTR().

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-syscon.c