1. 06 4月, 2009 5 次提交
  2. 04 4月, 2009 2 次提交
  3. 03 4月, 2009 1 次提交
    • U
      [MTD] [NAND] move gen_nand's probe function to .devinit.text · 9d63287a
      Uwe Kleine-König 提交于
      A pointer to plat_nand_probe is passed to the core via
      platform_driver_register and so the function must not disappear when the
      .init sections are discarded.  Otherwise (if also having HOTPLUG=y)
      unbinding and binding a device to the driver via sysfs will result in an
      oops as does a device being registered late.
      
      An alternative to this patch is using platform_driver_probe instead of
      platform_driver_register plus removing the pointer to the probe function
      from the struct platform_driver.
      Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      Cc: Hamish Moffatt <hamish@cloud.net.au>
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Li Zefan <lizf@cn.fujitsu.com>
      Cc: Vitaly Wool <vitalywool@gmail.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      9d63287a
  4. 31 3月, 2009 1 次提交
    • R
      module: remove module_text_address() · a6e6abd5
      Rusty Russell 提交于
      Impact: Replace and remove risky (non-EXPORTed) API
      
      module_text_address() returns a pointer to the module, which given locking
      improvements in module.c, is useless except to test for NULL:
      
      1) If the module can't go away, use __module_text_address.
      2) Otherwise, just use is_module_text_address().
      
      Cc: linux-mtd@lists.infradead.org
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      a6e6abd5
  5. 30 3月, 2009 1 次提交
  6. 25 3月, 2009 2 次提交
  7. 24 3月, 2009 1 次提交
  8. 21 3月, 2009 4 次提交
  9. 20 3月, 2009 8 次提交
  10. 13 3月, 2009 1 次提交
  11. 09 3月, 2009 2 次提交
  12. 04 3月, 2009 1 次提交
    • R
      [ARM] fix lots of ARM __devexit sillyness · bdf602bd
      Russell King 提交于
      `iop_adma_remove' referenced in section `.data' of drivers/built-in.o: defined in discarded section `.devexit.text' of drivers/built-in.o
      `mv_xor_remove' referenced in section `.data' of drivers/built-in.o: defined in discarded section `.devexit.text' of drivers/built-in.o
      `mv64xxx_i2c_unmap_regs' referenced in section `.devinit.text' of drivers/built-in.o: defined in discarded section `.devexit.text' of drivers/built-in.o
      `mv64xxx_i2c_remove' referenced in section `.data' of drivers/built-in.o: defined in discarded section `.devexit.text' of drivers/built-in.o
      `orion_nand_remove' referenced in section `.data' of drivers/built-in.o: defined in discarded section `.devexit.text' of drivers/built-in.o
      `pxafb_remove' referenced in section `.data' of drivers/built-in.o: defined in discarded section `.devexit.text' of drivers/built-in.o
      Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      bdf602bd
  13. 17 2月, 2009 1 次提交
  14. 30 1月, 2009 1 次提交
  15. 29 1月, 2009 1 次提交
  16. 28 1月, 2009 1 次提交
  17. 09 1月, 2009 1 次提交
  18. 07 1月, 2009 1 次提交
  19. 06 1月, 2009 1 次提交
  20. 05 1月, 2009 4 次提交
    • M
      [MTD] [NAND] pxa3xx: convert from ns to clock ticks more accurately · 5b0d4d7c
      Matt Reimer 提交于
      The various fields in NDTR{01} are in units of clock ticks minus one, but the
      ns2cycle macro mistakenly adds one, inflating the number of clock ticks and
      making it impossible to set any of these fields to zero.
      Signed-off-by: NMatt Reimer <mreimer@vpop.net>
      Signed-off-by: NEric Miao <eric.miao@marvell.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      5b0d4d7c
    • M
      [MTD] [NAND] pxa3xx: fix non-page-aligned reads · 7f9938d0
      Matt Reimer 提交于
      Reads from non-page-aligned addresses were broken because while the
      address to read from was correctly written to NDCB*, a full page was
      always read. Fix this by ignoring the column and only using the page
      address.
      
      I suspect this whole-page behavior is due to the controller's need to
      read the entire page in order to generate correct ECC. In the non-ECC
      case this could be optimized to use the column address, and to set the
      read length to what is being requested rather than the length of an
      entire page.
      Signed-off-by: NMatt Reimer <mreimer@vpop.net>
      Signed-off-by: NEric Miao <eric.miao@marvell.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      7f9938d0
    • R
      [MTD] [NAND] fix nandsim sched.h references · a5cce42f
      Randy Dunlap 提交于
      Fix sched.h references:
      
      build-r7149.out:/local/linsrc/linux-next-20081215/drivers/mtd/nand/nandsim.c:1326: error: dereferencing pointer to incomplete type
      build-r7149.out:/local/linsrc/linux-next-20081215/drivers/mtd/nand/nandsim.c:1326: error: 'PF_MEMALLOC' undeclared (first use in this function)
      build-r7149.out:/local/linsrc/linux-next-20081215/drivers/mtd/nand/nandsim.c:1328: error: dereferencing pointer to incomplete type
      build-r7149.out:/local/linsrc/linux-next-20081215/drivers/mtd/nand/nandsim.c:1335: error: dereferencing pointer to incomplete type
      build-r7149.out:/local/linsrc/linux-next-20081215/drivers/mtd/nand/nandsim.c:1335: error: 'PF_MEMALLOC' undeclared (first use in this function)
      build-r7149.out:make[4]: *** [drivers/mtd/nand/nandsim.o] Error 1
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      a5cce42f
    • J
      [MTD] [NAND] alauda: use USB API functions rather than constants · 232ed5e6
      Julia Lawall 提交于
      This set of patches introduces calls to the following set of functions:
      
      usb_endpoint_dir_in(epd)
      usb_endpoint_dir_out(epd)
      usb_endpoint_is_bulk_in(epd)
      usb_endpoint_is_bulk_out(epd)
      usb_endpoint_is_int_in(epd)
      usb_endpoint_is_int_out(epd)
      usb_endpoint_num(epd)
      usb_endpoint_type(epd)
      usb_endpoint_xfer_bulk(epd)
      usb_endpoint_xfer_control(epd)
      usb_endpoint_xfer_int(epd)
      usb_endpoint_xfer_isoc(epd)
      
      In some cases, introducing one of these functions is not possible, and it
      just replaces an explicit integer value by one of the following constants:
      
      USB_ENDPOINT_XFER_BULK
      USB_ENDPOINT_XFER_CONTROL
      USB_ENDPOINT_XFER_INT
      USB_ENDPOINT_XFER_ISOC
      
      An extract of the semantic patch that makes these changes is as follows:
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @r1@ struct usb_endpoint_descriptor *epd; @@
      
      - ((epd->bmAttributes & \(USB_ENDPOINT_XFERTYPE_MASK\|3\)) ==
      - \(USB_ENDPOINT_XFER_CONTROL\|0\))
      + usb_endpoint_xfer_control(epd)
      
      @r5@ struct usb_endpoint_descriptor *epd; @@
      
      - ((epd->bEndpointAddress & \(USB_ENDPOINT_DIR_MASK\|0x80\)) ==
      -  \(USB_DIR_IN\|0x80\))
      + usb_endpoint_dir_in(epd)
      
      @inc@
      @@
      
      #include <linux/usb.h>
      
      @depends on !inc && (r1||r5)@
      @@
      
      + #include <linux/usb.h>
        #include <linux/usb/...>
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      232ed5e6