@@ -14,7 +14,7 @@
#include "dw-edma-core.h"
#define REGS_ADDR(name) \
- ((void __force *)®s->name)
+ ((void __iomem *)®s->name)
#define REGISTER(name) \
{ #name, REGS_ADDR(name) }
@@ -48,12 +48,13 @@ static struct {
struct debugfs_entries {
const char *name;
- dma_addr_t *reg;
+ void __iomem *reg;
};
static int dw_edma_debugfs_u32_get(void *data, u64 *val)
{
- void __iomem *reg = (void __force __iomem *)data;
+ void __iomem *reg = data;
+
if (dw->chip->mf == EDMA_MF_EDMA_LEGACY &&
reg >= (void __iomem *)®s->type.legacy.ch) {
void __iomem *ptr = ®s->type.legacy.ch;