Skip to contentSkip to conversation

misc: bh1780: Add module aliases

PATCH New Jean Delvare 1 participant 1 message Mar 8, 2015 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misc: bh1780: Add module aliases

The bh1780gli driver does not create an i2c module alias for the device it supports, preventing the driver from being loaded automatically when needed on non-OF/DT systems. Add it.

Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/misc/bh1780gli.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/misc/bh1780gli.c +2 -0
@@ -230,6 +230,8 @@ static const struct i2c_device_id bh1780
 	{ },
 };
 
+MODULE_DEVICE_TABLE(i2c, bh1780_id);
+
 #ifdef CONFIG_OF
 static const struct of_device_id of_bh1780_match[] = {
 	{ .compatible = "rohm,bh1780gli", },
Signature · 2 lines
Jean Delvare
SUSE L3 Support