Commit 1e02b2c3 authored by Alberto Panizzo's avatar Alberto Panizzo Committed by Samuel Ortiz

mfd: Unlock mc13783 before subsystems initialisation, at probe time.

With this, mc13783 subsystems drivers can configure the mc13783 chip
reading and writing registers.
Signed-off-by: default avatarAlberto Panizzo <maramaopercheseimorto@gmail.com>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 8e6ba2df
...@@ -619,6 +619,8 @@ err_revision: ...@@ -619,6 +619,8 @@ err_revision:
} }
/* This should go away (END) */ /* This should go away (END) */
mc13783_unlock(mc13783);
if (pdata->flags & MC13783_USE_ADC) if (pdata->flags & MC13783_USE_ADC)
mc13783_add_subdevice(mc13783, "mc13783-adc"); mc13783_add_subdevice(mc13783, "mc13783-adc");
...@@ -641,8 +643,6 @@ err_revision: ...@@ -641,8 +643,6 @@ err_revision:
if (pdata->flags & MC13783_USE_TOUCHSCREEN) if (pdata->flags & MC13783_USE_TOUCHSCREEN)
mc13783_add_subdevice(mc13783, "mc13783-ts"); mc13783_add_subdevice(mc13783, "mc13783-ts");
mc13783_unlock(mc13783);
return 0; 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