Skip to content

Commit d9d005c

Browse files
hkallweitbjorn-helgaas
authored andcommitted
ata: pata_cs5520: Remove unnecessary call to pci_enable_device_io()
A few lines earlier pcim_enable_device() is called, which includes the functionality of pci_enable_device_io(). Therefore we can safely remove the call to pci_enable_device_io(). Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Sergey Shtylyov <[email protected]> Acked-by: Damien Le Moal <[email protected]>
1 parent d41abe0 commit d9d005c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/ata/pata_cs5520.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,6 @@ static int cs5520_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
151151
if (!host)
152152
return -ENOMEM;
153153

154-
/* Perform set up for DMA */
155-
if (pci_enable_device_io(pdev)) {
156-
dev_err(&pdev->dev, "unable to configure BAR2.\n");
157-
return -ENODEV;
158-
}
159-
160154
if (dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32))) {
161155
dev_err(&pdev->dev, "unable to configure DMA mask.\n");
162156
return -ENODEV;

0 commit comments

Comments
 (0)