diff options
Diffstat (limited to 'drivers/parport/probe.c')
-rw-r--r-- | drivers/parport/probe.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/parport/probe.c b/drivers/parport/probe.c index 9ab6d97e2..eb94af448 100644 --- a/drivers/parport/probe.c +++ b/drivers/parport/probe.c @@ -72,8 +72,12 @@ static void parse_data(struct parport *port, int device, char *str) if (q) *q = 0; sep = strchr(p, ':'); if (sep) { - char *u = p; + char *u; *(sep++) = 0; + /* Get rid of trailing blanks */ + u = strchr (sep, ' '); + if (u) *u = '\0'; + u = p; while (*u) { *u = toupper(*u); u++; |