Skip to content

Commit

Permalink
nios2: add definition of ioremap_wc to io.h
Browse files Browse the repository at this point in the history
Fix

drivers/gpu/drm/drm_bufs.c: In function 'drm_addmap_core':
drivers/gpu/drm/drm_bufs.c:213:5:
			error: implicit declaration of function 'ioremap_wc'

seen when building nios2:allmodconfig.

Signed-off-by: Guenter Roeck <[email protected]>
Acked-by: Ley Foon Tan <[email protected]>
  • Loading branch information
groeck authored and Ley Foon Tan committed Dec 17, 2014
1 parent 603ba7e commit 76367a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/nios2/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ static inline void iounmap(void __iomem *addr)
__iounmap(addr);
}

#define ioremap_wc ioremap_nocache

/* Pages to physical address... */
#define page_to_phys(page) virt_to_phys(page_to_virt(page))
#define page_to_bus(page) page_to_virt(page)
Expand Down

0 comments on commit 76367a5

Please sign in to comment.