diff options
author | Stephen M. Cameron <scameron@beardog.cca.cpqcorp.net> | 2008-07-04 12:59:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-04 13:40:06 -0400 |
commit | 77b96bd7e5ee0b44aed1b77fef5949bc19e8301f (patch) | |
tree | fde7111a9cc7ebbaba74df7214e2a4ec024d011f /drivers/block | |
parent | f93f18cd94626108021c4e681f48d2d99bca5b90 (diff) |
cciss: fix regression that no device nodes are created if no logical drives are configured.
Fix regression in cciss driver that if no logical drives are configured,
no device nodes at all get created.
Signed-off-by: Stephen M. Cameron <scameron@beardog.cca.cpqcorp.net>
Acked-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/cciss.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 5f1e1cc6165..f5521051a8d 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -3546,6 +3546,10 @@ static int __devinit cciss_init_one(struct pci_dev *pdev, | |||
3546 | for (j = 0; j <= hba[i]->highest_lun; j++) | 3546 | for (j = 0; j <= hba[i]->highest_lun; j++) |
3547 | add_disk(hba[i]->gendisk[j]); | 3547 | add_disk(hba[i]->gendisk[j]); |
3548 | 3548 | ||
3549 | /* we must register the controller even if no disks exist */ | ||
3550 | if (hba[i]->highest_lun == -1) | ||
3551 | add_disk(hba[i]->gendisk[0]); | ||
3552 | |||
3549 | return 1; | 3553 | return 1; |
3550 | 3554 | ||
3551 | clean4: | 3555 | clean4: |