Skip to content

Commit

Permalink
xen/balloon: Move the registration from device to subsystem.
Browse files Browse the repository at this point in the history
With git commit 0706802
"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: Sander Eikelenboom <[email protected]>
Suggested-by:  Kay Sievers <[email protected]>
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
  • Loading branch information
konradwilk committed Jan 12, 2012
1 parent d3b7737 commit 8ea11f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/xen/xen-balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8ea11f7

Please sign in to comment.