Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39159
b: refs/heads/master
c: 7c84ace
h: refs/heads/master
i:
  39157: 6771ce2
  39155: faf612e
  39151: 9978493
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 9, 2006
1 parent 52411a8 commit ef1f0d8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f3d2ab41b5e2dfb2fc8679b786476327cea2f249
refs/heads/master: 7c84ace9bcd90e38ebf88b304a8ed4fed7ff3574
26 changes: 13 additions & 13 deletions trunk/arch/powerpc/platforms/pasemi/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@

#define CONFIG_OFFSET_VALID(off) ((off) < 4096)

static unsigned long pa_pxp_cfg_addr(struct pci_controller *hose,
static void volatile __iomem *pa_pxp_cfg_addr(struct pci_controller *hose,
u8 bus, u8 devfn, int offset)
{
return ((unsigned long)hose->cfg_data) + PA_PXP_CFA(bus, devfn, offset);
return hose->cfg_data + PA_PXP_CFA(bus, devfn, offset);
}

static int pa_pxp_read_config(struct pci_bus *bus, unsigned int devfn,
int offset, int len, u32 *val)
{
struct pci_controller *hose;
unsigned long addr;
void volatile __iomem *addr;

hose = pci_bus_to_host(bus);
if (!hose)
Expand All @@ -62,13 +62,13 @@ static int pa_pxp_read_config(struct pci_bus *bus, unsigned int devfn,
*/
switch (len) {
case 1:
*val = in_8((u8 *)addr);
*val = in_8(addr);
break;
case 2:
*val = in_le16((u16 *)addr);
*val = in_le16(addr);
break;
default:
*val = in_le32((u32 *)addr);
*val = in_le32(addr);
break;
}

Expand All @@ -79,7 +79,7 @@ static int pa_pxp_write_config(struct pci_bus *bus, unsigned int devfn,
int offset, int len, u32 val)
{
struct pci_controller *hose;
unsigned long addr;
void volatile __iomem *addr;

hose = pci_bus_to_host(bus);
if (!hose)
Expand All @@ -96,16 +96,16 @@ static int pa_pxp_write_config(struct pci_bus *bus, unsigned int devfn,
*/
switch (len) {
case 1:
out_8((u8 *)addr, val);
(void) in_8((u8 *)addr);
out_8(addr, val);
(void) in_8(addr);
break;
case 2:
out_le16((u16 *)addr, val);
(void) in_le16((u16 *)addr);
out_le16(addr, val);
(void) in_le16(addr);
break;
default:
out_le32((u32 *)addr, val);
(void) in_le32((u32 *)addr);
out_le32(addr, val);
(void) in_le32(addr);
break;
}
return PCIBIOS_SUCCESSFUL;
Expand Down

0 comments on commit ef1f0d8

Please sign in to comment.