1. 04 4月, 2009 3 次提交
    • D
      [MTD] support driver model updates · 87f39f04
      David Brownell 提交于
      Follow-on patch to the previous driver model patch for the MTD
      framework.  This one makes various MTD drivers connect to the
      driver model tree, so /sys/devices/virtual/mtd/* nodes are no
      longer present ... mostly drivers used on boards I have handy.
      
      Based on a patch from Kay Sievers.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      87f39f04
    • K
      [MTD] driver model updates (part 2) · 694bb7fc
      Kevin Cernekee 提交于
      1) Add more sysfs attributes: flags, size, erasesize, writesize,
         oobsize, numeraseregions, name
      
      2) Move core_initcall() code into init_mtd().  The original approach
         does not work if CONFIG_MTD=m .
      
      3) Add device_unregister() in del_mtd_device() so that devices get
         removed from sysfs as each driver is unloaded.
      Signed-off-by: NKevin Cernekee <kpc.mtd@gmail.com>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      694bb7fc
    • D
      [MTD] driver model updates · 1f24b5a8
      David Brownell 提交于
      Update driver model support in the MTD framework, so it fits
      better into the current udev-based hotplug framework:
      
       - Each mtd_info now has a device node.  MTD drivers should set
         the dev.parent field to point to the physical device, before
         setting up partitions or otherwise declaring MTDs.
      
       - Those device nodes always map to /sys/class/mtdX device nodes,
         which no longer depend on MTD_CHARDEV.
      
       - Those mtdX sysfs nodes have a "starter set" of attributes;
         it's not yet sufficient to replace /proc/mtd.
      
       - Enabling MTD_CHARDEV provides /sys/class/mtdXro/ nodes and the
         /sys/class/mtd*/dev attributes (for udev, mdev, etc).
      
       - Include a MODULE_ALIAS_CHARDEV_MAJOR macro.  It'll work with
         udev creating the /dev/mtd* nodes, not just a static rootfs.
      
      So the sysfs structure is pretty much what you'd expect, except
      that readonly chardev nodes are a bit quirky.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
      1f24b5a8
  2. 03 4月, 2009 3 次提交
  3. 25 3月, 2009 1 次提交
  4. 24 3月, 2009 4 次提交
  5. 23 3月, 2009 2 次提交
  6. 21 3月, 2009 12 次提交
  7. 20 3月, 2009 9 次提交
  8. 13 3月, 2009 1 次提交
  9. 11 3月, 2009 2 次提交
  10. 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
  11. 27 2月, 2009 1 次提交
  12. 17 2月, 2009 1 次提交