-
由 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