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

leds: turris-omnia: add missing MODULE_DEVICE_TABLE

This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>

authored by

Zou Wei and committed by
Pavel Machek
9d0150db a5d3d1ad

+1
+1
drivers/leds/leds-turris-omnia.c
··· 274 274 { "omnia", 0 }, 275 275 { } 276 276 }; 277 + MODULE_DEVICE_TABLE(i2c, omnia_id); 277 278 278 279 static struct i2c_driver omnia_leds_driver = { 279 280 .probe = omnia_leds_probe,