summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2015-03-08 11:49:50 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-16 23:10:28 +0300
commitbe7bee9f80c1237e70cc6411e5b432681941247c (patch)
tree4499a08b022fe959f455f903a5f351b1d1cbeb65 /drivers/misc
parentb1a3f243485fa2643bc75fd70a23bbd7cfc74f2d (diff)
downloadlinux-be7bee9f80c1237e70cc6411e5b432681941247c.tar.xz
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. Signed-off-by: Jean Delvare <jdelvare@suse.de> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/bh1780gli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/bh1780gli.c b/drivers/misc/bh1780gli.c
index 4c4a59b25537..7f90ce5a569a 100644
--- a/drivers/misc/bh1780gli.c
+++ b/drivers/misc/bh1780gli.c
@@ -230,6 +230,8 @@ static const struct i2c_device_id bh1780_id[] = {
{ },
};
+MODULE_DEVICE_TABLE(i2c, bh1780_id);
+
#ifdef CONFIG_OF
static const struct of_device_id of_bh1780_match[] = {
{ .compatible = "rohm,bh1780gli", },