Skip to content

Commit 59ee93a

Browse files
committed
ARM: pxa: remove irq_to_gpio from ezx-pcap driver
The irq_to_gpio function was removed from the pxa platform in linux-3.2, and this driver has been broken since. There is actually no in-tree user of this driver that adds this platform device, but the driver can and does get enabled on some platforms. Without this patch, building ezx_defconfig results in: drivers/mfd/ezx-pcap.c: In function 'pcap_isr_work': drivers/mfd/ezx-pcap.c:205:2: error: implicit declaration of function 'irq_to_gpio' [-Werror=implicit-function-declaration] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com> Cc: stable@vger.kernel.org (v3.2+) Cc: Samuel Ortiz <sameo@linux.intel.com> Cc: Daniel Ribeiro <drwyrm@gmail.com>
1 parent 798bd59 commit 59ee93a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/mfd/ezx-pcap.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static void pcap_isr_work(struct work_struct *work)
202202
}
203203
local_irq_enable();
204204
ezx_pcap_write(pcap, PCAP_REG_MSR, pcap->msr);
205-
} while (gpio_get_value(irq_to_gpio(pcap->spi->irq)));
205+
} while (gpio_get_value(pdata->gpio));
206206
}
207207

208208
static void pcap_irq_handler(unsigned int irq, struct irq_desc *desc)

‎include/linux/mfd/ezx-pcap.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ struct pcap_subdev {
1616
struct pcap_platform_data {
1717
unsigned int irq_base;
1818
unsigned int config;
19+
int gpio;
1920
void (*init) (void *); /* board specific init */
2021
int num_subdevs;
2122
struct pcap_subdev *subdevs;

0 commit comments

Comments
 (0)