diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2015-03-12 12:30:15 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-03-12 18:52:34 -0500 |
commit | 646c0282df04265f77ebd5ad3beae671e59acd5b (patch) | |
tree | a9cc33cb699729115eec9f1c99f9d3662a111941 /arch/arm/mach-imx/crmregs-imx3.h | |
parent | 1f7bf3bfb5d60c87dcaa708fd9eabbec93f15830 (diff) | |
download | blackbird-obmc-linux-646c0282df04265f77ebd5ad3beae671e59acd5b.tar.gz blackbird-obmc-linux-646c0282df04265f77ebd5ad3beae671e59acd5b.zip |
PCI: Fail pci_ioremap_bar() on unassigned resources
Make pci_ioremap_bar() fail if we're trying to map a BAR that hasn't been
assigned.
Normally pci_enable_device() will fail if a BAR hasn't been assigned, but a
driver can successfully call pci_enable_device_io() even if a memory BAR
hasn't been assigned. That driver should not be able to use
pci_ioremap_bar() to map that unassigned memory BAR.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/arm/mach-imx/crmregs-imx3.h')
0 files changed, 0 insertions, 0 deletions