From: Paul Mundt Date: Fri, 17 Apr 2009 08:00:27 +0000 (+0900) Subject: sh: pci: Set the I/O port base to the SH7780 I/O window default. X-Git-Tag: v2.6.31-rc1~392^2~41^2~124^3~33 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f1dcab756687622b658154ded1657538984edcdb;p=karo-tx-linux.git sh: pci: Set the I/O port base to the SH7780 I/O window default. Presently the I/O port base isn't being set anywhere, which allows things like generic_inl() to blow up. Fix this up to point at the PCI IO window. Signed-off-by: Paul Mundt --- diff --git a/arch/sh/drivers/pci/pci-sh7780.c b/arch/sh/drivers/pci/pci-sh7780.c index fa73b0d15888..207b7206fbda 100644 --- a/arch/sh/drivers/pci/pci-sh7780.c +++ b/arch/sh/drivers/pci/pci-sh7780.c @@ -112,5 +112,7 @@ int __init sh7780_pcic_init(struct pci_channel *chan, word = SH4_PCICR_PREFIX | SH4_PCICR_CFIN | SH4_PCICR_FTO; pci_write_reg(chan, word, SH4_PCICR); + __set_io_port_base(SH7780_PCI_IO_BASE); + return 0; }