]> git.itanic.dy.fi Git - linux-stable/commit
misc: eeprom: at24: Always append device id even if label property is set.
authorJérôme Glisse <jglisse@redhat.com>
Thu, 1 Jul 2021 15:28:25 +0000 (08:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jul 2021 12:37:40 +0000 (14:37 +0200)
commit7544d21b40147f34adbff5fba07527a9e3ac8d4e
treed57fb7d9afe9bf2255fb97e348048a242a401e0b
parent6ef92931cc5bf7fcc4d7702cb975fdd817c51eb9
misc: eeprom: at24: Always append device id even if label property is set.

commit c36748ac545421d94a5091c754414c0f3664bf10 upstream.

We need to append device id even if eeprom have a label property set as some
platform can have multiple eeproms with same label and we can not register
each of those with same label. Failing to register those eeproms trigger
cascade failures on such platform (system is no longer working).

This fix regression on such platform introduced with 4e302c3b568e

Reported-by: Alexander Fomichev <fomichev.ru@gmail.com>
Fixes: 4e302c3b568e ("misc: eeprom: at24: fix NVMEM name with custom AT24 device name")
Cc: stable@vger.kernel.org
Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/at24.c