linux-sg2042/arch/mips/alchemy/common
Julia Lawall 42ecda1ae8 MIPS: Alchemy: Correct code taking the size of a pointer
sizeof(dp) is just the size of the pointer.  Change it to the size of the
referenced structure.

A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression *x;
expression f;
type T;
@@

*f(...,(T)x,...)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Patchwork: http://patchwork.linux-mips.org/patch/789/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2010-01-12 18:19:31 +01:00
..
Makefile MIPS: Alchemy: Rewrite GPIO support. 2009-06-17 11:06:28 +01:00
clocks.c MIPS: Alchemy: move calc_clock function. 2009-01-11 09:57:27 +00:00
dbdma.c MIPS: Alchemy: Correct code taking the size of a pointer 2010-01-12 18:19:31 +01:00
dma.c MIPS: Alchemy: rename directory 2008-10-11 16:18:50 +01:00
gpiolib-au1000.c MIPS: Alchemy: Rewrite GPIO support. 2009-06-17 11:06:28 +01:00
irq.c MIPS: Alchemy: Fix hang with high-frequency edge interrupts 2009-11-02 12:00:08 +01:00
pci.c MIPS: Alchemy: rename directory 2008-10-11 16:18:50 +01:00
platform.c dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32) 2009-04-07 08:31:11 -07:00
power.c MIPS: Alchemy: new userspace suspend interface for development boards. 2009-01-11 09:57:27 +00:00
prom.c MIPS: Alchemy: rename directory 2008-10-11 16:18:50 +01:00
puts.c MIPS: Alchemy: rename directory 2008-10-11 16:18:50 +01:00
reset.c MIPS: Alchemy: devboards: Convert to gpio calls. 2009-06-17 11:06:29 +01:00
setup.c MIPS: Alchemy: override loops_per_jiffy detection 2009-09-17 20:07:51 +02:00
sleeper.S MIPS: Alchemy: Fix up PM code on Au1550/Au1200 2009-01-11 09:57:27 +00:00
time.c cpumask: remove dangerous CPU_MASK_ALL_PTR, &CPU_MASK_ALL.: mips 2009-09-24 09:34:36 +09:30