Commit 6aed8acdce29a1f250d145255631ff3c391af3e8
Committed by
Sekhar Nori
1 parent
9967994ec6
Exists in
ti-linux-3.14.y
and in
2 other branches
input: touchscreen: edt-ft5x06: fix driver autoprobing
Because with OF we can pass more specific compatible flags (such as edt-ft5306) instead of generic edt-ft5x06, when i2c-core's of_i2c_register_devices() tries to request_module(), it'll request it with a non-existent specific module alias. In order to have this driver autoprobing again, we just need to add missing MODULE_ALIAS() entries to edt-ft5x06 driver. Thanks to Dmitry for noticing that it actually should autoprobe even with of_device_id. Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: <linux-input@vger.kernel.org> Cc: <stable@vger.kernel.org> # v3.15+ Fixes: dac90dc2 (Input: edt-ft5x06 - add DT support) Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
drivers/input/touchscreen/edt-ft5x06.c
... | ... | @@ -1149,6 +1149,9 @@ |
1149 | 1149 | |
1150 | 1150 | module_i2c_driver(edt_ft5x06_ts_driver); |
1151 | 1151 | |
1152 | +MODULE_ALIAS("i2c:edt-ft5206"); | |
1153 | +MODULE_ALIAS("i2c:edt-ft5306"); | |
1154 | +MODULE_ALIAS("i2c:edt-ft5406"); | |
1152 | 1155 | MODULE_AUTHOR("Simon Budig <simon.budig@kernelconcepts.de>"); |
1153 | 1156 | MODULE_DESCRIPTION("EDT FT5x06 I2C Touchscreen Driver"); |
1154 | 1157 | MODULE_LICENSE("GPL"); |