mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[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>
This commit is contained in:
1 parent
160e8134cb
commit
27e0aaa9a7
1 file changed
+2
@@ -331,7 +331,9 @@ int xenbus_register_driver_common(struct xenbus_driver *drv,
|
||||
|
||||
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);
|
||||
|
||||