On Tue, 21 Jun 2011 10:59:06 -0700 Kristen Carlson Accardi <kris...@linux.intel.com> wrote:
> On Mon, 20 Jun 2011 22:02:37 -0700 > william.r.doug...@gmail.com wrote: > > > From: William Douglas <william.doug...@intel.com> > > > > Because bma023 is to use sysfs instead of its gpio interupt, add > > a handler to set the irq to 0 in order to avoid error messages > > printed at startup (as the irq was set to 0xff before). > > While this will work, the more technically correct thing to do > is set the irq to -1, since 0 is a valid irq number. No William's code is correct. Zero is not a valid IRQ number in Linux. It may exist as a hardware IRQ and in hardware specific places (eg the historic timer IRQ on Linux x86) but 0 means "no interrupt in use". _______________________________________________ MeeGo-kernel mailing list MeeGo-kernel@lists.meego.com http://lists.meego.com/listinfo/meego-kernel