Commit f6e8a968 authored by Alexandre Belloni's avatar Alexandre Belloni Committed by Jonathan Cameron
Browse files

iio: mxs-lradc: Do hardware initialization earlier

We need to initialize hardware before registering the touchscreen. Else,
we end up setting registers in mxs_lradc_ts_open(), getting called just
after registering the touchscreen with input_register_device() and by
the end of mxs_lradc_probe(), we reset the LRADC block hence losing the
correct configuration.
Signed-off-by: default avatarAlexandre Belloni <>
Acked-by: Marek Vasut's avatarMarek Vasut <>
Signed-off-by: default avatarJonathan Cameron <>
Cc: Fabio Estevam <>
parent df4b404b
......@@ -983,6 +983,9 @@ static int mxs_lradc_probe(struct platform_device *pdev)
if (ret)
goto err_trig;
/* Configure the hardware. */
/* Register the touchscreen input device. */
ret = mxs_lradc_ts_register(lradc);
if (ret)
......@@ -995,9 +998,6 @@ static int mxs_lradc_probe(struct platform_device *pdev)
goto err_ts;
/* Configure the hardware. */
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment