aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/i2o/iop.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message/i2o/iop.c')
-rw-r--r--drivers/message/i2o/iop.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/message/i2o/iop.c b/drivers/message/i2o/iop.c
index 15deb45ce995..176fb573ea26 100644
--- a/drivers/message/i2o/iop.c
+++ b/drivers/message/i2o/iop.c
@@ -1243,14 +1243,10 @@ static int __init i2o_iop_init(void)
1243 1243
1244 printk(KERN_INFO OSM_DESCRIPTION " v" OSM_VERSION "\n"); 1244 printk(KERN_INFO OSM_DESCRIPTION " v" OSM_VERSION "\n");
1245 1245
1246 rc = i2o_device_init();
1247 if (rc)
1248 goto exit;
1249
1250 i2o_controller_class = class_create(THIS_MODULE, "i2o_controller"); 1246 i2o_controller_class = class_create(THIS_MODULE, "i2o_controller");
1251 if (IS_ERR(i2o_controller_class)) { 1247 if (IS_ERR(i2o_controller_class)) {
1252 osm_err("can't register class i2o_controller\n"); 1248 osm_err("can't register class i2o_controller\n");
1253 goto device_exit; 1249 goto exit;
1254 } 1250 }
1255 1251
1256 if ((rc = i2o_driver_init())) 1252 if ((rc = i2o_driver_init()))
@@ -1273,9 +1269,6 @@ static int __init i2o_iop_init(void)
1273 class_exit: 1269 class_exit:
1274 class_destroy(i2o_controller_class); 1270 class_destroy(i2o_controller_class);
1275 1271
1276 device_exit:
1277 i2o_device_exit();
1278
1279 exit: 1272 exit:
1280 return rc; 1273 return rc;
1281} 1274}
@@ -1291,7 +1284,6 @@ static void __exit i2o_iop_exit(void)
1291 i2o_exec_exit(); 1284 i2o_exec_exit();
1292 i2o_driver_exit(); 1285 i2o_driver_exit();
1293 class_destroy(i2o_controller_class); 1286 class_destroy(i2o_controller_class);
1294 i2o_device_exit();
1295}; 1287};
1296 1288
1297module_init(i2o_iop_init); 1289module_init(i2o_iop_init);