Skip to content

Commit 433f1f7

Browse files
Liao ChenUwe Kleine-König
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]>
1 parent 89deb4c commit 433f1f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pwm/pwm-atmel-hlcdc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ static const struct of_device_id atmel_hlcdc_pwm_dt_ids[] = {
290290
{ .compatible = "atmel,hlcdc-pwm" },
291291
{ /* sentinel */ },
292292
};
293+
MODULE_DEVICE_TABLE(of, atmel_hlcdc_pwm_dt_ids);
293294

294295
static struct platform_driver atmel_hlcdc_pwm_driver = {
295296
.driver = {

0 commit comments

Comments
 (0)