diff options
author | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2013-11-05 12:37:02 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-11-08 09:10:30 -0700 |
commit | b8df6647c248db457f1c2fb4f0f6350beaf16f9e (patch) | |
tree | abe07e5b81ddf74d9f48eec03995a3524001713a /drivers/pinctrl/pinctrl-tegra20.c | |
parent | fbed149ab328b72f501a3344ab4f20f712c63392 (diff) | |
download | op-kernel-dev-b8df6647c248db457f1c2fb4f0f6350beaf16f9e.zip op-kernel-dev-b8df6647c248db457f1c2fb4f0f6350beaf16f9e.tar.gz |
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 <abhansali@stec-inc.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/pinctrl/pinctrl-tegra20.c')
0 files changed, 0 insertions, 0 deletions