Skip to content

Commit 79e44c9

Browse files
Roger Quadrostmlind
authored andcommitted
OMAP: Remove omap boot parsing code
Remove left over code for parsing omap boot tags. This is no longer used. see commit fc0ef1b Signed-off-by: Roger Quadros <ext-roger.quadros@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 15ac408 commit 79e44c9

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

arch/arm/plat-omap/common.c

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -54,50 +54,6 @@ static const void *get_config(u16 tag, size_t len, int skip, size_t *len_out)
5454
struct omap_board_config_kernel *kinfo = NULL;
5555
int i;
5656

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
10157
/* Try to find the config from the board-specific structures
10258
* in the kernel. */
10359
for (i = 0; i < omap_board_config_size; i++) {

0 commit comments

Comments
 (0)