|
@@ -143,14 +143,14 @@ static inline void * phys_to_virt(unsigned long address)
|
|
|
/*
|
|
|
* ISA I/O bus memory addresses are 1:1 with the physical address.
|
|
|
*/
|
|
|
-static inline unsigned long isa_virt_to_bus(volatile void * address)
|
|
|
+static inline unsigned long isa_virt_to_bus(volatile void *address)
|
|
|
{
|
|
|
- return (unsigned long)address - PAGE_OFFSET;
|
|
|
+ return virt_to_phys(address);
|
|
|
}
|
|
|
|
|
|
-static inline void * isa_bus_to_virt(unsigned long address)
|
|
|
+static inline void *isa_bus_to_virt(unsigned long address)
|
|
|
{
|
|
|
- return (void *)(address + PAGE_OFFSET);
|
|
|
+ return phys_to_virt(address);
|
|
|
}
|
|
|
|
|
|
#define isa_page_to_bus page_to_phys
|