Skip to content
Snippets Groups Projects
Commit 4d0b5468 authored by Haavard Skinnemoen's avatar Haavard Skinnemoen
Browse files

Merge branch 'fixes'

parents 72d15e70 92c78a3b
No related branches found
No related tags found
No related merge requests found
...@@ -76,12 +76,12 @@ extern void __readwrite_bug(const char *fn); ...@@ -76,12 +76,12 @@ extern void __readwrite_bug(const char *fn);
#include <asm/addrspace.h> #include <asm/addrspace.h>
/* virt_to_phys will only work when address is in P1 or P2 */ /* virt_to_phys will only work when address is in P1 or P2 */
static __inline__ unsigned long virt_to_phys(volatile void *address) static inline phys_addr_t virt_to_phys(volatile void *address)
{ {
return PHYSADDR(address); return PHYSADDR(address);
} }
static __inline__ void * phys_to_virt(unsigned long address) static inline void *phys_to_virt(phys_addr_t address)
{ {
return (void *)P1SEGADDR(address); return (void *)P1SEGADDR(address);
} }
...@@ -125,9 +125,4 @@ static inline void unmap_physmem(void *vaddr, unsigned long len) ...@@ -125,9 +125,4 @@ static inline void unmap_physmem(void *vaddr, unsigned long len)
} }
static inline phys_addr_t virt_to_phys(void * vaddr)
{
return (phys_addr_t)(vaddr);
}
#endif /* __ASM_AVR32_IO_H */ #endif /* __ASM_AVR32_IO_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment