Commit fdb47bc6 authored by Patrick Mochel's avatar Patrick Mochel

NUMA: make sure that the node device class is registered before the node driver.

This fixes an Oops on boot on NUMA systems, since the driver tries to access the 
device class when it's registered. 
parent b26ca10f
......@@ -93,7 +93,7 @@ int __init register_node(struct node *node, int num, struct node *parent)
static int __init register_node_type(void)
{
driver_register(&node_driver);
return devclass_register(&node_devclass);
devclass_register(&node_devclass);
return driver_register(&node_driver);
}
postcore_initcall(register_node_type);
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