ia64/xen-unstable

view patches/linux-2.6.16.29/device_bind.patch @ 12273:b223ba940ed1

PV-on-HVM: Fix PV-on-HVM drivers need maddr.h included for defn of maddr_t.
Signed-off-by: Takanori Kasai <Kasai.Takanori@jp.fujitsu.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Tue Nov 07 09:29:53 2006 +0000 (2006-11-07)
parents 041be3f6b38e
children
line source
1 diff -pruN ../orig-linux-2.6.16.29/drivers/base/bus.c ./drivers/base/bus.c
2 --- ../orig-linux-2.6.16.29/drivers/base/bus.c 2006-09-12 19:02:10.000000000 +0100
3 +++ ./drivers/base/bus.c 2006-09-19 13:58:54.000000000 +0100
4 @@ -188,6 +188,11 @@ static ssize_t driver_bind(struct device
5 up(&dev->sem);
6 if (dev->parent)
7 up(&dev->parent->sem);
8 +
9 + if (err > 0) /* success */
10 + err = count;
11 + else if (err == 0) /* driver didn't accept device */
12 + err = -ENODEV;
13 }
14 put_device(dev);
15 put_bus(bus);