sh: pci: Consolidate pcibios_align_resource() definitions.
This introduces a saner pcibios_align_resource() that can be used regardless of whether pci-auto or pci-new are being used, and consolidates it in pci-lib.c. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -33,10 +33,7 @@ struct pci_channel {
|
||||
*/
|
||||
extern struct pci_channel board_pci_channels[];
|
||||
|
||||
/* ugly as hell, but makes drivers/pci/setup-res.c compile and work */
|
||||
#define __PCI_CHAN(bus) ((struct pci_channel *)bus->sysdata)
|
||||
#define PCIBIOS_MIN_IO __PCI_CHAN(bus)->io_resource->start
|
||||
#define PCIBIOS_MIN_MEM __PCI_CHAN(bus)->mem_resource->start
|
||||
extern unsigned long PCIBIOS_MIN_IO, PCIBIOS_MIN_MEM;
|
||||
|
||||
struct pci_dev;
|
||||
|
||||
|
Reference in New Issue
Block a user