diff options
author | Zou Wei <zou_wei@huawei.com> | 2021-05-12 14:49:18 +0800 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2021-06-23 22:11:26 +0200 |
commit | 9d0150db97583cfbb6b44cbe02241a1a48f90210 (patch) | |
tree | 726943c738cde3dd1a51cee7089de2abb3d91e6c | |
parent | a5d3d1adc95f4ac5968b7a77ee95a3abbbb96f49 (diff) | |
download | linux-9d0150db97583cfbb6b44cbe02241a1a48f90210.tar.bz2 |
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>
-rw-r--r-- | drivers/leds/leds-turris-omnia.c | 1 |
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, |