Skip to content
Commit fc7b5028 authored by Chuhong Yuan's avatar Chuhong Yuan Committed by Pavel
Browse files

leds: an30259a: add a check for devm_regmap_init_i2c



an30259a_probe misses a check for devm_regmap_init_i2c and may cause
problems.
Add a check and print errors like other leds drivers.

Signed-off-by: default avatarChuhong Yuan <hslester96@gmail.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent 7c6082b9
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