diff options
author | Eugene Konev <ejka@imfi.kspu.ru> | 2007-03-25 05:42:16 +0000 |
---|---|---|
committer | Eugene Konev <ejka@imfi.kspu.ru> | 2007-03-25 05:42:16 +0000 |
commit | d81c7f76b91ad14244f1e036f29c806d85db5809 (patch) | |
tree | 6615342c2c9af5a280d19ee6482b379de367b8ef /target/linux/ar7-2.6/files/drivers/mtd/ar7part.c | |
parent | 8c2cf394a32d42ff64605fdfb3168ce745f94b44 (diff) | |
download | mtk-20170518-d81c7f76b91ad14244f1e036f29c806d85db5809.zip mtk-20170518-d81c7f76b91ad14244f1e036f29c806d85db5809.tar.gz mtk-20170518-d81c7f76b91ad14244f1e036f29c806d85db5809.tar.bz2 |
ar7: clocks setup (prerequisite for dsl/usb) and misc cleanups.
SVN-Revision: 6693
Diffstat (limited to 'target/linux/ar7-2.6/files/drivers/mtd/ar7part.c')
-rw-r--r-- | target/linux/ar7-2.6/files/drivers/mtd/ar7part.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/ar7-2.6/files/drivers/mtd/ar7part.c b/target/linux/ar7-2.6/files/drivers/mtd/ar7part.c index 2b3edf6..0ae96a3 100644 --- a/target/linux/ar7-2.6/files/drivers/mtd/ar7part.c +++ b/target/linux/ar7-2.6/files/drivers/mtd/ar7part.c @@ -29,6 +29,7 @@ #include <linux/mtd/partitions.h> #include <linux/bootmem.h> #include <linux/squashfs_fs.h> +#include <linux/root_dev.h> struct ar7_bin_rec { unsigned int checksum; @@ -108,6 +109,7 @@ static int create_mtd_partitions(struct mtd_info *master, ar7_parts[p - 1].size -= ar7_parts[p].size; ar7_parts[p - 1].mask_flags |= MTD_WRITEABLE; ar7_parts[p++].mask_flags = 0; + ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, p - 1); } else { printk("Squashfs not found. Moving rootfs partition to next erase block\n"); if ((root_offset % master->erasesize) > 0) @@ -116,6 +118,7 @@ static int create_mtd_partitions(struct mtd_info *master, ar7_parts[p].offset = root_offset; ar7_parts[p].size = master->size - root_offset - post_size; + ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, p); } *pparts = ar7_parts; return p; |