From: Liao Chen Date: Tue, 27 Aug 2024 12:24:31 +0000 (+0000) Subject: leds: turris-omnia: Fix module autoloading with MODULE_DEVICE_TABLE() X-Git-Tag: v6.12-rc1~87^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=64c38866500b0bda4363fb994d545557dffb017c;p=thirdparty%2Fkernel%2Flinux.git leds: turris-omnia: Fix module autoloading with MODULE_DEVICE_TABLE() Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Liao Chen Link: https://lore.kernel.org/r/20240827122431.430818-1-liaochen4@huawei.com Signed-off-by: Lee Jones --- diff --git a/drivers/leds/leds-turris-omnia.c b/drivers/leds/leds-turris-omnia.c index 1ef942b5cefad..4cff8c4b020ca 100644 --- a/drivers/leds/leds-turris-omnia.c +++ b/drivers/leds/leds-turris-omnia.c @@ -530,6 +530,7 @@ static const struct of_device_id of_omnia_leds_match[] = { { .compatible = "cznic,turris-omnia-leds", }, {}, }; +MODULE_DEVICE_TABLE(of, of_omnia_leds_match); static const struct i2c_device_id omnia_id[] = { { "omnia" },