From: Luis de Bethencourt Date: Thu, 3 Sep 2015 17:50:21 +0000 (-0700) Subject: Input: regulator-haptic - fix module autoload for OF platform driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=731857715f03035c812c3f6bdcb6b0179150c1aa;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Dmitry Torokhov --- 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,