Commit 8ea11f7f authored by Konrad Rzeszutek Wilk's avatar Konrad Rzeszutek Wilk

xen/balloon: Move the registration from device to subsystem.

With git commit 07068021
"xen-balloon: convert sysdev_class to a regular subsystem" we would
end up with the attributes being put in:

 /sys/devices/xen_memory0/target_kb
instead of
/sys/devices/system/xen_memory/xen_memory0/target_kb

Making the tools inable to deflate the kernel to make more space
for launching another guest and printing:
Error: Failed to query current memory allocation of dom0
Reported-by: default avatarSander Eikelenboom <linux@eikelenboom.it>
Suggested-by: default avatarKay Sievers <kay.sievers@vrfy.org>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent d3b7737f
......@@ -221,7 +221,7 @@ static int register_balloon(struct device *dev)
{
int i, error;
error = bus_register(&balloon_subsys);
error = subsys_system_register(&balloon_subsys, NULL);
if (error)
return error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment