ia64/xen-unstable

view patches/linux-2.6.16/device_bind.patch @ 9792:75f8e9c4e483

Put back some modules directly in kernel.
ATA_PIIX, PACKET and SECURITY_CAPABILITY are not correctly load on certain
distributions.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author vhanquez@kneesa.uk.xensource.com
date Thu Apr 20 15:45:09 2006 +0100 (2006-04-20)
parents 2c77d26871f7
children
line source
1 --- linux-2.6.16/drivers/base/bus.c 2006-03-16 10:50:20.000000000 -0500
2 +++ linux-2.6.16/drivers/base/bus.c 2006-03-16 11:02:08.000000000 -0500
3 @@ -188,6 +188,11 @@ static ssize_t driver_bind(struct device
4 up(&dev->sem);
5 if (dev->parent)
6 up(&dev->parent->sem);
7 +
8 + if (err > 0) /* success */
9 + err = count;
10 + else if (err == 0) /* driver didn't accept device */
11 + err = -ENODEV;
12 }
13 put_device(dev);
14 put_bus(bus);