tps65090-charger: Fix module autoload for OF platform driver
authorLuis de Bethencourt <luis@debethencourt.com>
Fri, 18 Sep 2015 16:54:07 +0000 (18:54 +0200)
committerSebastian Reichel <sre@kernel.org>
Tue, 22 Sep 2015 14:03:37 +0000 (16:03 +0200)
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: Sebastian Reichel <sre@kernel.org>
drivers/power/tps65090-charger.c

index 7e8fbd29c30eee6874bda989e4552972040e8b52..1b4b5e09538e15cad0b5921b234929457e1f664a 100644 (file)
@@ -353,6 +353,7 @@ static const struct of_device_id of_tps65090_charger_match[] = {
        { .compatible = "ti,tps65090-charger", },
        { /* end */ }
 };
+MODULE_DEVICE_TABLE(of, of_tps65090_charger_match);
 
 static struct platform_driver tps65090_charger_driver = {
        .driver = {