drivers: dma-removed: use memset_io for ioremap region

Using memset generates unaligned access exception for
device type memory on armv8, use memset_io for
ioremap region.

Change-Id: I26c82d4bed20f1c163953680aa200c95842d3f21
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
This commit is contained in:
Shiraz Hashim 2015-09-12 16:47:30 +05:30 committed by Gerrit - the friendly Code Review server
parent d7f4b6ff7d
commit 59a895fc82
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
/*
*
* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
* Copyright (C) 2000-2004 Russell King
*
* This program is free software; you can redistribute it and/or modify
@ -54,7 +54,7 @@ void *removed_alloc(struct device *dev, size_t size, dma_addr_t *handle,
dma_release_from_contiguous(dev, pfn, order);
} else {
if (!skip_zeroing)
memset(addr, 0, size);
memset_io(addr, 0, size);
if (no_kernel_mapping) {
iounmap(addr);
addr = (void *)NO_KERNEL_MAPPING_DUMMY;