aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-13 12:39:14 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-13 13:28:20 -0500
commit986058e1ef342363a2d77233bbc07bb0a0264f6b (patch)
tree4553dd38d72df9b4b9e034ab9c4b33327e50c5c2 /drivers/staging
parentc61c3094a630b2f795addc3a74fbd5ff7f704ca9 (diff)
[media] lirc_parallel: avoid name conflict on mn10300 arch
The "irq_handler" name is already defined there on a header file: /devel/v4l/temp/drivers/staging/media/lirc/lirc_parallel.c:223:13: error: conflicting types for ‘irq_handler’ static void irq_handler(void *blah) ^ In file included from /devel/v4l/temp/arch/mn10300/include/asm/reset-regs.h:16:0, from /devel/v4l/temp/arch/mn10300/include/asm/irq.h:18, from /devel/v4l/temp/include/linux/irq.h:24, from /devel/v4l/temp/arch/mn10300/include/asm/hardirq.h:16, from /devel/v4l/temp/include/linux/preempt_mask.h:5, from /devel/v4l/temp/include/linux/sched.h:25, from /devel/v4l/temp/include/linux/utsname.h:5, from /devel/v4l/temp/arch/mn10300/include/asm/elf.h:15, from /devel/v4l/temp/include/linux/elf.h:4, from /devel/v4l/temp/include/linux/module.h:14, from /devel/v4l/temp/drivers/staging/media/lirc/lirc_parallel.c:29: /devel/v4l/temp/arch/mn10300/include/asm/exceptions.h:107:24: note: previous declaration of ‘irq_handler’ was here extern asmlinkage void irq_handler(void); /devel/v4l/patchwork/drivers/staging/media/lirc/lirc_serial.c:653:20: error: conflicting types for ‘irq_handler’ static irqreturn_t irq_handler(int i, void *blah) ^ In file included from /devel/v4l/patchwork/arch/mn10300/include/asm/reset-regs.h:16:0, from /devel/v4l/patchwork/arch/mn10300/include/asm/irq.h:18, from /devel/v4l/patchwork/include/linux/irq.h:24, from /devel/v4l/patchwork/arch/mn10300/include/asm/hardirq.h:16, from /devel/v4l/patchwork/include/linux/preempt_mask.h:5, from /devel/v4l/patchwork/include/linux/sched.h:25, from /devel/v4l/patchwork/include/linux/utsname.h:5, from /devel/v4l/patchwork/arch/mn10300/include/asm/elf.h:15, from /devel/v4l/patchwork/include/linux/elf.h:4, from /devel/v4l/patchwork/include/linux/module.h:14, from /devel/v4l/patchwork/drivers/staging/media/lirc/lirc_serial.c:53: /devel/v4l/patchwork/arch/mn10300/include/asm/exceptions.h:107:24: note: previous declaration of ‘irq_handler’ was here extern asmlinkage void irq_handler(void); So, rename it, to avoid namespace conflicts. This patch fixes building media drivers with allyesconfig/almodconfig on mn10300 arch. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/media/lirc/lirc_parallel.c4
-rw-r--r--drivers/staging/media/lirc/lirc_serial.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/media/lirc/lirc_parallel.c b/drivers/staging/media/lirc/lirc_parallel.c
index 41d110f8bc02..0b589892351a 100644
--- a/drivers/staging/media/lirc/lirc_parallel.c
+++ b/drivers/staging/media/lirc/lirc_parallel.c
@@ -220,7 +220,7 @@ static void rbuf_write(int signal)
220 wptr = nwptr; 220 wptr = nwptr;
221} 221}
222 222
223static void irq_handler(void *blah) 223static void lirc_lirc_irq_handler(void *blah)
224{ 224{
225 struct timeval tv; 225 struct timeval tv;
226 static struct timeval lasttv; 226 static struct timeval lasttv;
@@ -659,7 +659,7 @@ static int __init lirc_parallel_init(void)
659 goto exit_device_put; 659 goto exit_device_put;
660 } 660 }
661 ppdevice = parport_register_device(pport, LIRC_DRIVER_NAME, 661 ppdevice = parport_register_device(pport, LIRC_DRIVER_NAME,
662 pf, kf, irq_handler, 0, NULL); 662 pf, kf, lirc_lirc_irq_handler, 0, NULL);
663 parport_put_port(pport); 663 parport_put_port(pport);
664 if (ppdevice == NULL) { 664 if (ppdevice == NULL) {
665 pr_notice("parport_register_device() failed\n"); 665 pr_notice("parport_register_device() failed\n");
diff --git a/drivers/staging/media/lirc/lirc_serial.c b/drivers/staging/media/lirc/lirc_serial.c
index 2e3a98575d47..0be1f468771b 100644
--- a/drivers/staging/media/lirc/lirc_serial.c
+++ b/drivers/staging/media/lirc/lirc_serial.c
@@ -650,7 +650,7 @@ static void frbwrite(int l)
650 rbwrite(l); 650 rbwrite(l);
651} 651}
652 652
653static irqreturn_t irq_handler(int i, void *blah) 653static irqreturn_t lirc_irq_handler(int i, void *blah)
654{ 654{
655 struct timeval tv; 655 struct timeval tv;
656 int counter, dcd; 656 int counter, dcd;
@@ -852,7 +852,7 @@ static int lirc_serial_probe(struct platform_device *dev)
852 return result; 852 return result;
853#endif 853#endif
854 854
855 result = request_irq(irq, irq_handler, 855 result = request_irq(irq, lirc_irq_handler,
856 (share_irq ? IRQF_SHARED : 0), 856 (share_irq ? IRQF_SHARED : 0),
857 LIRC_DRIVER_NAME, (void *)&hardware); 857 LIRC_DRIVER_NAME, (void *)&hardware);
858 if (result < 0) { 858 if (result < 0) {