[PATCH] Fix CPM1 uart console

Jochen Friedrich jochen at scram.de
Thu Aug 30 03:04:21 EST 2007


The powerpc version of commproc.c doesn't export cpm_dpram_phys due to
a typo. The ppc version of cpm_dpram_addr returns a usable virtual address
mapped to a physical address at the same location. cpm_dpram_phys returns
complete garbage as it tries to calculate an offset based on an otherwise
unused virtual adress returned by ioremap.

This patch fixes the typo for powerpc and removes the unnecessary ioremap
and corresponding virtual address for ppc.

Signed-off-by: Jochen Friedrich <jochen at scram.de>
---
 arch/powerpc/sysdev/commproc.c |    2 +-
 arch/ppc/8xx_io/commproc.c     |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 60d3d5feb1e51a5c0d839c4b7b2b683b82b43fee.diff
Type: text/x-patch
Size: 1161 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070829/2427f859/attachment.bin 


More information about the Linuxppc-embedded mailing list