diff mbox series

[-next] leds: turris-omnia: add missing MODULE_DEVICE_TABLE

Message ID 1620802158-19377-1-git-send-email-zou_wei@huawei.com
State New
Headers show
Series [-next] leds: turris-omnia: add missing MODULE_DEVICE_TABLE | expand

Commit Message

Zou Wei May 12, 2021, 6:49 a.m. UTC
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>
---
 drivers/leds/leds-turris-omnia.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Pavel Machek June 23, 2021, 8:11 p.m. UTC | #1
On Wed 2021-05-12 14:49:18, Zou Wei wrote:
> 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>


Thanks, applied.
							Pavel
-- 
http://www.livejournal.com/~pavelmachek
diff mbox series

Patch

diff --git a/drivers/leds/leds-turris-omnia.c b/drivers/leds/leds-turris-omnia.c
index 2f9a289..1adfed1 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,