Commit 8be8af9e authored by David Vrabel's avatar David Vrabel Committed by Russell King

[ARM PATCH] 2300/1: IXP4xx: remove minor type mismatch warnings

Patch from David Vrabel

Remove some minor type mismatch warnings from some IXP4xx specific code.

Signed-off-by: David Vrabel
Signed-off-by: Russell King
parent d382c717
......@@ -238,7 +238,7 @@ static u32 byte_lane_enable_bits(u32 n, int size)
return 0xffffffff;
}
static int ixp4xx_pci_read_config(struct pci_bus *bus, u16 devfn, int where, int size, u32 *value)
static int ixp4xx_pci_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value)
{
u32 n, byte_enables, addr, data;
u8 bus_num = bus->number;
......@@ -261,7 +261,7 @@ static int ixp4xx_pci_read_config(struct pci_bus *bus, u16 devfn, int where, int
return PCIBIOS_SUCCESSFUL;
}
static int ixp4xx_pci_write_config(struct pci_bus *bus, u16 devfn, int where, int size, u32 value)
static int ixp4xx_pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value)
{
u32 n, byte_enables, addr, data;
u8 bus_num = bus->number;
......
......@@ -292,7 +292,7 @@ __ixp4xx_outb(u8 value, u32 addr)
}
static inline void
__ixp4xx_outsb(u32 io_addr, u8 *vaddr, u32 count)
__ixp4xx_outsb(u32 io_addr, const u8 *vaddr, u32 count)
{
while (count--)
outb(*vaddr++, io_addr);
......@@ -309,7 +309,7 @@ __ixp4xx_outw(u16 value, u32 addr)
}
static inline void
__ixp4xx_outsw(u32 io_addr, u16 *vaddr, u32 count)
__ixp4xx_outsw(u32 io_addr, const u16 *vaddr, u32 count)
{
while (count--)
outw(cpu_to_le16(*vaddr++), io_addr);
......@@ -322,7 +322,7 @@ __ixp4xx_outl(u32 value, u32 addr)
}
static inline void
__ixp4xx_outsl(u32 io_addr, u32 *vaddr, u32 count)
__ixp4xx_outsl(u32 io_addr, const u32 *vaddr, u32 count)
{
while (count--)
outl(*vaddr++, io_addr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment