diff options
Diffstat (limited to 'drivers/mfd/rt4831.c')
-rw-r--r-- | drivers/mfd/rt4831.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/mfd/rt4831.c b/drivers/mfd/rt4831.c index b169781ac675..c6d34dc2b520 100644 --- a/drivers/mfd/rt4831.c +++ b/drivers/mfd/rt4831.c @@ -87,12 +87,15 @@ static int rt4831_probe(struct i2c_client *client) ARRAY_SIZE(rt4831_subdevs), NULL, 0, NULL); } -static int rt4831_remove(struct i2c_client *client) +static void rt4831_remove(struct i2c_client *client) { struct regmap *regmap = dev_get_regmap(&client->dev, NULL); + int ret; /* Disable WLED and DSV outputs */ - return regmap_update_bits(regmap, RT4831_REG_ENABLE, RT4831_RESET_MASK, RT4831_RESET_MASK); + ret = regmap_update_bits(regmap, RT4831_REG_ENABLE, RT4831_RESET_MASK, RT4831_RESET_MASK); + if (ret) + dev_warn(&client->dev, "Failed to disable outputs (%pe)\n", ERR_PTR(ret)); } static const struct of_device_id __maybe_unused rt4831_of_match[] = { |