From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH] ASoC: tpa6130a2: Fix unbalanced regulator disables Date: Thu, 28 Oct 2010 19:33:26 +0100 Message-ID: <20101028183326.GB14076@sirena.org.uk> References: <1288263940-4602-1-git-send-email-jhnikula@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cassiel.sirena.org.uk (cassiel.sirena.org.uk [80.68.93.111]) by alsa0.perex.cz (Postfix) with ESMTP id 9822B10380C for ; Thu, 28 Oct 2010 20:33:27 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1288263940-4602-1-git-send-email-jhnikula@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Jarkko Nikula Cc: alsa-devel@alsa-project.org, Peter Ujfalusi , Liam Girdwood List-Id: alsa-devel@alsa-project.org On Thu, Oct 28, 2010 at 02:05:40PM +0300, Jarkko Nikula wrote: > This driver has unbalanced regulator_disable when doing module loading and > unloading. This is because tpa6130a2_probe followed by tpa6130a2_remove > calls twice tpa6130a2_power(0). Fix this by implementing a state checking > in tpa6130a2_power. > > Signed-off-by: Jarkko Nikula > Cc: Peter Ujfalusi Acked-by: Mark Brown