Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934185AbZLMBtE (ORCPT ); Sat, 12 Dec 2009 20:49:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934270AbZLMBtA (ORCPT ); Sat, 12 Dec 2009 20:49:00 -0500 Received: from mail-ew0-f219.google.com ([209.85.219.219]:57466 "HELO mail-ew0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S934275AbZLMBs6 (ORCPT ); Sat, 12 Dec 2009 20:48:58 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=S/+EGVlJu4EWDlkz0G+u6l/NtzmbgCjauaj6ZOPgq6HvDcmTfJhEwMWzPKLapGQ0nn 1C9M5v3pvUElliwtoq57D0Pay+rQ7zMduPM1BXDe/UT6K69XNNb6s+0LaK+dA0N46uFU SlytF6FENo+HVav4bDYw8JrqMPEEl7yt0DW2M= Subject: [PATCH 2/4] mfd: mc13783: When probing, unlock the mc13783 before subsystems initialisation. From: Alberto Panizzo To: Samuel Ortiz Cc: Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= , Mark Brown , Sascha linux-arm , linux-arm-kernel-infradead , linux-kernel In-Reply-To: <1260636523.2054.28.camel@climbing-alby> References: <1260635829.2054.16.camel@climbing-alby> <1260636523.2054.28.camel@climbing-alby> Content-Type: text/plain; charset="UTF-8" Date: Sat, 12 Dec 2009 17:53:39 +0100 Message-ID: <1260636819.2054.33.camel@climbing-alby> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1056 Lines: 40 With this, mc13783 subsystems drivers can configure the mc13783 chip reading and writing registers. Signed-off-by: Alberto Panizzo --- drivers/mfd/mc13783-core.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/mc13783-core.c b/drivers/mfd/mc13783-core.c index aa1f79a..35dcc2a 100644 --- a/drivers/mfd/mc13783-core.c +++ b/drivers/mfd/mc13783-core.c @@ -631,6 +631,8 @@ err_revision: } /* This should go away (END) */ + mc13783_unlock(mc13783); + if (pdata->flags & MC13783_USE_ADC) mc13783_add_subdevice(mc13783, "mc13783-adc"); @@ -653,8 +655,6 @@ err_revision: if (pdata->flags & MC13783_USE_TOUCHSCREEN) mc13783_add_subdevice(mc13783, "mc13783-ts"); - mc13783_unlock(mc13783); - return 0; } -- 1.6.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/