Commit ca78c615 authored by Andrew Morton's avatar Andrew Morton Committed by Adam Belay

[PATCH] make drivers/pnp/interface.c compile

Older compilers require that automatic variable declarations appear at the
start of a block.
parent 5a5ca8c7
......@@ -432,11 +432,12 @@ pnp_set_current_resources(struct device * dmdev, const char * ubuf, size_t count
goto done;
}
if (!strnicmp(buf,"set",3)) {
struct pnp_resource_table res;
int nport = 0, nmem = 0, nirq = 0, ndma = 0;
if (dev->active)
goto done;
buf += 3;
struct pnp_resource_table res;
int nport = 0, nmem = 0, nirq = 0, ndma = 0;
pnp_init_resource_table(&res);
while (1) {
while (isspace(*buf))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment