Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment