From: Liao Chen Date: Sat, 31 Aug 2024 07:50:58 +0000 (+0000) Subject: pwm: atmel-hlcdc: Enable module autoloading X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=433f1f79050d4d0a19fee6c0ddf1b7988bc04dd6;p=users%2Fjedix%2Flinux-maple.git 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 Link: https://lore.kernel.org/r/20240831075059.790861-2-liaochen4@huawei.com Signed-off-by: Uwe Kleine-König --- diff --git a/drivers/pwm/pwm-atmel-hlcdc.c b/drivers/pwm/pwm-atmel-hlcdc.c index 2afb302be02c1..02660bd811c4c 100644 --- a/drivers/pwm/pwm-atmel-hlcdc.c +++ b/drivers/pwm/pwm-atmel-hlcdc.c @@ -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 = {