diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-02 06:13:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-02 15:04:28 -0500 |
commit | d5f78fb0c8ab7f929f94fa4087a2397ac8d29a30 (patch) | |
tree | 8349eec621c7d3a4ae8a36b9936d9d74a7af6a3d /drivers/scsi/lpfc/lpfc_init.c | |
parent | cc3a1378b4dd45d3e78dd4aeb10641b06a87d614 (diff) |
pci: pci_enable_device_bars() fix for lpfc driver
Based on a patch from Ingo Molnar <mingo@elte.hu> as he pointed out that
I wrongly missed this.
Cc: Ingo Molnar <mingo@elte.hu>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 29b4cf9e059b..6cfeba7454d4 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -1894,7 +1894,7 @@ lpfc_pci_probe_one(struct pci_dev *pdev, const struct pci_device_id *pid) | |||
1894 | uint16_t iotag; | 1894 | uint16_t iotag; |
1895 | int bars = pci_select_bars(pdev, IORESOURCE_MEM); | 1895 | int bars = pci_select_bars(pdev, IORESOURCE_MEM); |
1896 | 1896 | ||
1897 | if (pci_enable_device_bars(pdev, bars)) | 1897 | if (pci_enable_device_mem(pdev)) |
1898 | goto out; | 1898 | goto out; |
1899 | if (pci_request_selected_regions(pdev, bars, LPFC_DRIVER_NAME)) | 1899 | if (pci_request_selected_regions(pdev, bars, LPFC_DRIVER_NAME)) |
1900 | goto out_disable_device; | 1900 | goto out_disable_device; |