Skip to content

Commit 11baa36

Browse files
krzkBartosz Golaszewski
authored andcommitted
gpio: lpc32xx: fix module autoloading
Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent e43c2fe commit 11baa36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpio/gpio-lpc32xx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ static const struct of_device_id lpc32xx_gpio_of_match[] = {
529529
{ .compatible = "nxp,lpc3220-gpio", },
530530
{ },
531531
};
532+
MODULE_DEVICE_TABLE(of, lpc32xx_gpio_of_match);
532533

533534
static struct platform_driver lpc32xx_gpio_driver = {
534535
.driver = {

0 commit comments

Comments
 (0)