Commit 48eed47a authored by Linus Torvalds's avatar Linus Torvalds Committed by Linus Torvalds

memcpy_toio() shouldn't complain about a const source.

parent 2c49645d
No related merge requests found
......@@ -184,7 +184,7 @@ static inline void memcpy_fromio(void *dst, volatile void __iomem *src, int coun
{
__memcpy(dst, (void __force *) src, count);
}
static inline void memcpy_toio(volatile void __iomem *dst, void *src, int count)
static inline void memcpy_toio(volatile void __iomem *dst, const void *src, int count)
{
__memcpy((void __force *) dst, src, count);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment