Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jean Delvare and committed by
Greg Kroah-Hartman
be7bee9f b1a3f243

+2
+2
drivers/misc/bh1780gli.c
··· 230 230 { }, 231 231 }; 232 232 233 + MODULE_DEVICE_TABLE(i2c, bh1780_id); 234 + 233 235 #ifdef CONFIG_OF 234 236 static const struct of_device_id of_bh1780_match[] = { 235 237 { .compatible = "rohm,bh1780gli", },