Commit 81b0a2f5 authored by Linus Torvalds's avatar Linus Torvalds

Merge bk://ldm.bkbits.net/linux-2.5-core

into home.transmeta.com:/home/torvalds/v2.5/linux
parents 95c45597 a0424fb7
...@@ -96,7 +96,7 @@ static void attach(struct device * dev) ...@@ -96,7 +96,7 @@ static void attach(struct device * dev)
static int bus_match(struct device * dev, struct device_driver * drv) static int bus_match(struct device * dev, struct device_driver * drv)
{ {
int error = 0; int error = -ENODEV;
if (dev->bus->match(dev,drv)) { if (dev->bus->match(dev,drv)) {
dev->driver = drv; dev->driver = drv;
if (drv->probe) { if (drv->probe) {
...@@ -104,7 +104,8 @@ static int bus_match(struct device * dev, struct device_driver * drv) ...@@ -104,7 +104,8 @@ static int bus_match(struct device * dev, struct device_driver * drv)
attach(dev); attach(dev);
else else
dev->driver = NULL; dev->driver = NULL;
} } else
attach(dev);
} }
return error; return error;
} }
......
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