# \[PATCH\#2 4/4\] \[POWERPC\] Fix cpm\_uart driver

- From: Jochen Friedrich \<jochen@scram.de\>
- Date: 2007-09-24 17:17:25 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2007/09/1007456
- Thread: https://ratatoskr.run/lkml/2007/09/1007456/t.md

```text

in cpm_uart_cpm1.h, DPRAM_BASE is assigned an address derived from cpmp.
On ARC=ppc, this is a physical address with 1:1 DMA mapping which can't
be used for arithmetric compare operations with virtual addresses
returned by cpm_dpram_addr. This patch changes the assignment to use
cpm_dpram_addr as well, like in cpm_uart_cpm2.h.

Signed-off-by: Jochen Friedrich <jochen@scram.de>
---
drivers/serial/cpm_uart/cpm_uart_cpm1.h |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
```

## Attachments

- [e99364db4224fcfaf74389d1b59ec0637d899c17.diff](https://ratatoskr.run/linuxppc-dev/2007/09/1007456/attachment/0) (text/x-patch, 452 bytes)
