* [PATCH] misc: bh1780: Add module aliases
@ 2015-03-08 8:49 Jean Delvare
0 siblings, 0 replies; only message in thread
From: Jean Delvare @ 2015-03-08 8:49 UTC (permalink / raw)
To: LKML; +Cc: Arnd Bergmann, Greg Kroah-Hartman
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.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/misc/bh1780gli.c | 2 ++
1 file changed, 2 insertions(+)
--- linux-4.0-rc2.orig/drivers/misc/bh1780gli.c 2015-02-23 03:21:14.000000000 +0100
+++ linux-4.0-rc2/drivers/misc/bh1780gli.c 2015-03-08 09:38:28.742091860 +0100
@@ -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", },
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-08 8:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-08 8:49 [PATCH] misc: bh1780: Add module aliases Jean Delvare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®