Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98158
b: refs/heads/master
c: f1304b3
h: refs/heads/master
v: v3
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Jun 16, 2008
1 parent db61dfe commit bafa01a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 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: b8157180ccd8bb3752f510c6c434b86394636093
refs/heads/master: f1304b358a6c952e4cd1f92c8a6f183b1026c103
14 changes: 13 additions & 1 deletion trunk/arch/mips/pci/pci-vr41xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Copyright (C) 2001-2003 MontaVista Software Inc.
* Author: Yoichi Yuasa <yyuasa@mvista.com or source@mvista.com>
* Copyright (C) 2004-2005 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
* Copyright (C) 2004-2008 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
* Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org)
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -300,6 +300,18 @@ static int __init vr41xx_pciu_init(void)
ioport_resource.end = IO_PORT_RESOURCE_END;
}

if (setup->master_io) {
void __iomem *io_map_base;
struct resource *res = vr41xx_pci_controller.io_resource;
master = setup->master_io;
io_map_base = ioremap(master->bus_base_address,
res->end - res->start + 1);
if (!io_map_base)
return -EBUSY;

vr41xx_pci_controller.io_map_base = (unsigned long)io_map_base;
}

register_pci_controller(&vr41xx_pci_controller);

return 0;
Expand Down

0 comments on commit bafa01a

Please sign in to comment.