Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <krzk@kernel.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Krzysztof Kozlowski and committed by
Bartosz Golaszewski
11baa36d e43c2feb

+1
+1
drivers/gpio/gpio-lpc32xx.c
··· 529 529 { .compatible = "nxp,lpc3220-gpio", }, 530 530 { }, 531 531 }; 532 + MODULE_DEVICE_TABLE(of, lpc32xx_gpio_of_match); 532 533 533 534 static struct platform_driver lpc32xx_gpio_driver = { 534 535 .driver = {