Skip to content

Commit 844177a

Browse files
hkallweitbjorn-helgaas
authored andcommitted
PCI: Remove unused pci_enable_device_io()
After the last user was removed, remove this PCI core function. It's very unlikely that we'll see a new device requiring io space access, even though memory space access is supported. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Damien Le Moal <[email protected]>
1 parent d9d005c commit 844177a

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

drivers/pci/pci.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,20 +2110,6 @@ static int pci_enable_device_flags(struct pci_dev *dev, unsigned long flags)
21102110
return err;
21112111
}
21122112

2113-
/**
2114-
* pci_enable_device_io - Initialize a device for use with IO space
2115-
* @dev: PCI device to be initialized
2116-
*
2117-
* Initialize device before it's used by a driver. Ask low-level code
2118-
* to enable I/O resources. Wake up the device if it was suspended.
2119-
* Beware, this function can fail.
2120-
*/
2121-
int pci_enable_device_io(struct pci_dev *dev)
2122-
{
2123-
return pci_enable_device_flags(dev, IORESOURCE_IO);
2124-
}
2125-
EXPORT_SYMBOL(pci_enable_device_io);
2126-
21272113
/**
21282114
* pci_enable_device_mem - Initialize a device for use with Memory space
21292115
* @dev: PCI device to be initialized

include/linux/pci.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,6 @@ int pci_user_write_config_word(struct pci_dev *dev, int where, u16 val);
13131313
int pci_user_write_config_dword(struct pci_dev *dev, int where, u32 val);
13141314

13151315
int __must_check pci_enable_device(struct pci_dev *dev);
1316-
int __must_check pci_enable_device_io(struct pci_dev *dev);
13171316
int __must_check pci_enable_device_mem(struct pci_dev *dev);
13181317
int __must_check pci_reenable_device(struct pci_dev *);
13191318
int __must_check pcim_enable_device(struct pci_dev *pdev);

0 commit comments

Comments
 (0)