mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
b1a3f24348
commit
be7bee9f80
|
@ -230,6 +230,8 @@ static const struct i2c_device_id bh1780_id[] = {
|
||||||
{ },
|
{ },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
MODULE_DEVICE_TABLE(i2c, bh1780_id);
|
||||||
|
|
||||||
#ifdef CONFIG_OF
|
#ifdef CONFIG_OF
|
||||||
static const struct of_device_id of_bh1780_match[] = {
|
static const struct of_device_id of_bh1780_match[] = {
|
||||||
{ .compatible = "rohm,bh1780gli", },
|
{ .compatible = "rohm,bh1780gli", },
|
||||||
|
|
Loading…
Reference in New Issue