int __init platform_bus_init(void) { int error; early_platform_cleanup();
error = device_register(&platform_bus); if (error) return error;
error = bus_register(&platform_bus_type); if (error) device_unregister(&platform_bus);
return error; }