diff options
author | Alexander Stein <alexander.stein@ew.tq-group.com> | 2023-05-16 11:05:53 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-05-16 17:43:59 +0300 |
commit | a3c10035d12f5ec10915d5c00c2e8f7d7c066182 (patch) | |
tree | 57e218728e48d263c5fbae487ad0c452be5fc79e /drivers/misc/eeprom/at24.c | |
parent | ac9a78681b921877518763ba0e89202254349d1b (diff) | |
download | linux-a3c10035d12f5ec10915d5c00c2e8f7d7c066182.tar.xz |
eeprom: at24: Use dev_err_probe for nvmem register failure
When using nvmem layouts it is possible devm_nvmem_register returns
-EPROBE_DEFER, resulting in an 'empty' in
/sys/kernel/debug/devices_deferred. Use dev_err_probe for providing
additional information.
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/misc/eeprom/at24.c')
-rw-r--r-- | drivers/misc/eeprom/at24.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index 938c4f41b98c..5aae2f9bdd51 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -761,7 +761,8 @@ static int at24_probe(struct i2c_client *client) pm_runtime_disable(dev); if (!pm_runtime_status_suspended(dev)) regulator_disable(at24->vcc_reg); - return PTR_ERR(at24->nvmem); + return dev_err_probe(dev, PTR_ERR(at24->nvmem), + "failed to register nvmem\n"); } /* |