diff options
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
-rw-r--r-- | drivers/message/fusion/mptbase.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index 22cb0f8b2bcd..635defd25925 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -1458,18 +1458,18 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id) | |||
1458 | struct proc_dir_entry *dent, *ent; | 1458 | struct proc_dir_entry *dent, *ent; |
1459 | #endif | 1459 | #endif |
1460 | 1460 | ||
1461 | if (mpt_debug_level) | ||
1462 | printk(KERN_INFO MYNAM ": mpt_debug_level=%xh\n", mpt_debug_level); | ||
1463 | |||
1464 | if (pci_enable_device(pdev)) | ||
1465 | return r; | ||
1466 | |||
1461 | ioc = kzalloc(sizeof(MPT_ADAPTER), GFP_ATOMIC); | 1467 | ioc = kzalloc(sizeof(MPT_ADAPTER), GFP_ATOMIC); |
1462 | if (ioc == NULL) { | 1468 | if (ioc == NULL) { |
1463 | printk(KERN_ERR MYNAM ": ERROR - Insufficient memory to add adapter!\n"); | 1469 | printk(KERN_ERR MYNAM ": ERROR - Insufficient memory to add adapter!\n"); |
1464 | return -ENOMEM; | 1470 | return -ENOMEM; |
1465 | } | 1471 | } |
1466 | |||
1467 | ioc->debug_level = mpt_debug_level; | 1472 | ioc->debug_level = mpt_debug_level; |
1468 | if (mpt_debug_level) | ||
1469 | printk(KERN_INFO MYNAM ": mpt_debug_level=%xh\n", mpt_debug_level); | ||
1470 | |||
1471 | if (pci_enable_device(pdev)) | ||
1472 | return r; | ||
1473 | 1473 | ||
1474 | dinitprintk(ioc, printk(KERN_WARNING MYNAM ": mpt_adapter_install\n")); | 1474 | dinitprintk(ioc, printk(KERN_WARNING MYNAM ": mpt_adapter_install\n")); |
1475 | 1475 | ||
@@ -1478,6 +1478,7 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id) | |||
1478 | ": 64 BIT PCI BUS DMA ADDRESSING SUPPORTED\n")); | 1478 | ": 64 BIT PCI BUS DMA ADDRESSING SUPPORTED\n")); |
1479 | } else if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { | 1479 | } else if (pci_set_dma_mask(pdev, DMA_32BIT_MASK)) { |
1480 | printk(KERN_WARNING MYNAM ": 32 BIT PCI BUS DMA ADDRESSING NOT SUPPORTED\n"); | 1480 | printk(KERN_WARNING MYNAM ": 32 BIT PCI BUS DMA ADDRESSING NOT SUPPORTED\n"); |
1481 | kfree(ioc); | ||
1481 | return r; | 1482 | return r; |
1482 | } | 1483 | } |
1483 | 1484 | ||