Commit dcb28a19 authored by Patrick Mochel's avatar Patrick Mochel

make sure cpu class is registered before cpu driver.

This way, we make sure the driver gets added to the class's list
and is exported correctly in sysfs.
parent cfdcdb64
......@@ -48,7 +48,7 @@ int __init register_cpu(struct cpu *cpu, int num, struct node *root)
static int __init register_cpu_type(void)
{
driver_register(&cpu_driver);
return devclass_register(&cpu_devclass);
devclass_register(&cpu_devclass);
return driver_register(&cpu_driver);
}
postcore_initcall(register_cpu_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