aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2015-05-22 16:09:11 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-05-22 18:30:11 -0400
commitf91a3f08b741e3c5ecf501c160e51f6032718f52 (patch)
tree9377e88c031c45af1000ede29b34bcbff4096526
parent25d238b2260973bfca0b82181824340c7aeae45a (diff)
Input: stmpe-ts - fix automatic module loading
When STMPE is instantiated via device tree individual MFD cells rae formed with OF modaliases, not platform modaliases, and so we need to add OF device table to the driver if we want it to load automatically: of:Nstmpe_touchscreenT<NULL>Cst,stmpe-ts Reported-by: Heiner Kallweit <hkallweit1@gmail.com> Tested-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/touchscreen/stmpe-ts.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/stmpe-ts.c b/drivers/input/touchscreen/stmpe-ts.c
index e4c31256a74d..e4977c6250f3 100644
--- a/drivers/input/touchscreen/stmpe-ts.c
+++ b/drivers/input/touchscreen/stmpe-ts.c
@@ -383,13 +383,21 @@ static int stmpe_ts_remove(struct platform_device *pdev)
383 383
384static struct platform_driver stmpe_ts_driver = { 384static struct platform_driver stmpe_ts_driver = {
385 .driver = { 385 .driver = {
386 .name = STMPE_TS_NAME, 386 .name = STMPE_TS_NAME,
387 }, 387 },
388 .probe = stmpe_input_probe, 388 .probe = stmpe_input_probe,
389 .remove = stmpe_ts_remove, 389 .remove = stmpe_ts_remove,
390}; 390};
391module_platform_driver(stmpe_ts_driver); 391module_platform_driver(stmpe_ts_driver);
392 392
393#ifdef CONFIG_OF
394static const struct of_device_id stmpe_ts_ids[] = {
395 { .compatible = "st,stmpe-ts", },
396 { },
397};
398MODULE_DEVICE_TABLE(of, stmpe_ts_ids);
399#endif
400
393MODULE_AUTHOR("Luotao Fu <l.fu@pengutronix.de>"); 401MODULE_AUTHOR("Luotao Fu <l.fu@pengutronix.de>");
394MODULE_DESCRIPTION("STMPEXXX touchscreen driver"); 402MODULE_DESCRIPTION("STMPEXXX touchscreen driver");
395MODULE_LICENSE("GPL"); 403MODULE_LICENSE("GPL");