ia64/xen-unstable

changeset 11979:8102ccad440d

[LINUX] PV-on-HVM: Only initialize the owner field of struct
device_driver on kernels from 2.6.10 onward. The field was not
available until then.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
author Ian Campbell <ian.campbell@xensource.com>
date Wed Oct 25 13:58:30 2006 +0100 (2006-10-25)
parents 40107f658bd9
children a0919d3f7d50
files linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Wed Oct 25 13:58:30 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Wed Oct 25 13:58:30 2006 +0100
     1.3 @@ -331,7 +331,9 @@ int xenbus_register_driver_common(struct
     1.4  
     1.5  	drv->driver.name = drv->name;
     1.6  	drv->driver.bus = &bus->bus;
     1.7 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
     1.8  	drv->driver.owner = drv->owner;
     1.9 +#endif
    1.10  
    1.11  	mutex_lock(&xenwatch_mutex);
    1.12  	ret = driver_register(&drv->driver);