Skip to content
Commit b46d2b4d authored by Daniel Mack's avatar Daniel Mack Committed by Pavel
Browse files

drivers: leds: tlc591xx: check error during device init



The driver currently ignores errors from register writes at probe time.
It will hence register an LED class device no matter whether the
pyhsical device is present or not.

To fix this, make the device probe fail in case regmap operations
return an error.

Signed-off-by: default avatarDaniel Mack <daniel@zonque.org>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent fc19967b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment