[PATCH] touchscreen: stmpe-ts: enable module autoload

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Even with poper DT config the module didn't autoload.
That's fixed by this additional alias.

Tested successfully with a STMPE610-based Adafruit PITFT Plus 3.5"
on RPI2 under Arch Linux ARM (kernel 3.18.13).

Signed-off-by: Heiner Kallweit <hkallweit1@xxxxxxxxx>
---
 drivers/input/touchscreen/stmpe-ts.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/input/touchscreen/stmpe-ts.c b/drivers/input/touchscreen/stmpe-ts.c
index e4c3125..1940e3c 100644
--- a/drivers/input/touchscreen/stmpe-ts.c
+++ b/drivers/input/touchscreen/stmpe-ts.c
@@ -393,4 +393,5 @@ module_platform_driver(stmpe_ts_driver);
 MODULE_AUTHOR("Luotao Fu <l.fu@xxxxxxxxxxxxxx>");
 MODULE_DESCRIPTION("STMPEXXX touchscreen driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("spi:" STMPE_TS_NAME);
 MODULE_ALIAS("platform:" STMPE_TS_NAME);
-- 
2.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux