mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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: Alberto Panizzo <maramaopercheseimorto@gmail.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
8e6ba2dfa2
commit
1e02b2c324
1 changed files with 2 additions and 2 deletions
|
@ -619,6 +619,8 @@ err_revision:
|
|||
}
|
||||
/* This should go away (END) */
|
||||
|
||||
mc13783_unlock(mc13783);
|
||||
|
||||
if (pdata->flags & MC13783_USE_ADC)
|
||||
mc13783_add_subdevice(mc13783, "mc13783-adc");
|
||||
|
||||
|
@ -641,8 +643,6 @@ err_revision:
|
|||
if (pdata->flags & MC13783_USE_TOUCHSCREEN)
|
||||
mc13783_add_subdevice(mc13783, "mc13783-ts");
|
||||
|
||||
mc13783_unlock(mc13783);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue