]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
pwm: atmel-hlcdc: Enable module autoloading
authorLiao Chen <liaochen4@huawei.com>
Sat, 31 Aug 2024 07:50:58 +0000 (07:50 +0000)
committerUwe Kleine-König <ukleinek@kernel.org>
Mon, 16 Sep 2024 13:24:58 +0000 (15:24 +0200)
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based
on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
Link: https://lore.kernel.org/r/20240831075059.790861-2-liaochen4@huawei.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/pwm-atmel-hlcdc.c

index 2afb302be02c1101e033bb4cefaba996ddc68524..02660bd811c4c6a3819ea7a25db72dce2c05966f 100644 (file)
@@ -290,6 +290,7 @@ static const struct of_device_id atmel_hlcdc_pwm_dt_ids[] = {
        { .compatible = "atmel,hlcdc-pwm" },
        { /* sentinel */ },
 };
+MODULE_DEVICE_TABLE(of, atmel_hlcdc_pwm_dt_ids);
 
 static struct platform_driver atmel_hlcdc_pwm_driver = {
        .driver = {