summaryrefslogtreecommitdiffstats
path: root/drivers/leds/flash/leds-lm3601x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/flash/leds-lm3601x.c')
-rw-r--r--drivers/leds/flash/leds-lm3601x.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/leds/flash/leds-lm3601x.c b/drivers/leds/flash/leds-lm3601x.c
index 1a6b9ee9e582..abf6b96ade3d 100644
--- a/drivers/leds/flash/leds-lm3601x.c
+++ b/drivers/leds/flash/leds-lm3601x.c
@@ -443,6 +443,10 @@ static int lm3601x_probe(struct i2c_client *client)
return ret;
}
+ ret = regmap_write(led->regmap, LM3601X_DEV_ID_REG, LM3601X_SW_RESET);
+ if (ret)
+ dev_warn(&client->dev, "Failed to reset the LED controller\n");
+
mutex_init(&led->lock);
return lm3601x_register_leds(led, fwnode);