Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d657784b authored by Sam Ravnborg's avatar Sam Ravnborg Committed by David S. Miller
Browse files

sparc32,leon: fix leon build



Minimal fix to allow leon to be built.

Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Cc: Konrad Eisele <konrad@gaisler.com>
Cc: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c29554f5
Loading
Loading
Loading
Loading
+0 −13
Original line number Original line Diff line number Diff line
@@ -45,7 +45,6 @@ void leon_pci_init(struct platform_device *ofdev, struct leon_pci_info *info)


void __devinit pcibios_fixup_bus(struct pci_bus *pbus)
void __devinit pcibios_fixup_bus(struct pci_bus *pbus)
{
{
	struct leon_pci_info *info = pbus->sysdata;
	struct pci_dev *dev;
	struct pci_dev *dev;
	int i, has_io, has_mem;
	int i, has_io, has_mem;
	u16 cmd;
	u16 cmd;
@@ -111,18 +110,6 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
	return pci_enable_resources(dev, mask);
	return pci_enable_resources(dev, mask);
}
}


struct device_node *pci_device_to_OF_node(struct pci_dev *pdev)
{
	/*
	 * Currently the OpenBoot nodes are not connected with the PCI device,
	 * this is because the LEON PROM does not create PCI nodes. Eventually
	 * this will change and the same approach as pcic.c can be used to
	 * match PROM nodes with pci devices.
	 */
	return NULL;
}
EXPORT_SYMBOL(pci_device_to_OF_node);

void __devinit pcibios_update_irq(struct pci_dev *dev, int irq)
void __devinit pcibios_update_irq(struct pci_dev *dev, int irq)
{
{
#ifdef CONFIG_PCI_DEBUG
#ifdef CONFIG_PCI_DEBUG