--- diag.c 2006-12-26 19:48:46.768991192 +0100 +++ diag.c.ori 2006-12-26 13:51:53.000000000 +0100 @@ -88,9 +88,6 @@ /* Trendware */ TEW411BRPP, - - /* end marker */ - THE_END, }; static struct platform_t __init platforms[] = { @@ -337,7 +334,7 @@ [SE505V2] = { .name = "Siemens SE505 V2", .buttons = { - { .name = "reset", .gpio = 1 << 7 }, + /* No usable buttons */ }, .leds = { { .name = "power", .gpio = 1 << 5, .polarity = REVERSE }, @@ -437,22 +434,11 @@ static struct platform_t __init *platform_detect(void) { - char *boardnum, *boardtype, *buf; + char *boardnum, *boardtype, *buf; - boardnum = getvar("boardnum"); + boardnum = getvar("boardnum"); boardtype = getvar("boardtype"); - - if (strlen(getvar("diag_enum"))) - { - unsigned long ulDiagEnum = simple_strtoul(getvar("diag_enum"), NULL, 0); - if ( ulDiagEnum >=0 && ulDiagEnum < THE_END ) - { - printk(MODULE_NAME ": Override: %s.\n", platforms[ulDiagEnum].name); - return &platforms[ulDiagEnum]; - } - } - - if (strncmp(getvar("pmon_ver"), "CFE", 3) == 0) { + if (strncmp(getvar("pmon_ver"), "CFE", 3) == 0) { /* CFE based - newer hardware */ if (!strcmp(boardnum, "42")) { /* Linksys */ if (!strcmp(boardtype, "0x0101") && !strcmp(getvar("boot_ver"), "v3.6"))