[PATCH -next] misc: eeprom: Add missing MODULE_DEVICE_TABLE
From: Zou Wei
Date: Wed May 12 2021 - 02:25:07 EST
This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.
Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
Signed-off-by: Zou Wei <zou_wei@xxxxxxxxxx>
---
drivers/misc/eeprom/eeprom.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/misc/eeprom/eeprom.c b/drivers/misc/eeprom/eeprom.c
index 34fa385..3fefb70 100644
--- a/drivers/misc/eeprom/eeprom.c
+++ b/drivers/misc/eeprom/eeprom.c
@@ -194,6 +194,7 @@ static const struct i2c_device_id eeprom_id[] = {
{ "eeprom", 0 },
{ }
};
+MODULE_DEVICE_TABLE(i2c, eeprom_id);
static struct i2c_driver eeprom_driver = {
.driver = {
--
2.6.2