diff options
-rw-r--r-- | block/genhd.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/block/genhd.c b/block/genhd.c index 25d1f42568cc..653919d50cd4 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
@@ -295,10 +295,15 @@ static struct kobject *base_probe(dev_t dev, int *part, void *data) | |||
295 | 295 | ||
296 | static int __init genhd_device_init(void) | 296 | static int __init genhd_device_init(void) |
297 | { | 297 | { |
298 | int err; | ||
299 | |||
298 | bdev_map = kobj_map_init(base_probe, &block_subsys_lock); | 300 | bdev_map = kobj_map_init(base_probe, &block_subsys_lock); |
299 | blk_dev_init(); | 301 | blk_dev_init(); |
300 | subsystem_register(&block_subsys); | 302 | err = subsystem_register(&block_subsys); |
301 | return 0; | 303 | if (err < 0) |
304 | printk(KERN_WARNING "%s: subsystem_register error: %d\n", | ||
305 | __FUNCTION__, err); | ||
306 | return err; | ||
302 | } | 307 | } |
303 | 308 | ||
304 | subsys_initcall(genhd_device_init); | 309 | subsys_initcall(genhd_device_init); |