ia64/xen-unstable

view patches/linux-2.6.16.13/device_bind.patch @ 10570:8dc4af3f192c

[IA64] Implement and use DOM0_DOMAIN_STEUP.

DOM0_GETMEMLIST now reads ptes and use gpfn.
Domain builder reworked: calls DOMAIN_SETUP, setup start_info page.
SAL data are now in domain memory.
is_vti field added in domain.arch.
Many cleanups (indentation, static, warnings).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
author awilliam@xenbuild.aw
date Wed Jul 05 09:28:32 2006 -0600 (2006-07-05)
parents ad5b833122a8
children
line source
1 diff -pruN ../pristine-linux-2.6.16.13/drivers/base/bus.c ./drivers/base/bus.c
2 --- ../pristine-linux-2.6.16.13/drivers/base/bus.c 2006-05-02 22:38:44.000000000 +0100
3 +++ ./drivers/base/bus.c 2006-05-04 17:41:30.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);