]> git.baikalelectronics.ru Git - kernel.git/commit
eeprom: 93xx46: fix MODULE_DEVICE_TABLE
authorArnd Bergmann <arnd@arndb.de>
Thu, 14 Oct 2021 15:37:18 +0000 (17:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Oct 2021 08:54:02 +0000 (10:54 +0200)
commit52ca95c54c573949e626797a5e7d8be6aa956f04
treefd4c7feddd267d8abd7e9d4eeb86651aa0463641
parent84a28b0d18e50d4c126832759e24aae35655861b
eeprom: 93xx46: fix MODULE_DEVICE_TABLE

The newly added SPI device ID table does not work because the
entry is incorrectly copied from the OF device table.

During build testing, this shows as a compile failure when building
it as a loadable module:

drivers/misc/eeprom/eeprom_93xx46.c:424:1: error: redefinition of '__mod_of__eeprom_93xx46_of_table_device_table'
MODULE_DEVICE_TABLE(of, eeprom_93xx46_of_table);

Change the entry to refer to the correct symbol.

Fixes: efe68bb8551f ("eeprom: 93xx46: Add SPI device ID table")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20211014153730.3821376-1-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/eeprom_93xx46.c