All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM:mfd: fix ezx-pcap build failure
@ 2012-04-25 15:02 ` Mark Asselstine
  0 siblings, 0 replies; 14+ messages in thread
From: Mark Asselstine @ 2012-04-25 15:02 UTC (permalink / raw)
  To: linux-next
  Cc: linux-arm-kernel, sameo, haojian.zhuang, openezx-devel,
	mark.asselstine

Attempting to build the ezx_defconfig we get a build failure:

drivers/mfd/ezx-pcap.c: In function 'pcap_isr_work':
drivers/mfd/ezx-pcap.c:205: error: implicit declaration of function 'irq_to_gpio'

Looking at this failure we can find that commit 4929f5a8a99f
[ARM:pxa: rename gpio_to_irq and irq_to_gpio] renamed irq_to_gpio()
to pxa_irq_to_gpio() but this change was not made in the ezx-pcap
driver.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
---
 drivers/mfd/ezx-pcap.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/ezx-pcap.c b/drivers/mfd/ezx-pcap.c
index 43a76c4..c49c52a 100644
--- a/drivers/mfd/ezx-pcap.c
+++ b/drivers/mfd/ezx-pcap.c
@@ -19,6 +19,7 @@
 #include <linux/spi/spi.h>
 #include <linux/gpio.h>
 #include <linux/slab.h>
+#include <linux/gpio-pxa.h>
 
 #define PCAP_ADC_MAXQ		8
 struct pcap_adc_request {
@@ -202,7 +203,7 @@ static void pcap_isr_work(struct work_struct *work)
 		}
 		local_irq_enable();
 		ezx_pcap_write(pcap, PCAP_REG_MSR, pcap->msr);
-	} while (gpio_get_value(irq_to_gpio(pcap->spi->irq)));
+	} while (gpio_get_value(pxa_irq_to_gpio(pcap->spi->irq)));
 }
 
 static void pcap_irq_handler(unsigned int irq, struct irq_desc *desc)
-- 
1.7.5.4

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

end of thread, other threads:[~2012-04-30 17:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-25 15:02 [PATCH] ARM:mfd: fix ezx-pcap build failure Mark Asselstine
2012-04-25 15:02 ` Mark Asselstine
2012-04-26 21:52 ` Russell King - ARM Linux
2012-04-26 21:52   ` Russell King - ARM Linux
2012-04-26 22:04   ` Mark Brown
2012-04-26 22:04     ` Mark Brown
2012-04-27 15:28   ` Mark Asselstine
2012-04-27 15:28     ` Mark Asselstine
2012-04-27 18:02     ` Mark Brown
2012-04-27 18:02       ` Mark Brown
2012-04-30 17:26       ` Mark Asselstine
2012-04-30 17:26         ` Mark Asselstine
2012-04-27 16:09   ` Grant Likely
2012-04-27 16:09     ` Grant Likely

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.