Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751592AbdCQP0r (ORCPT ); Fri, 17 Mar 2017 11:26:47 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:58232 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751557AbdCQP0p (ORCPT ); Fri, 17 Mar 2017 11:26:45 -0400 Date: Fri, 17 Mar 2017 16:26:40 +0100 From: Pavel Machek To: Sebastian Reichel Cc: Tony Lindgren , Aaro Koskinen , Tomi Valkeinen , Laurent Pinchart , David Airlie , linux-omap@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv2 02/10] drm: omapdrm: panel-dsi-cm: add regulator support Message-ID: <20170317152640.GH8723@amd> References: <20170304235021.27055-1-sre@kernel.org> <20170305004309.28259-1-sre@kernel.org> <20170305004309.28259-2-sre@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wj9ZLJVQDRFjGSdK" Content-Disposition: inline In-Reply-To: <20170305004309.28259-2-sre@kernel.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1250 Lines: 51 --wj9ZLJVQDRFjGSdK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > The N950's display requires two regulators. >=20 > Signed-off-by: Sebastian Reichel > --- > drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 55 +++++++++++++++++++= ++++-- > 1 file changed, 52 insertions(+), 3 deletions(-) > @@ -590,25 +594,43 @@ static int dsicm_power_on(struct panel_drv_data *dd= ata) > .lp_clk_max =3D 10000000, > }; > =20 > + if (ddata->vpnl) { > + r =3D regulator_enable(ddata->vpnl); > + if (r) { > + dev_err(&ddata->pdev->dev, > + "failed to enable VPNL: %d\n", r); > + goto err0; > + } > + } Having err0 that just returns .. is quite confusing. Just return here? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --wj9ZLJVQDRFjGSdK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAljMADAACgkQMOfwapXb+vK25gCfXrHZugqmmILPxQskqGu3lW0t wLkAnR8hJwl+rfP9kHjfmcNRRSKP5JLM =CLUn -----END PGP SIGNATURE----- --wj9ZLJVQDRFjGSdK--