From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH 8/8] ASoC: tpa6130a2: Control vdd using regulator framework Date: Thu, 8 Oct 2009 14:43:33 +0100 Message-ID: <20091008134332.GI29176@rakim.wolfsonmicro.main> References: <1255003137-1034-1-git-send-email-eduardo.valentin@nokia.com> <1255003137-1034-9-git-send-email-eduardo.valentin@nokia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1255003137-1034-9-git-send-email-eduardo.valentin@nokia.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: alsa-devel@alsa-project.org Cc: ext Tony Lindgren , "Ujfalusi Peter (Nokia-D/Tampere)" , "Nurkkala Eero.An (EXT-Offcode/Oulu)" , Linux-OMAP , ALSA-Devel List-Id: linux-omap@vger.kernel.org On Thu, Oct 08, 2009 at 02:58:57PM +0300, Eduardo Valentin wrote: > + data->regulator = regulator_get(dev, "vdd"); > + if (IS_ERR(data->regulator)) { > + dev_info(dev, "Could not get regulator for vdd. " > + "Executing without regulator.\n"); > + data->regulator = NULL; > + } Similar comments to the previous patch apply to this driver - regulator usage should be unconditional, error messages should not be split over multiple lines and you should represent all the supplies separately (it looks like there's both VDD and CPVSS required here, for example) to avoid future surprises.