File tree Expand file tree Collapse file tree
drivers/input/touchscreen Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3342,15 +3342,11 @@ static int mxt_resume(struct device *dev)
33423342
33433343static SIMPLE_DEV_PM_OPS (mxt_pm_ops , mxt_suspend , mxt_resume ) ;
33443344
3345- #ifdef CONFIG_OF
33463345static const struct of_device_id mxt_of_match [] = {
33473346 { .compatible = "atmel,maxtouch" , },
33483347 {},
33493348};
33503349MODULE_DEVICE_TABLE (of , mxt_of_match );
3351- #else
3352- #define mxt_of_match NULL
3353- #endif
33543350
33553351static const struct i2c_device_id mxt_id [] = {
33563352 { "qt602240_ts" , 0 },
@@ -3365,7 +3361,7 @@ static struct i2c_driver mxt_driver = {
33653361 .driver = {
33663362 .name = "atmel_mxt_ts" ,
33673363 .owner = THIS_MODULE ,
3368- .of_match_table = mxt_of_match ,
3364+ .of_match_table = of_match_ptr ( mxt_of_match ) ,
33693365 .pm = & mxt_pm_ops ,
33703366 },
33713367 .probe = mxt_probe ,
You can’t perform that action at this time.
0 commit comments