Skip to contentSkip to conversation

omap-hw: Fix build

PATCH In review Arnaud Patard (Rtp) 2 participants 2 messages Feb 1, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 omap-hw: Fix build

Hi,

The n800 patches are renaming a struct and a atag name which is used in the omap-hw driver without updating it. This patch does it.

---

---
drivers/mtd/nand/omap-hw.c | 4 2 + 2 - 0 !

 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/nand/omap-hw.c +2 -2
Index: linux-omap-2.6/drivers/mtd/nand/omap-hw.c
===================================================================
@@ -669,12 +669,12 @@ static int __init add_dynamic_parts(stru
 {
 	static const char *part_parsers[] = { "cmdlinepart", NULL };
 	struct mtd_partition *parts;
-	const struct omap_flash_part_config *cfg;
+	const struct omap_flash_part_str_config *cfg;
 	char *part_str = NULL;
 	size_t part_str_len;
 	int c;
 
-	cfg = omap_get_var_config(OMAP_TAG_FLASH_PART, &part_str_len);
+	cfg = omap_get_var_config(OMAP_TAG_FLASH_PART_STR, &part_str_len);
 	if (cfg != NULL) {
 		part_str = kmalloc(part_str_len + 1, GFP_KERNEL);
 		if (part_str == NULL)
#1 lore raw
Quoted 22 lines · Arnaud Patard

Hi,

The n800 patches are renaming a struct and a atag name which is used in the omap-hw driver without updating it. This patch does it.

---

---
drivers/mtd/nand/omap-hw.c | 4 2 + 2 - 0 !

 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-omap-2.6/drivers/mtd/nand/omap-hw.c
===================================================================

drivers/mtd/nand/omap-hw.c +0 -1
@@ -669,12 +669,12 @@ static int __init add_dynamic_parts(stru
 {
 	static const char *part_parsers[] = { "cmdlinepart", NULL };
 	struct mtd_partition *parts;
-	const struct omap_flash_part_config *cfg;

drivers/mtd/nand/omap-hw.c static int __init add_dynamic_parts(stru · line 680

Quoted 10 lines
drivers/mtd/nand/omap-hw.c +2 -1
+	const struct omap_flash_part_str_config *cfg;
 	char *part_str = NULL;
 	size_t part_str_len;
 	int c;
 
-	cfg = omap_get_var_config(OMAP_TAG_FLASH_PART, &part_str_len);
+	cfg = omap_get_var_config(OMAP_TAG_FLASH_PART_STR, &part_str_len);
 	if (cfg != NULL) {
 		part_str = kmalloc(part_str_len + 1, GFP_KERNEL);
 		if (part_str == NULL)

Pushing today.

Tony