1. 14 12月, 2006 5 次提交
  2. 13 12月, 2006 25 次提交
  3. 12 12月, 2006 10 次提交
    • M
      V4L/DVB (4954): Fix: On ia64, i2c adap->inb/adap->outb are wrongly evaluated · 2a7e9a26
      Mauro Carvalho Chehab 提交于
      i2c defines two callbacks (inb/outb). On ia64, since it defines also two macros
      with those names, it causes the following errors:
      drivers/media/video/usbvision/usbvision-i2c.c:64:39: macro "outb" passed 4 arguments, but takes just 2
      drivers/media/video/usbvision/usbvision-i2c.c: In function `try_write_address':
      drivers/media/video/usbvision/usbvision-i2c.c:64: warning: assignment makes integer from pointer without a cast
      drivers/media/video/usbvision/usbvision-i2c.c:89:38: macro "inb" passed 4 arguments, but takes just 1
      drivers/media/video/usbvision/usbvision-i2c.c: In function `try_read_address':
      drivers/media/video/usbvision/usbvision-i2c.c:89: warning: assignment makes integer from pointer without a cast
      drivers/media/video/usbvision/usbvision-i2c.c:85: warning: unused variable `buf'
      drivers/media/video/usbvision/usbvision-i2c.c:173:53: macro "inb" passed 4 arguments, but takes just 1
      drivers/media/video/usbvision/usbvision-i2c.c: In function `usb_xfer':
      drivers/media/video/usbvision/usbvision-i2c.c:173: warning: assignment makes integer from pointer without a cast
      drivers/media/video/usbvision/usbvision-i2c.c:179:54: macro "outb" passed 4 arguments, but takes just 2
      drivers/media/video/usbvision/usbvision-i2c.c:179: warning: assignment makes integer from pointer without a cast
      thanks to Andrew Morton for pointing this.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      2a7e9a26
    • B
      [PATCH] remove blk_queue_activity_fn · 2b02a179
      Boaz Harrosh 提交于
      While working on bidi support at struct request level
      I have found that blk_queue_activity_fn is actually never used.
      The only user is in ide-probe.c with this code:
      
      	/* enable led activity for disk drives only */
      	if (drive->media == ide_disk && hwif->led_act)
      		blk_queue_activity_fn(q, hwif->led_act, drive);
      
      And led_act is never initialized anywhere.
      (Looking back at older kernels it was used in the PPC arch, but was removed around 2.6.18)
      Unless it is all for future use off course.
      (this patch is against linux-2.6-block.git as off 2006/12/4)
      Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      2b02a179
    • P
      sh: SH-MobileR SH7722 CPU support. · 41504c39
      Paul Mundt 提交于
      This adds CPU support for the SH7722.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      41504c39
    • J
      rtc: rtc-sh: alarm support. · 1b73e6ae
      Jamie Lenehan 提交于
      This adds alarm support for the RTC_ALM_SET, RTC_ALM_READ,
      RTC_WKALM_SET and RTC_WKALM_RD operations to rtc-sh.
      
      The only unusual part is the handling of the alarm interrupt. If you
      clear the alarm flag (AF) while the time in the RTC still matches the
      time in the alarm registers than AF is immediately re-set, and if the
      alarm interrupt (AIE) is still enabled then it re-triggers. I was
      originally getting around 20k+ interrupts generated during the second
      when the RTC and alarm registers matches.
      
      The solution I've used is to clear AIE when the alarm goes off and
      then use the carry interrupt to re-enabled it. The carry interrupt
      will check AF and re-enabled AIE if it's clear. If AF is not clear
      it'll clear it and then the check will be repeated next carry
      interrupt. This a bit in rtc structure that indicates that it's
      waiting to have AIE re-enabled so it doesn't turn it on when it
      wasn't enabled anyway.
      Signed-off-by: NJamie Lenehan <lenehan@twibble.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      1b73e6ae
    • J
      rtc: rtc-sh: fix rtc for out-by-one for the month. · a1614796
      Jamie Lenehan 提交于
      The RMONCNT register, which holds the month in the RTC, takes a value
      between 1 and 12 while the tm_mon field in the time structures takes
      a value between 0 and 11. This wasn't being taken into account in
      rtc-sh resulting in the month being out by one.
      
      eg, on my board during boot the RTC is set to:
      
        RTC is set to Thu Jul 01 09:00:00 1999
      
      but "hwclock -r" immediately after logging in was showing:
      
        Sun Aug  1 09:01:43 1999  0.000000 seconds
      Signed-off-by: NJamie Lenehan <lenehan@twibble.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      a1614796
    • P
      31388750
    • J
      rtc: rtc-sh: fix for period rtc interrupts. · 31ccb081
      Jamie Lenehan 提交于
      When testing the per second interrupt support (RTC_UIE_ON/RTC_UIE_OFF)
      of the new RTC system it would die in sh_rtc_interrupt due to a null
      ptr dereference. The following gets it working correctly.
      Signed-off-by: NJamie Lenehan <lenehan@twibble.org>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      31ccb081
    • R
      [HAMRADIO]: Fix baycom_epp.c compile failure. · f654c854
      Ralf Baechle 提交于
      Fix foobar in 15b1c0e8 and
      e8cc49bb patch series.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f654c854
    • R
      2653a47b
    • R
      [NET]: Fix WAN routers kconfig dependency. · ed407717
      Randy Dunlap 提交于
      Currently WAN router drivers can be built in-kernel while the
      register/unregister_wan_device interfaces are built as modules.
      This causes:
      
      drivers/built-in.o: In function `cycx_init':
      cycx_main.c:(.init.text+0x5c4b): undefined reference to `register_wan_device'
      drivers/built-in.o: In function `cycx_exit':
      cycx_main.c:(.exit.text+0x560): undefined reference to `unregister_wan_device'
      make: *** [.tmp_vmlinux1] Error 1
      
      The problem is caused by tristate -> bool conversion (y or m => y),
      so convert WAN_ROUTER_DRIVERS to a tristate so that the correct
      dependency is preserved.
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ed407717