]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] More DCR native fixups
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 15 Feb 2007 03:38:04 +0000 (14:38 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 16 Feb 2007 03:00:19 +0000 (14:00 +1100)
commit6052a4894ce88f065a2cfbed3acabe636e19a718
tree3c9bceefcbbbc520d00dab2e54766beded2aa181
parent3f12268e91b3a51caeabdc2099ec9dce000e3273
[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>
include/asm-powerpc/dcr-native.h