1. 15 Jan, 2014 10 commits
  2. 14 Jan, 2014 22 commits
  3. 13 Jan, 2014 8 commits
    • Mauro Carvalho Chehab's avatar
      [media] tea575x: Fix build with ARCH=c6x · eab924d0
      Mauro Carvalho Chehab authored
      In file included from /devel/v4l/temp/include/asm-generic/page.h:23:0,
                       from /devel/v4l/temp/arch/c6x/include/asm/page.h:9,
                       from /devel/v4l/temp/include/asm-generic/io.h:14,
                       from arch/c6x/include/generated/asm/io.h:1,
                       from /devel/v4l/temp/drivers/media/radio/tea575x.c:23:
      /devel/v4l/temp/arch/c6x/include/asm/setup.h:17:27: error: unknown type name ‘phys_addr_t’
       extern int c6x_add_memory(phys_addr_t start, unsigned long size);
      
      It seems that, on such arch, the includes from asm/ should be
      after the ones from linux/.
      
      The proper fix would be to patch the arch files, but, as
      this fix is trivial, apply it. Also, we generally put the
      asm includes after the linux ones, anyway.
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      eab924d0
    • Mauro Carvalho Chehab's avatar
      [media] lirc_parallel: avoid name conflict on mn10300 arch · 986058e1
      Mauro Carvalho Chehab authored
      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: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      986058e1
    • Mauro Carvalho Chehab's avatar
      [media] go7007-usb: only use go->dev after allocated · c61c3094
      Mauro Carvalho Chehab authored
      Fixes those warnings:
      	drivers/staging/media/go7007/go7007-usb.c: In function 'go7007_usb_probe':
      	drivers/staging/media/go7007/go7007-usb.c:1060: warning: 'go' is used uninitialized in this function
      
      While here, comment a code that will never run.
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      c61c3094
    • Mauro Carvalho Chehab's avatar
      [media] dib8000: Fix a few warnings when compiled for avr32 · e4a3bc1c
      Mauro Carvalho Chehab authored
      	drivers/media/dvb-frontends/dib8000.c: In function 'dib8000_get_time_us':
      	drivers/media/dvb-frontends/dib8000.c:3957: warning: 'interleaving' may be used uninitialized in this function
      	drivers/media/dvb-frontends/dib8000.c:3956: warning: 'rate_denum' may be used uninitialized in this function
      
      Those are actually false positives, but it doesn't hurt cleaning them.
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      e4a3bc1c
    • Mauro Carvalho Chehab's avatar
      [media] dib8000: Properly represent long long integers · 5dc8526b
      Mauro Carvalho Chehab authored
      When compiling with avr32, it gets those errors:
      
      	drivers/media/dvb-frontends/dib8000.c: In function 'dib8000_get_stats':
      	drivers/media/dvb-frontends/dib8000.c:4121: warning: integer constant is too large for 'long' type
      
      Fix integer representation to avoid overflow.
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      5dc8526b
    • Mauro Carvalho Chehab's avatar
      [media] radio-usb-si4713: make si4713_register_i2c_adapter static · 6fcd3b61
      Mauro Carvalho Chehab authored
      This function isn't used nowhere outside the same .c file.
      Fixes this warning:
      
      drivers/media/radio/si4713/radio-usb-si4713.c:418:5: warning: no previous prototype for 'si4713_register_i2c_adapter' [-Wmissing-prototypes]
       int si4713_register_i2c_adapter(struct si4713_usb_device *radio)
           ^
      
      Cc: Hans Verkuil <hverkuil@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      6fcd3b61
    • Mauro Carvalho Chehab's avatar
      [media] sh_vou: comment unused vars · a622cc51
      Mauro Carvalho Chehab authored
      Fix two warns below, by commenting the unused code:
      
      drivers/media/platform/sh_vou.c: In function 'sh_vou_configure_geometry':
      drivers/media/platform/sh_vou.c:446:49: warning: variable 'height_max' set but not used [-Wunused-but-set-variable]
        unsigned int black_left, black_top, width_max, height_max,
                                                       ^
      drivers/media/platform/sh_vou.c: In function 'sh_vou_isr':
      drivers/media/platform/sh_vou.c:1056:13: warning: variable 'side' set but not used [-Wunused-but-set-variable]
        static int side;
                   ^
      
      Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
      Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      a622cc51
    • Hans Verkuil's avatar
      [media] solo6x10: fix broken PAL support · 429df502
      Hans Verkuil authored
      The video_type was never set correctly for PAL: it's not a bool, instead
      it is a register value.
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Tested-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Reported-by: tomdev@freenet.de
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      429df502