Skip to content

Commit f7b286a

Browse files
Liao Chenlinusw
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent cacd8cf commit f7b286a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pinctrl/pinctrl-zynq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,7 @@ static const struct of_device_id zynq_pinctrl_of_match[] = {
12021202
{ .compatible = "xlnx,pinctrl-zynq" },
12031203
{ }
12041204
};
1205+
MODULE_DEVICE_TABLE(of, zynq_pinctrl_of_match);
12051206

12061207
static struct platform_driver zynq_pinctrl_driver = {
12071208
.driver = {

0 commit comments

Comments
 (0)