Commit d73cc934 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

PCI: remove pci_present() from drivers/scsi/qla1280.c

parent 798110e6
...@@ -360,7 +360,6 @@ static inline uint16_t qla1280_addr48_63(dma_addr_t dma) ...@@ -360,7 +360,6 @@ static inline uint16_t qla1280_addr48_63(dma_addr_t dma)
*/ */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0) #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0)
#define pci_set_dma_mask(dev, mask) dev->dma_mask = mask; #define pci_set_dma_mask(dev, mask) dev->dma_mask = mask;
#define pci_present() pcibios_present()
#define pci_enable_device(pdev) 0 #define pci_enable_device(pdev) 0
#define pci_find_subsys(id, dev, sid, sdev, pdev) pci_find_device(id,dev,pdev) #define pci_find_subsys(id, dev, sid, sdev, pdev) pci_find_device(id,dev,pdev)
#define scsi_set_pci_device(host, pdev) #define scsi_set_pci_device(host, pdev)
...@@ -1009,11 +1008,6 @@ qla1280_detect(Scsi_Host_Template * template) ...@@ -1009,11 +1008,6 @@ qla1280_detect(Scsi_Host_Template * template)
"qla1280: insmod or else it might trash certain memory areas.\n"); "qla1280: insmod or else it might trash certain memory areas.\n");
#endif #endif
if (!pci_present()) {
printk(KERN_INFO "scsi: PCI not present\n");
return 0;
}
bdp = &ql1280_board_tbl[0]; bdp = &ql1280_board_tbl[0];
qla1280_hostlist = NULL; qla1280_hostlist = NULL;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,18) #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,18)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment