diff options
author | Liao Chen <liaochen4@huawei.com> | 2024-08-14 03:01:55 +0000 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2024-08-24 16:31:10 +0200 |
commit | f7b286ab3d46bac0ffb6df4d0cbadd92bf244c6b (patch) | |
tree | cb7bde80d2e282de4d08e34c8a56201cf77e4eb8 /drivers/pinctrl | |
parent | cacd8cf79d7823b07619865e994a7916fcc8ae91 (diff) |
pinctrl: pinctrl-zynq: fix 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/20240814030155.3876069-1-liaochen4@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/pinctrl-zynq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-zynq.c b/drivers/pinctrl/pinctrl-zynq.c index 0e8de27d0de8..caa8a2ca3e68 100644 --- a/drivers/pinctrl/pinctrl-zynq.c +++ b/drivers/pinctrl/pinctrl-zynq.c @@ -1202,6 +1202,7 @@ static const struct of_device_id zynq_pinctrl_of_match[] = { { .compatible = "xlnx,pinctrl-zynq" }, { } }; +MODULE_DEVICE_TABLE(of, zynq_pinctrl_of_match); static struct platform_driver zynq_pinctrl_driver = { .driver = { |