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

regulator: gpio: Fix module autoload for OF platform driver

This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Luis de Bethencourt and committed by
Mark Brown
2f9481e7 6ff33f39

+1
+1
drivers/regulator/gpio-regulator.c
··· 394 394 { .compatible = "regulator-gpio", }, 395 395 {}, 396 396 }; 397 + MODULE_DEVICE_TABLE(of, regulator_gpio_of_match); 397 398 #endif 398 399 399 400 static struct platform_driver gpio_regulator_driver = {