From: Alberto Panizzo Date: Mon, 14 Dec 2009 17:18:05 +0000 (+0100) Subject: mfd: Unlock mc13783 before subsystems initialisation, at probe time. X-Git-Tag: v2.6.33-rc5~20^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1e02b2c32484bfe0c5564d9be060b7d9821307b9;p=~shefty%2Frdma-dev.git 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 Acked-by: Uwe Kleine-König Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/mc13783-core.c b/drivers/mfd/mc13783-core.c index a1ade2324ea..735c8a4d164 100644 --- a/drivers/mfd/mc13783-core.c +++ b/drivers/mfd/mc13783-core.c @@ -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; }