summaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
authorLiao Chen <liaochen4@huawei.com>2024-08-31 07:50:58 +0000
committerUwe Kleine-König <ukleinek@kernel.org>2024-09-16 15:24:58 +0200
commit433f1f79050d4d0a19fee6c0ddf1b7988bc04dd6 (patch)
tree887afde744f32ccdcf7e7608dffd8517eb74a25c /drivers/pwm
parent89deb4c8d09eb6d3548e18db76f03a782c3467ce (diff)
downloadlinux-433f1f79050d4d0a19fee6c0ddf1b7988bc04dd6.tar.gz
linux-433f1f79050d4d0a19fee6c0ddf1b7988bc04dd6.tar.bz2
linux-433f1f79050d4d0a19fee6c0ddf1b7988bc04dd6.zip
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>
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/pwm-atmel-hlcdc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-atmel-hlcdc.c b/drivers/pwm/pwm-atmel-hlcdc.c
index 2afb302be02c..02660bd811c4 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 = {