summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/gpio-regulator.c
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis@debethencourt.com>2015-09-18 19:09:24 +0200
committerMark Brown <broonie@kernel.org>2015-09-19 07:54:20 -0700
commit2f9481e7dc0d3aacbaa07701f3ee2527f5d48301 (patch)
tree5d852c98fb7d4005aaf09a30c7def6ffec00ac5b /drivers/regulator/gpio-regulator.c
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff)
downloadblackbird-obmc-linux-2f9481e7dc0d3aacbaa07701f3ee2527f5d48301.tar.gz
blackbird-obmc-linux-2f9481e7dc0d3aacbaa07701f3ee2527f5d48301.zip
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>
Diffstat (limited to 'drivers/regulator/gpio-regulator.c')
-rw-r--r--drivers/regulator/gpio-regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/gpio-regulator.c b/drivers/regulator/gpio-regulator.c
index 464018de7e97..7bba8b747f30 100644
--- a/drivers/regulator/gpio-regulator.c
+++ b/drivers/regulator/gpio-regulator.c
@@ -394,6 +394,7 @@ static const struct of_device_id regulator_gpio_of_match[] = {
{ .compatible = "regulator-gpio", },
{},
};
+MODULE_DEVICE_TABLE(of, regulator_gpio_of_match);
#endif
static struct platform_driver gpio_regulator_driver = {
OpenPOWER on IntegriCloud