[MTD] driver model updates (part 2)
authorKevin Cernekee <kpc.mtd@gmail.com>
Fri, 3 Apr 2009 20:00:45 +0000 (13:00 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 4 Apr 2009 13:32:39 +0000 (14:32 +0100)
commit694bb7fc19c6b87e106f4c85a2707072e2f111a0
tree7c5e2f4cfbe89fee0779b8d7d92b51a84a276747
parent1f24b5a8ecbb2a3c7080f418974d40e3ffedb221
[MTD] driver model updates (part 2)

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: Kevin Cernekee <kpc.mtd@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdcore.c