From 310f485585f6a814bccca84b23b14b4930a20d7f Mon Sep 17 00:00:00 2001
From: Julien Grall <julien.grall@linaro.org>
Date: Fri, 6 Jun 2014 16:47:36 +0100
Subject: [PATCH 4/5] HACK: xen/xenpv: Attach xenpv to ofwbus

ofwbus handle itself the device memory. If privcmd want to allocate memory
it will try in the wrong address space.

TODO: ofwbus should let the next handle resource management
---
 sys/dev/xen/xenpv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/xen/xenpv.c b/sys/dev/xen/xenpv.c
index fc732d8..b600a25 100644
--- a/sys/dev/xen/xenpv.c
+++ b/sys/dev/xen/xenpv.c
@@ -216,4 +216,4 @@ static driver_t xenpv_driver = {
 	0,
 };
 
-DRIVER_MODULE(xenpv, nexus, xenpv_driver, xenpv_devclass, 0, 0);
+DRIVER_MODULE(xenpv, ofwbus, xenpv_driver, xenpv_devclass, 0, 0);
-- 
2.1.0

