diff options
| author | 2020-08-31 04:55:39 +0300 | |
|---|---|---|
| committer | 2020-09-01 09:49:55 +0200 | |
| commit | 45df80d7605c25055a85fbc5a8446c81c6c0ca24 (patch) | |
| tree | 729a9d31b216fab6d1c06eaa97387a2e5da4477c /drivers/net/netdevsim/git:/ssh:/git@git.zx2c4.com | |
| parent | Linux 5.9-rc1 (diff) | |
| download | linux-dev-45df80d7605c25055a85fbc5a8446c81c6c0ca24.tar.xz linux-dev-45df80d7605c25055a85fbc5a8446c81c6c0ca24.zip | |
misc: eeprom: at24: register nvmem only after eeprom is ready to use
During nvmem_register() the nvmem core sends notifications when:
- cell added
- nvmem added
and during these notifications some callback func may access the nvmem
device, which will fail in case of at24 eeprom because regulator and pm
are enabled after nvmem_register().
Fixes: cd5676db0574 ("misc: eeprom: at24: support pm_runtime control")
Fixes: b20eb4c1f026 ("eeprom: at24: drop unnecessary label")
Cc: stable@vger.kernel.org
Signed-off-by: Vadym Kochan <vadym.kochan@plvision.eu>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/net/netdevsim/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
