[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:
Ian Campbell committed 2006-10-25 13:58:30 +01:00
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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.