Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pwm: atmel-hlcdc: Enable module autoloading

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>

authored by

Liao Chen and committed by
Uwe Kleine-König
433f1f79 89deb4c8

+1
+1
drivers/pwm/pwm-atmel-hlcdc.c
··· 290 290 { .compatible = "atmel,hlcdc-pwm" }, 291 291 { /* sentinel */ }, 292 292 }; 293 + MODULE_DEVICE_TABLE(of, atmel_hlcdc_pwm_dt_ids); 293 294 294 295 static struct platform_driver atmel_hlcdc_pwm_driver = { 295 296 .driver = {