summaryrefslogtreecommitdiff
path: root/drivers/input/misc/regulator-haptic.c
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis@debethencourt.com>2015-09-03 10:50:21 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-09-03 10:56:20 -0700
commit731857715f03035c812c3f6bdcb6b0179150c1aa (patch)
treec2a7b2b729acc5bde3a489f9ad1b585fa5b9b523 /drivers/input/misc/regulator-haptic.c
parent544edf56fdbf3916f4dad4e2dc71de3965a9d964 (diff)
Input: regulator-haptic - 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 <luis@debethencourt.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc/regulator-haptic.c')
-rw-r--r--drivers/input/misc/regulator-haptic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/misc/regulator-haptic.c b/drivers/input/misc/regulator-haptic.c
index 6bf3f1082f71..a804705eb04a 100644
--- a/drivers/input/misc/regulator-haptic.c
+++ b/drivers/input/misc/regulator-haptic.c
@@ -249,6 +249,7 @@ static const struct of_device_id regulator_haptic_dt_match[] = {
{ .compatible = "regulator-haptic" },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(of, regulator_haptic_dt_match);
static struct platform_driver regulator_haptic_driver = {
.probe = regulator_haptic_probe,