summaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-3.3/201-owrt-mtd_split.patch
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-05-15 09:38:05 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-05-15 09:38:05 +0000
commit6a54667829c56e3d1262adefa790f98bf9f3650a (patch)
treee6e36d814f158ca262853601a794432b4afd99ea /target/linux/lantiq/patches-3.3/201-owrt-mtd_split.patch
parent993c2e232f02674049af8d54e70ac8e3dad6bee0 (diff)
[lantiq] code style cleanup of the mach files
Signed-off-by: Luka Perkov <openwrt@lukaperkov.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31735 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches-3.3/201-owrt-mtd_split.patch')
-rw-r--r--target/linux/lantiq/patches-3.3/201-owrt-mtd_split.patch15
1 files changed, 6 insertions, 9 deletions
diff --git a/target/linux/lantiq/patches-3.3/201-owrt-mtd_split.patch b/target/linux/lantiq/patches-3.3/201-owrt-mtd_split.patch
index 5883d2a63..91069da81 100644
--- a/target/linux/lantiq/patches-3.3/201-owrt-mtd_split.patch
+++ b/target/linux/lantiq/patches-3.3/201-owrt-mtd_split.patch
@@ -13,11 +13,10 @@
---help---
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
-@@ -867,6 +867,169 @@ static int refresh_rootfs_split(struct m
+@@ -867,6 +867,168 @@ static int refresh_rootfs_split(struct m
}
#endif /* CONFIG_MTD_ROOTFS_SPLIT */
-+
+#ifdef CONFIG_MTD_UIMAGE_SPLIT
+static unsigned long find_uimage_size(struct mtd_info *mtd,
+ unsigned long offset)
@@ -98,7 +97,7 @@
+}
+
+static unsigned long find_brnimage_size(struct mtd_info *mtd,
-+ unsigned long offset)
++ unsigned long offset)
+{
+ unsigned long buf[4];
+ // Assume at most 2MB of kernel image
@@ -183,7 +182,7 @@
/*
* This function, given a master MTD object and a partition table, creates
* and registers slave MTD objects which are bound to the master according to
-@@ -883,7 +1046,7 @@ int add_mtd_partitions(struct mtd_info *
+@@ -883,7 +1045,7 @@ int add_mtd_partitions(struct mtd_info *
struct mtd_part *slave;
uint64_t cur_offset = 0;
int i;
@@ -192,7 +191,7 @@
int ret;
#endif
-@@ -900,6 +1063,17 @@ int add_mtd_partitions(struct mtd_info *
+@@ -900,6 +1062,15 @@ int add_mtd_partitions(struct mtd_info *
add_mtd_device(&slave->mtd);
@@ -200,10 +199,8 @@
+ if (!strcmp(parts[i].name, "linux")) {
+ ret = split_uimage(master, &parts[i]);
+
-+ if (ret) {
-+ printk(KERN_WARNING
-+ "Can't split linux partition\n");
-+ }
++ if (ret)
++ printk(KERN_WARNING "Can't split linux partition\n");
+ }
+#endif
+