Skip to content

Commit a513552

Browse files
Liao ChenBartosz Golaszewski
authored andcommitted
gpio: modepin: Enable module autoloading
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Fixes: 7687a5b ("gpio: modepin: Add driver support for modepin GPIO controller") Signed-off-by: Liao Chen <[email protected]> Reviewed-by: Michal Simek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent adad2e4 commit a513552

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpio/gpio-zynqmp-modepin.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ static const struct of_device_id modepin_platform_id[] = {
146146
{ .compatible = "xlnx,zynqmp-gpio-modepin", },
147147
{ }
148148
};
149+
MODULE_DEVICE_TABLE(of, modepin_platform_id);
149150

150151
static struct platform_driver modepin_platform_driver = {
151152
.driver = {

0 commit comments

Comments
 (0)