ia64/xen-unstable

view patches/linux-2.6.16/device_bind.patch @ 9815:d73eeceeae69

Remove CONFIG_X86_SYSENTER option.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian.Campbell@xensource.com
date Fri Apr 21 17:19:26 2006 +0100 (2006-04-21)
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);