summaryrefslogtreecommitdiff
path: root/drivers/leds
diff options
context:
space:
mode:
authorZou Wei <zou_wei@huawei.com>2021-05-12 09:49:18 +0300
committerPavel Machek <pavel@ucw.cz>2021-06-23 23:11:26 +0300
commit9d0150db97583cfbb6b44cbe02241a1a48f90210 (patch)
tree726943c738cde3dd1a51cee7089de2abb3d91e6c /drivers/leds
parenta5d3d1adc95f4ac5968b7a77ee95a3abbbb96f49 (diff)
downloadlinux-9d0150db97583cfbb6b44cbe02241a1a48f90210.tar.xz
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')
-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,