Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752083Ab2HRHH5 (ORCPT ); Sat, 18 Aug 2012 03:07:57 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:60488 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750841Ab2HRHHl (ORCPT ); Sat, 18 Aug 2012 03:07:41 -0400 Date: Sat, 18 Aug 2012 09:07:32 +0200 From: Wolfram Sang To: Laxman Dewangan Cc: khali@linux-fr.org, swarren@nvidia.com, broonie@opensource.wolfsonmicro.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: tegra: Fix ifdefs for suspend mode Message-ID: <20120818070732.GA24639@pengutronix.de> References: <1343655187-18282-1-git-send-email-ldewangan@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline In-Reply-To: <1343655187-18282-1-git-send-email-ldewangan@nvidia.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: 2001:6f8:1178:2:21e:67ff:fe11:9c5c X-SA-Exim-Mail-From: wsa@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1882 Lines: 69 --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 30, 2012 at 07:03:07PM +0530, Laxman Dewangan wrote: > CONFIG_PM covers runtime only PM. I am a bit confused by this description. CONFIG_PM_RUNTIME covers runtime PM, no? >=20 > Signed-off-by: Laxman Dewangan > --- > This patch will remove the compilation warning if CONFIG_PM_SLEEP > is not enabled. Maybe it would help to see the warning? >=20 > drivers/i2c/busses/i2c-tegra.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) >=20 > diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegr= a.c > index 66eb53f..9a08c57 100644 > --- a/drivers/i2c/busses/i2c-tegra.c > +++ b/drivers/i2c/busses/i2c-tegra.c > @@ -712,7 +712,7 @@ static int __devexit tegra_i2c_remove(struct platform= _device *pdev) > return 0; > } > =20 > -#ifdef CONFIG_PM > +#ifdef CONFIG_PM_SLEEP > static int tegra_i2c_suspend(struct device *dev) > { > struct tegra_i2c_dev *i2c_dev =3D dev_get_drvdata(dev); > --=20 > 1.7.1.1 >=20 Regards, Wolfram --=20 Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlAvPzQACgkQD27XaX1/VRu2zQCeJ6W1ndhyQmQGfiWc0cleh/37 b6sAoKcmqUnYeXQNdEd2j1ivUkcP4NHI =uVkj -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm-- -- 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/