Commit 547ac1b0 authored by Patrick Mochel's avatar Patrick Mochel

driver model: fix warning in cpu init.

parent 43593507
...@@ -50,7 +50,7 @@ int __init cpu_dev_init(void) ...@@ -50,7 +50,7 @@ int __init cpu_dev_init(void)
{ {
int error; int error;
if (!(error = devclass_register(&cpu_devclass))) if (!(error = devclass_register(&cpu_devclass)))
if (error = driver_register(&cpu_driver)) if ((error = driver_register(&cpu_driver)))
devclass_unregister(&cpu_devclass); devclass_unregister(&cpu_devclass);
return 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