Commit 1e02b2c32484bfe0c5564d9be060b7d9821307b9
Committed by
Samuel Ortiz
1 parent
8e6ba2dfa2
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/mfd/mc13783-core.c
... | ... | @@ -619,6 +619,8 @@ |
619 | 619 | } |
620 | 620 | /* This should go away (END) */ |
621 | 621 | |
622 | + mc13783_unlock(mc13783); | |
623 | + | |
622 | 624 | if (pdata->flags & MC13783_USE_ADC) |
623 | 625 | mc13783_add_subdevice(mc13783, "mc13783-adc"); |
624 | 626 | |
... | ... | @@ -640,8 +642,6 @@ |
640 | 642 | |
641 | 643 | if (pdata->flags & MC13783_USE_TOUCHSCREEN) |
642 | 644 | mc13783_add_subdevice(mc13783, "mc13783-ts"); |
643 | - | |
644 | - mc13783_unlock(mc13783); | |
645 | 645 | |
646 | 646 | return 0; |
647 | 647 | } |