From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Subject: Re: [PATCHv2 3/3] Add platform driver on top of the new Date: Mon, 10 Mar 2008 09:02:51 -0800 Message-ID: <200803101002.52153.david-b@pacbell.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org Errors-To: i2c-bounces-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org To: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org List-Id: linux-i2c@vger.kernel.org > +#ifdef CONFIG_GENERIC_GPIO > +#include > +#endif You should #include now and avoid a lot of this #ifdeffery ... which is something I think you'd be told by running checkpatch.pl on 2.6.25-rc5, as well as most RC4 kernels. > + /* Use NO_GPIO when this macro is in mainline */ I hope you mean gpio_is_valid() instead... that's in MM, but not yet mainline (except when is all stubs). - Dave _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c