diff options
author | Bartlomiej Zolnierkiewicz <[email protected]> | 2013-11-05 12:37:02 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2013-11-08 09:10:30 -0700 |
commit | b8df6647c248db457f1c2fb4f0f6350beaf16f9e (patch) | |
tree | abe07e5b81ddf74d9f48eec03995a3524001713a /lib/mpi/mpi-internal.h | |
parent | fbed149ab328b72f501a3344ab4f20f712c63392 (diff) |
skd: register block device only if some devices are present
Register block device in skd_pci_probe() instead of in skd_init() so it
is registered only if some devices are present (currently it is always
registered when the driver is loaded). Please note that this change
depends on the fact that register_blkdev(0, ...) never returns 0.
Cc: Akhil Bhansali <[email protected]>
Cc: Jeff Moyer <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions