1 From e7dd54cf17714c22665ad74b720f40fb64b3c565 Mon Sep 17 00:00:00 2001
2 From: Geoff Levand <geoffrey.levand@am.sony.com>
3 Date: Tue, 6 Jan 2009 11:32:15 +0000
4 Subject: [PATCH] mtd/ps3vram: Remove ps3vram debug routines
6 Remove the ps3vram debug routines ps3vram_dump_ring() and
7 ps3vram_dump_reports(). These routines are not needed.
9 Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
10 Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
12 drivers/mtd/devices/ps3vram.c | 29 -----------------------------
13 1 files changed, 0 insertions(+), 29 deletions(-)
15 diff --git a/drivers/mtd/devices/ps3vram.c b/drivers/mtd/devices/ps3vram.c
16 index 22f381f..18ca521 100644
17 --- a/drivers/mtd/devices/ps3vram.c
18 +++ b/drivers/mtd/devices/ps3vram.c
19 @@ -87,9 +87,6 @@ struct ps3vram_priv {
20 #define DMA_NOTIFIER_HANDLE_BASE 0x66604200 /* first DMA notifier handle */
21 #define DMA_NOTIFIER_OFFSET_BASE 0x1000 /* first DMA notifier offset */
22 #define DMA_NOTIFIER_SIZE 0x40
24 -#define NUM_NOTIFIERS 16
26 #define NOTIFIER 7 /* notifier used for completion report */
28 /* A trailing '-' means to subtract off ps3fb_videomemory.size */
29 @@ -131,28 +128,6 @@ static int ps3vram_notifier_wait(struct mtd_info *mtd, int timeout_ms)
33 -static void ps3vram_dump_ring(struct mtd_info *mtd)
35 - struct ps3vram_priv *priv = mtd->priv;
38 - pr_info("PUT = %08x GET = %08x\n", priv->ctrl[CTRL_PUT],
39 - priv->ctrl[CTRL_GET]);
40 - for (fifo = priv->fifo_base; fifo < priv->fifo_ptr; fifo++)
41 - pr_info("%p: %08x\n", fifo, *fifo);
44 -static void ps3vram_dump_reports(struct mtd_info *mtd)
46 - struct ps3vram_priv *priv = mtd->priv;
49 - for (i = 0; i < NUM_NOTIFIERS; i++) {
50 - uint32_t *n = ps3vram_get_notifier(priv->reports, i);
51 - pr_info("%p: %08x\n", n, *n);
55 static void ps3vram_init_ring(struct mtd_info *mtd)
57 struct ps3vram_priv *priv = mtd->priv;
58 @@ -284,8 +259,6 @@ static int ps3vram_upload(struct mtd_info *mtd, unsigned int src_offset,
59 ps3vram_fire_ring(mtd);
60 if (ps3vram_notifier_wait(mtd, 200) < 0) {
61 pr_err("notifier timeout\n");
62 - ps3vram_dump_ring(mtd);
63 - ps3vram_dump_reports(mtd);
67 @@ -317,8 +290,6 @@ static int ps3vram_download(struct mtd_info *mtd, unsigned int src_offset,
68 ps3vram_fire_ring(mtd);
69 if (ps3vram_notifier_wait(mtd, 200) < 0) {
70 pr_err("notifier timeout\n");
71 - ps3vram_dump_ring(mtd);
72 - ps3vram_dump_reports(mtd);