From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pali =?utf-8?q?Roh=C3=A1r?= Subject: Re: [PATCH 1/2] isp1704_charger: Add DT support Date: Thu, 14 Nov 2013 19:05:06 +0100 Message-ID: <201311141905.11046@pali> References: <1384432734-1490-1-git-send-email-sre@debian.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart16505307.8pWyuiL9Yo"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1384432734-1490-1-git-send-email-sre@debian.org> Sender: linux-kernel-owner@vger.kernel.org To: Sebastian Reichel Cc: Tony Lindgren , Anton Vorontsov , David Woodhouse , Grant Likely , Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org List-Id: devicetree@vger.kernel.org --nextPart16505307.8pWyuiL9Yo Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Thursday 14 November 2013 13:38:53 Sebastian Reichel wrote: > diff --git a/drivers/power/isp1704_charger.c > b/drivers/power/isp1704_charger.c index fc04d19..db96778 > 100644 > --- a/drivers/power/isp1704_charger.c > +++ b/drivers/power/isp1704_charger.c > @@ -28,6 +28,8 @@ > #include > #include > #include > +#include > +#include >=20 > #include > #include > @@ -89,8 +91,8 @@ static void isp1704_charger_set_power(struct > isp1704_charger *isp, bool on) { > struct isp1704_charger_data *board =3D > isp->dev->platform_data; >=20 > - if (board && board->set_power) > - board->set_power(on); > + if (board) > + gpio_set_value(board->enable_gpio, on); > } >=20 You need to check if enable_gpio in board data was defined or not. =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart16505307.8pWyuiL9Yo Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlKFENYACgkQi/DJPQPkQ1IBGwCeMCZVuzZCxHs5GD3ezENwZ1Tl SF8AoL0CrsPvU74izZLBc/KLI/238TBw =Zruq -----END PGP SIGNATURE----- --nextPart16505307.8pWyuiL9Yo--