summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-turris-omnia.c
diff options
context:
space:
mode:
authorZou Wei <zou_wei@huawei.com>2021-05-12 08:49:18 +0200
committerPavel Machek <pavel@ucw.cz>2021-06-23 22:11:26 +0200
commit9d0150db97583cfbb6b44cbe02241a1a48f90210 (patch)
tree726943c738cde3dd1a51cee7089de2abb3d91e6c /drivers/leds/leds-turris-omnia.c
parentleds: lp55xx: Initialize enable GPIO direction to output (diff)
downloadlinux-9d0150db97583cfbb6b44cbe02241a1a48f90210.tar.xz
linux-9d0150db97583cfbb6b44cbe02241a1a48f90210.zip
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>
Diffstat (limited to 'drivers/leds/leds-turris-omnia.c')
-rw-r--r--drivers/leds/leds-turris-omnia.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/leds/leds-turris-omnia.c b/drivers/leds/leds-turris-omnia.c
index 2f9a289ab245..1adfed1c0619 100644
--- a/drivers/leds/leds-turris-omnia.c
+++ b/drivers/leds/leds-turris-omnia.c
@@ -274,6 +274,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,