diff options
author | Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | 2009-06-10 00:38:51 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-06-15 02:47:23 -0400 |
commit | 1bd9784f5ebb5b1b5a1efb8302d7b57c6483e2e6 (patch) | |
tree | ea31cb6afcabfa05ed1043e33f4dc12f5df8463f /drivers/block | |
parent | c3b94fd800cc7eb59c91ccb55326cdaf589b0e88 (diff) |
ps3vram: Make ps3vram_priv.reports a void *
So we can kill a cast.
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: Jim Paris <jim@jtan.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/ps3vram.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/ps3vram.c b/drivers/block/ps3vram.c index 5f408c6e5b20..fbbdd5ca5720 100644 --- a/drivers/block/ps3vram.c +++ b/drivers/block/ps3vram.c | |||
@@ -72,7 +72,7 @@ struct ps3vram_priv { | |||
72 | u64 memory_handle; | 72 | u64 memory_handle; |
73 | u64 context_handle; | 73 | u64 context_handle; |
74 | u32 *ctrl; | 74 | u32 *ctrl; |
75 | u32 *reports; | 75 | void *reports; |
76 | u8 *xdr_buf; | 76 | u8 *xdr_buf; |
77 | 77 | ||
78 | u32 *fifo_base; | 78 | u32 *fifo_base; |
@@ -102,9 +102,9 @@ static char *size = "256M"; | |||
102 | module_param(size, charp, 0); | 102 | module_param(size, charp, 0); |
103 | MODULE_PARM_DESC(size, "memory size"); | 103 | MODULE_PARM_DESC(size, "memory size"); |
104 | 104 | ||
105 | static u32 *ps3vram_get_notifier(u32 *reports, int notifier) | 105 | static u32 *ps3vram_get_notifier(void *reports, int notifier) |
106 | { | 106 | { |
107 | return (void *)reports + DMA_NOTIFIER_OFFSET_BASE + | 107 | return reports + DMA_NOTIFIER_OFFSET_BASE + |
108 | DMA_NOTIFIER_SIZE * notifier; | 108 | DMA_NOTIFIER_SIZE * notifier; |
109 | } | 109 | } |
110 | 110 | ||