aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7/files
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-09-11 06:32:05 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-09-11 06:32:05 +0000
commitba9fafe6eb1d3edc7031180216996e694e3c3c46 (patch)
tree25dedfa268cc270b18d1d039a4c36c6b3ead21a3 /target/linux/ar7/files
parent986445a6231c1c8d5802b5ca726c9ca2ef9878fe (diff)
downloadupstream-ba9fafe6eb1d3edc7031180216996e694e3c3c46.tar.gz
upstream-ba9fafe6eb1d3edc7031180216996e694e3c3c46.tar.bz2
upstream-ba9fafe6eb1d3edc7031180216996e694e3c3c46.zip
Fix comments to the mtd driver (see http://www.linux-mips.org/archives/linux-mips/2007-09/msg00064.html)
SVN-Revision: 8738
Diffstat (limited to 'target/linux/ar7/files')
-rw-r--r--target/linux/ar7/files/drivers/mtd/ar7part.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/target/linux/ar7/files/drivers/mtd/ar7part.c b/target/linux/ar7/files/drivers/mtd/ar7part.c
index 587bb31bb2..bb121b4133 100644
--- a/target/linux/ar7/files/drivers/mtd/ar7part.c
+++ b/target/linux/ar7/files/drivers/mtd/ar7part.c
@@ -1,7 +1,5 @@
/*
- * $Id$
- *
- * Copyright (C) 2007 OpenWrt.org
+ * Copyright (C) 2007 Eugene Konev <ejka@openwrt.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,7 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* TI AR7 flash partition table.
- * Based on ar7 map by Felix Fietkau.
+ * Based on ar7 map by Felix Fietkau <nbd@openwrt.org>
*
*/
@@ -45,10 +43,11 @@ static int create_mtd_partitions(struct mtd_info *master,
struct ar7_bin_rec header;
unsigned int offset, len;
unsigned int pre_size = master->erasesize, post_size = 0,
- root_offset = 0xe0000;
+ unsigned int root_offset = 0xe0000;
+
int retries = 10;
- printk("Parsing AR7 partition map...\n");
+ printk(KERN_INFO "Parsing AR7 partition map...\n");
ar7_parts[0].name = "loader";
ar7_parts[0].offset = 0;
@@ -98,7 +97,7 @@ static int create_mtd_partitions(struct mtd_info *master,
root_offset &= ~(u32)0xff;
break;
default:
- printk("Unknown magic: %08x\n", header.checksum);
+ printk(KERN_WARNING "Unknown magic: %08x\n", header.checksum);
break;
}
@@ -136,5 +135,5 @@ static int __init ar7_parser_init(void)
module_init(ar7_parser_init);
MODULE_LICENSE("GPL");
-MODULE_AUTHOR("Felix Fietkau, Eugene Konev");
+MODULE_AUTHOR("Felix Fietkau <nbd@openwrt.org>, Eugene Konev <ejka@openwrt.org>");
MODULE_DESCRIPTION("MTD partitioning for TI AR7");