diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2019-06-16 22:06:19 -0700 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2019-06-16 23:31:29 -0700 |
commit | b03e5dcb942b332774cfd62735c137f62e5bb360 (patch) | |
tree | 623b5a43ba4c9509f79e0701eb9b72f206515441 /arch/xtensa/kernel | |
parent | 88804e680bac74114cecd2e565eef9a678daacd0 (diff) | |
download | linux-stable-b03e5dcb942b332774cfd62735c137f62e5bb360.tar.gz linux-stable-b03e5dcb942b332774cfd62735c137f62e5bb360.tar.bz2 linux-stable-b03e5dcb942b332774cfd62735c137f62e5bb360.zip |
xtensa: use generic pcibios_set_master and pcibios_enable_device
Both functions don't do anything xtensa-specific and there are generic
implementations for both. Drop both and use generic versions.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/kernel')
-rw-r--r-- | arch/xtensa/kernel/pci.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/arch/xtensa/kernel/pci.c b/arch/xtensa/kernel/pci.c index 14effa40eb7d..3f32e275997a 100644 --- a/arch/xtensa/kernel/pci.c +++ b/arch/xtensa/kernel/pci.c @@ -66,38 +66,6 @@ void pcibios_fixup_bus(struct pci_bus *bus) } } -void pcibios_set_master(struct pci_dev *dev) -{ - /* No special bus mastering setup handling */ -} - -int pcibios_enable_device(struct pci_dev *dev, int mask) -{ - u16 cmd, old_cmd; - int idx; - struct resource *r; - - pci_read_config_word(dev, PCI_COMMAND, &cmd); - old_cmd = cmd; - for (idx=0; idx<6; idx++) { - r = &dev->resource[idx]; - if (!r->start && r->end) { - pci_err(dev, "can't enable device: resource collisions\n"); - return -EINVAL; - } - if (r->flags & IORESOURCE_IO) - cmd |= PCI_COMMAND_IO; - if (r->flags & IORESOURCE_MEM) - cmd |= PCI_COMMAND_MEMORY; - } - if (cmd != old_cmd) { - pci_info(dev, "enabling device (%04x -> %04x)\n", old_cmd, cmd); - pci_write_config_word(dev, PCI_COMMAND, cmd); - } - - return 0; -} - /* * Platform support for /proc/bus/pci/X/Y mmap()s. * -- paulus. |