27 lines
1007 B
Diff
27 lines
1007 B
Diff
# HG changeset patch
|
|
# User Ian Campbell <ian.campbell@xensource.com>
|
|
# Date Wed Oct 25 13:58:30 2006 +0100
|
|
# Node ID 8102ccad440d3218a179e45c296e328aba564983
|
|
# parent: 40107f658bd984190e14746f25dac750badf4d8c
|
|
[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>
|
|
|
|
--- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c Wed Oct 25 13:58:30 2006 +0100
|
|
+++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c Wed Oct 25 13:58:30 2006 +0100
|
|
@@ -331,7 +331,9 @@ int xenbus_register_driver_common(struct
|
|
|
|
drv->driver.name = drv->name;
|
|
drv->driver.bus = &bus->bus;
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
|
|
drv->driver.owner = drv->owner;
|
|
+#endif
|
|
|
|
mutex_lock(&xenwatch_mutex);
|
|
ret = driver_register(&drv->driver);
|
|
|