* [PATCH] sparc64: dma remove extra brackets
@ 2006-11-30 9:32 Mariusz Kozlowski
2006-12-02 4:20 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Mariusz Kozlowski @ 2006-11-30 9:32 UTC (permalink / raw)
To: davem; +Cc: sparclinux, linux-kernel
Hello,
This patch removes some extra brackets to fix these macros.
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
include/asm-sparc64/dma.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- linux-2.6.19-rc6-mm2-a/include/asm-sparc64/dma.h 2006-11-16 05:03:40.000000000 +0100
+++ linux-2.6.19-rc6-mm2-b/include/asm-sparc64/dma.h 2006-11-30 01:03:23.000000000 +0100
@@ -152,9 +152,9 @@ extern void dvma_init(struct sbus_bus *)
#define DMA_MAXEND(addr) (0x01000000UL-(((unsigned long)(addr))&0x00ffffffUL))
/* Yes, I hack a lot of elisp in my spare time... */
-#define DMA_ERROR_P(regs) (((sbus_readl((regs) + DMA_CSR) & DMA_HNDL_ERROR))
-#define DMA_IRQ_P(regs) (((sbus_readl((regs) + DMA_CSR)) & (DMA_HNDL_INTR | DMA_HNDL_ERROR)))
-#define DMA_WRITE_P(regs) (((sbus_readl((regs) + DMA_CSR) & DMA_ST_WRITE))
+#define DMA_ERROR_P(regs) ((sbus_readl((regs) + DMA_CSR) & DMA_HNDL_ERROR))
+#define DMA_IRQ_P(regs) ((sbus_readl((regs) + DMA_CSR)) & (DMA_HNDL_INTR | DMA_HNDL_ERROR))
+#define DMA_WRITE_P(regs) ((sbus_readl((regs) + DMA_CSR) & DMA_ST_WRITE))
#define DMA_OFF(__regs) \
do { u32 tmp = sbus_readl((__regs) + DMA_CSR); \
tmp &= ~DMA_ENABLE; \
--
Regards,
Mariusz Kozlowski
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-02 4:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-30 9:32 [PATCH] sparc64: dma remove extra brackets Mariusz Kozlowski
2006-12-02 4:20 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®