aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Heiner Kallweit <hkallweit1@gmail.com> 2024-03-23 18:14:45 +0100
committerGravatar Bjorn Helgaas <bhelgaas@google.com> 2024-05-16 14:35:08 -0500
commitd9d005c89451e2690b9d6511a35a8a9d5e3a7d76 (patch)
treef9eaf3da775c9cb14528a4ba2b170f19db2ea63b
parentPCI: Update pci_find_capability() stub return types (diff)
downloadlinux-d9d005c89451e2690b9d6511a35a8a9d5e3a7d76.tar.gz
linux-d9d005c89451e2690b9d6511a35a8a9d5e3a7d76.tar.bz2
linux-d9d005c89451e2690b9d6511a35a8a9d5e3a7d76.zip
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/5068d0ce-2140-4d3f-b305-e8f0d61eed1f@gmail.com Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru> Acked-by: Damien Le Moal <dlemoal@kernel.org>
-rw-r--r--drivers/ata/pata_cs5520.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/ata/pata_cs5520.c b/drivers/ata/pata_cs5520.c
index 38795508c2e9..027cf67101ef 100644
--- a/drivers/ata/pata_cs5520.c
+++ b/drivers/ata/pata_cs5520.c
@@ -151,12 +151,6 @@ static int cs5520_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
if (!host)
return -ENOMEM;
- /* Perform set up for DMA */
- if (pci_enable_device_io(pdev)) {
- dev_err(&pdev->dev, "unable to configure BAR2.\n");
- return -ENODEV;
- }
-
if (dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32))) {
dev_err(&pdev->dev, "unable to configure DMA mask.\n");
return -ENODEV;