diff options
author | 2020-03-13 16:32:28 +0100 | |
---|---|---|
committer | 2020-03-13 16:32:28 +0100 | |
commit | 92bd1f2e1eed493a73a19012a3a7f1feed0883ff (patch) | |
tree | c4ce6dcc791fa96d2d3d989e752e45679bf7bac6 /drivers | |
parent | i2c: acpi: put device when verifying client fails (diff) | |
parent | misc: eeprom: at24: fix regulator underflow (diff) | |
download | linux-92bd1f2e1eed493a73a19012a3a7f1feed0883ff.tar.gz linux-92bd1f2e1eed493a73a19012a3a7f1feed0883ff.tar.bz2 linux-92bd1f2e1eed493a73a19012a3a7f1feed0883ff.zip |
Merge tag 'at24-fixes-for-v5.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux into i2c/for-current
at24 fixes for v5.6-rc6
- fix regulator underflow bug introduced during the v5.6 merge window
Diffstat (limited to 'drivers')
-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 031eb64549af..282c9ef68ed2 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -712,13 +712,14 @@ static int at24_probe(struct i2c_client *client) * chip is functional. */ err = at24_read(at24, 0, &test_byte, 1); - pm_runtime_idle(dev); if (err) { pm_runtime_disable(dev); regulator_disable(at24->vcc_reg); return -ENODEV; } + pm_runtime_idle(dev); + if (writable) dev_info(dev, "%u byte %s EEPROM, writable, %u bytes/write\n", byte_len, client->name, at24->write_max); |