Skip to content

Commit

Permalink
mfd: Unlock mc13783 before subsystems initialisation, at probe time.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alberto Panizzo authored and Samuel Ortiz committed Jan 18, 2010
1 parent 8e6ba2d commit 1e02b2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mfd/mc13783-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,8 @@ static int mc13783_probe(struct spi_device *spi)
}
/* This should go away (END) */

mc13783_unlock(mc13783);

if (pdata->flags & MC13783_USE_ADC)
mc13783_add_subdevice(mc13783, "mc13783-adc");

Expand All @@ -641,8 +643,6 @@ static int mc13783_probe(struct spi_device *spi)
if (pdata->flags & MC13783_USE_TOUCHSCREEN)
mc13783_add_subdevice(mc13783, "mc13783-ts");

mc13783_unlock(mc13783);

return 0;
}

Expand Down

0 comments on commit 1e02b2c

Please sign in to comment.