diff options
author | Roger Quadros <ext-roger.quadros@nokia.com> | 2009-08-28 13:51:35 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-08-28 13:51:35 -0400 |
commit | 79e44c952cec025295b3f0fd0ff2a875689b98c4 (patch) | |
tree | 321ccec9b82314237515fc417288d020ef77bf4c | |
parent | 15ac408ee5a509053a765b816e9179515329369f (diff) |
OMAP: Remove omap boot parsing code
Remove left over code for parsing omap boot tags. This is
no longer used.
see commit fc0ef1bfa1353e048e055374a09c75320d22231b
Signed-off-by: Roger Quadros <ext-roger.quadros@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/plat-omap/common.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c index f37a29acc367..a6fa786019c8 100644 --- a/arch/arm/plat-omap/common.c +++ b/arch/arm/plat-omap/common.c | |||
@@ -54,50 +54,6 @@ static const void *get_config(u16 tag, size_t len, int skip, size_t *len_out) | |||
54 | struct omap_board_config_kernel *kinfo = NULL; | 54 | struct omap_board_config_kernel *kinfo = NULL; |
55 | int i; | 55 | int i; |
56 | 56 | ||
57 | #ifdef CONFIG_OMAP_BOOT_TAG | ||
58 | struct omap_board_config_entry *info = NULL; | ||
59 | |||
60 | if (omap_bootloader_tag_len > 4) | ||
61 | info = (struct omap_board_config_entry *) omap_bootloader_tag; | ||
62 | while (info != NULL) { | ||
63 | u8 *next; | ||
64 | |||
65 | if (info->tag == tag) { | ||
66 | if (skip == 0) | ||
67 | break; | ||
68 | skip--; | ||
69 | } | ||
70 | |||
71 | if ((info->len & 0x03) != 0) { | ||
72 | /* We bail out to avoid an alignment fault */ | ||
73 | printk(KERN_ERR "OMAP peripheral config: Length (%d) not word-aligned (tag %04x)\n", | ||
74 | info->len, info->tag); | ||
75 | return NULL; | ||
76 | } | ||
77 | next = (u8 *) info + sizeof(*info) + info->len; | ||
78 | if (next >= omap_bootloader_tag + omap_bootloader_tag_len) | ||
79 | info = NULL; | ||
80 | else | ||
81 | info = (struct omap_board_config_entry *) next; | ||
82 | } | ||
83 | if (info != NULL) { | ||
84 | /* Check the length as a lame attempt to check for | ||
85 | * binary inconsistency. */ | ||
86 | if (len != NO_LENGTH_CHECK) { | ||
87 | /* Word-align len */ | ||
88 | if (len & 0x03) | ||
89 | len = (len + 3) & ~0x03; | ||
90 | if (info->len != len) { | ||
91 | printk(KERN_ERR "OMAP peripheral config: Length mismatch with tag %x (want %d, got %d)\n", | ||
92 | tag, len, info->len); | ||
93 | return NULL; | ||
94 | } | ||
95 | } | ||
96 | if (len_out != NULL) | ||
97 | *len_out = info->len; | ||
98 | return info->data; | ||
99 | } | ||
100 | #endif | ||
101 | /* Try to find the config from the board-specific structures | 57 | /* Try to find the config from the board-specific structures |
102 | * in the kernel. */ | 58 | * in the kernel. */ |
103 | for (i = 0; i < omap_board_config_size; i++) { | 59 | for (i = 0; i < omap_board_config_size; i++) { |