From: Arnd Bergmann Date: Fri, 28 Sep 2012 21:36:00 +0000 (+0100) Subject: staging/iio/lis3l02dq: fix building without irq_to_gpio X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~1089^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65cb587d7058441c8c910e8766ee86538c7274d8;p=pandora-kernel.git staging/iio/lis3l02dq: fix building without irq_to_gpio The driver has not been building for some time after the irq_to_gpio function has been removed from the kernel. The only board in the upstream kernel that provides this device is the "Stargate 2", which is also maintained by Jonathan Cameron. Rather than working around the problem by adding new platform data for this driver, this patch uses the of_gpio framework to get to the gpio number. However, the stargate2 code does not (yet) use DT based probing, so it is still broken, but at least building allyesconfig works again. Signed-off-by: Arnd Bergmann Cc: Lars-Peter Clausen Cc: Jonathan Cameron Cc: Greg Kroah-Hartman Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed