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-Tag: v4.6-rc1~9^2~148 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=731857715f03035c812c3f6bdcb6b0179150c1aa;p=platform%2Fkernel%2Flinux-exynos.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 6bf3f10..a804705 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,