]> git.baikalelectronics.ru Git - kernel.git/commit
iio: mxs-lradc: Do hardware initialization earlier
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 28 Mar 2013 22:04:00 +0000 (22:04 +0000)
committerJonathan Cameron <jic23@kernel.org>
Fri, 29 Mar 2013 09:29:11 +0000 (09:29 +0000)
commit6c538e8b78853ec4cac36ce0f286768542b1b455
treede7759598e9b319012bba36ddafb37af972b3151
parentb98e512cddbaae481547827bc29f3ea45cd2ed2f
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: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
drivers/staging/iio/adc/mxs-lradc.c