xen: simplify sysctl registration for balloon
[sfrench/cifs-2.6.git] / drivers / xen / balloon.c
index 617a7f4f07a807e446adde5b2369088e4b65dba3..586a1673459eb7ae6cb3eff60a901cf1459e722d 100644 (file)
@@ -97,24 +97,6 @@ static struct ctl_table balloon_table[] = {
        { }
 };
 
-static struct ctl_table balloon_root[] = {
-       {
-               .procname       = "balloon",
-               .mode           = 0555,
-               .child          = balloon_table,
-       },
-       { }
-};
-
-static struct ctl_table xen_root[] = {
-       {
-               .procname       = "xen",
-               .mode           = 0555,
-               .child          = balloon_root,
-       },
-       { }
-};
-
 #else
 #define xen_hotplug_unpopulated 0
 #endif
@@ -747,7 +729,7 @@ static int __init balloon_init(void)
 #ifdef CONFIG_XEN_BALLOON_MEMORY_HOTPLUG
        set_online_page_callback(&xen_online_page);
        register_memory_notifier(&xen_memory_nb);
-       register_sysctl_table(xen_root);
+       register_sysctl_init("xen/balloon", balloon_table);
 #endif
 
        balloon_add_regions();