diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2007-02-15 04:38:04 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-02-16 04:00:19 +0100 |
commit | c91ef5986185c044a853d990670e3f7ce22f2991 (patch) | |
tree | 3c9bceefcbbbc520d00dab2e54766beded2aa181 /drivers/serial/cpm_uart | |
parent | [POWERPC] mpic: set IPIs to be per-CPU (diff) | |
download | linux-c91ef5986185c044a853d990670e3f7ce22f2991.tar.xz linux-c91ef5986185c044a853d990670e3f7ce22f2991.zip |
[POWERPC] More DCR native fixups
Getting BenH's new EMAC driver working on 440GP, I found some more
problems in the native mode paths of the new DCR code:
- dcr_map() is supposed to return a dcr_host_t, but the native
version is a macro that doesn't expand to an expression. With native
DCRs, dcr_host_t is an empty structure, so we just use a constructor
expression instead.
- dcr_unmap() uses {} instead of the safer do {} while (0)
idiom to implement a no-op
Here's a fix.
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/serial/cpm_uart')
0 files changed, 0 insertions, 0 deletions