mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Tested-by: Heiner Kallweit <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
parent
25d238b226
commit
f91a3f08b7
1 changed files with 10 additions and 2 deletions
|
|
@ -383,13 +383,21 @@ static int stmpe_ts_remove(struct platform_device *pdev)
|
|||
|
||||
static struct platform_driver stmpe_ts_driver = {
|
||||
.driver = {
|
||||
.name = STMPE_TS_NAME,
|
||||
},
|
||||
.name = STMPE_TS_NAME,
|
||||
},
|
||||
.probe = stmpe_input_probe,
|
||||
.remove = stmpe_ts_remove,
|
||||
};
|
||||
module_platform_driver(stmpe_ts_driver);
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
static const struct of_device_id stmpe_ts_ids[] = {
|
||||
{ .compatible = "st,stmpe-ts", },
|
||||
{ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, stmpe_ts_ids);
|
||||
#endif
|
||||
|
||||
MODULE_AUTHOR("Luotao Fu <[email protected]>");
|
||||
MODULE_DESCRIPTION("STMPEXXX touchscreen driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
|
|
|||
Loading…
Reference in a new issue