aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/touchscreen/ti_am335x_tsc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c
index df9b24f7e2cb..ad7564296ddf 100644
--- a/drivers/input/touchscreen/ti_am335x_tsc.c
+++ b/drivers/input/touchscreen/ti_am335x_tsc.c
@@ -348,9 +348,16 @@ static int titsc_parse_dt(struct platform_device *pdev,
348 if (err < 0) 348 if (err < 0)
349 return err; 349 return err;
350 350
351 err = of_property_read_u32(node, "ti,coordiante-readouts", 351 /*
352 * Try with the new binding first. If it fails, try again with
353 * bogus, miss-spelled version.
354 */
355 err = of_property_read_u32(node, "ti,coordinate-readouts",
352 &ts_dev->coordinate_readouts); 356 &ts_dev->coordinate_readouts);
353 if (err < 0) 357 if (err < 0)
358 err = of_property_read_u32(node, "ti,coordiante-readouts",
359 &ts_dev->coordinate_readouts);
360 if (err < 0)
354 return err; 361 return err;
355 362
356 return of_property_read_u32_array(node, "ti,wire-config", 363 return of_property_read_u32_array(node, "ti,wire-config",