bsg: fix initialization error handling bugs
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 17 Jul 2007 10:20:46 +0000 (12:20 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 17 Jul 2007 10:20:46 +0000 (12:20 +0200)
commit9b9f770cef0037fd0e4d623f31ddfa8acda38205
treea0b8937223df1e5a519375d1fa797157b4a930a2
parent5cdf7f7678493996a835ef2e627976de8f9d1f40
bsg: fix initialization error handling bugs

This fixes the following bugs and cleans up the initialization code:

- cdev_del is missing.
- unregister_chrdev_region should be used instead of unregister_chrdev.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/bsg.c