leds: turris-omnia: add missing MODULE_DEVICE_TABLE
authorZou Wei <zou_wei@huawei.com>
Wed, 12 May 2021 06:49:18 +0000 (14:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:05:45 +0000 (16:05 +0200)
[ Upstream commit 9d0150db97583cfbb6b44cbe02241a1a48f90210 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/leds/leds-turris-omnia.c

index 880fc8def530906336575f17522142b1a4572199..ec87a958f1512ef23d89bac6ecf07e364a382c4f 100644 (file)
@@ -277,6 +277,7 @@ static const struct i2c_device_id omnia_id[] = {
        { "omnia", 0 },
        { }
 };
+MODULE_DEVICE_TABLE(i2c, omnia_id);
 
 static struct i2c_driver omnia_leds_driver = {
        .probe          = omnia_leds_probe,