public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: tegra: Fix <mach/gpio.h> to have necessary #includes
@ 2011-08-11 18:05 Stephen Warren
  2011-08-11 19:36 ` Russell King - ARM Linux
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2011-08-11 18:05 UTC (permalink / raw)
  To: Arnd Bergmann, Colin Cross, Erik Gilling, Olof Johansson
  Cc: Russell King, linux-tegra, linux-arm-kernel, linux-kernel,
	Stephen Warren

Without this, EINVAL isn't defined, and type bool isn't declared.
This leads to compilation failures.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 arch/arm/mach-tegra/include/mach/gpio.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-tegra/include/mach/gpio.h b/arch/arm/mach-tegra/include/mach/gpio.h
index e353805..96af4ff 100644
--- a/arch/arm/mach-tegra/include/mach/gpio.h
+++ b/arch/arm/mach-tegra/include/mach/gpio.h
@@ -20,7 +20,8 @@
 #ifndef __MACH_TEGRA_GPIO_H
 #define __MACH_TEGRA_GPIO_H
 
-#include <linux/init.h>
+#include <linux/errno.h>
+#include <linux/types.h>
 #include <mach/irqs.h>
 
 #define TEGRA_NR_GPIOS		INT_GPIO_NR
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* RE: [PATCH] ARM: tegra: Fix <mach/gpio.h> to have necessary #includes
@ 2011-08-11 19:49 Stephen Warren
  2011-08-11 20:02 ` Russell King - ARM Linux
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2011-08-11 19:49 UTC (permalink / raw)
  To: Russell King - ARM Linux
  Cc: Arnd Bergmann, Colin Cross, Erik Gilling, Olof Johansson,
	linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org

Russell King wrote at Thursday, August 11, 2011 1:36 PM:
> On Thu, Aug 11, 2011 at 12:05:52PM -0600, Stephen Warren wrote:
> > Without this, EINVAL isn't defined, and type bool isn't declared.
> > This leads to compilation failures.
> 
> An alternative approach would be to convert tegra to be able to use
> the gpiolib __gpio_to_irq() for the on-SoC stuff, and eliminate
> irq_to_gpio().
> 
> Would it be possible to do that instead?

That should work too.

I posted a couple patches last Friday to remove irq_to_gpio:

https://lkml.org/lkml/2011/8/5/343
https://lkml.org/lkml/2011/8/5/342

Later in the thread, you said you would merge them into your branch to
avoid merge conflicts with the other GPIO work you were doing.

For gpio_to_irq, yes, I believe we get rid of it pretty easily; we'd
just need to implement gpio-tegra.c's gpio_chip.to_irq function. Should
I cook up a patch based on top of linux-next plus the two patches above
to do that instead?

Thanks.

-- 
nvpublic


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-11 20:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-11 18:05 [PATCH] ARM: tegra: Fix <mach/gpio.h> to have necessary #includes Stephen Warren
2011-08-11 19:36 ` Russell King - ARM Linux
  -- strict thread matches above, loose matches on Subject: below --
2011-08-11 19:49 Stephen Warren
2011-08-11 20:02 ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox