[MTD] Remove references to ROOT_DEV from map drivers.

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Jun 28 15:59:01 EDT 2007


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=4854b75c7795604ea6a0b6b7f549f145813343d0
Commit:     4854b75c7795604ea6a0b6b7f549f145813343d0
Parent:     e716dd3644c2a79d6ffa4359bac06f57479dcb34
Author:     David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Thu Jun 28 20:13:27 2007 +0100
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Thu Jun 28 20:13:27 2007 +0100

    [MTD] Remove references to ROOT_DEV from map drivers.
    
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/maps/nettel.c         |    4 ----
 drivers/mtd/maps/pmcmsp-ramroot.c |    1 -
 2 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/drivers/mtd/maps/nettel.c b/drivers/mtd/maps/nettel.c
index 7b96cd0..8852562 100644
--- a/drivers/mtd/maps/nettel.c
+++ b/drivers/mtd/maps/nettel.c
@@ -421,10 +421,6 @@ int __init nettel_init(void)
 
 	intel_mtd->owner = THIS_MODULE;
 
-#ifndef CONFIG_BLK_DEV_INITRD
-	ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, 1);
-#endif
-
 	num_intel_partitions = sizeof(nettel_intel_partitions) /
 		sizeof(nettel_intel_partitions[0]);
 
diff --git a/drivers/mtd/maps/pmcmsp-ramroot.c b/drivers/mtd/maps/pmcmsp-ramroot.c
index 18049bc..30de5c0 100644
--- a/drivers/mtd/maps/pmcmsp-ramroot.c
+++ b/drivers/mtd/maps/pmcmsp-ramroot.c
@@ -79,7 +79,6 @@ static int __init init_rrmap(void)
 		rr_mtd->owner = THIS_MODULE;
 
 		add_mtd_device(rr_mtd);
-		ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, rr_mtd->index);
 
 		return 0;
 	}



More information about the linux-mtd-cvs mailing list