Skip to content

Commit 92bd1f2

Browse files
author
Wolfram Sang
committed
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
2 parents 8daee95 + 58d6fee commit 92bd1f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/misc/eeprom/at24.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,13 +712,14 @@ static int at24_probe(struct i2c_client *client)
712712
* chip is functional.
713713
*/
714714
err = at24_read(at24, 0, &test_byte, 1);
715-
pm_runtime_idle(dev);
716715
if (err) {
717716
pm_runtime_disable(dev);
718717
regulator_disable(at24->vcc_reg);
719718
return -ENODEV;
720719
}
721720

721+
pm_runtime_idle(dev);
722+
722723
if (writable)
723724
dev_info(dev, "%u byte %s EEPROM, writable, %u bytes/write\n",
724725
byte_len, client->name, at24->write_max);

0 commit comments

Comments
 (0)