[kernel] remove netfilter_upstream_fixes patches, not needed anymore after kernel...
[openwrt.git] / target / linux / ps3 / patches-2.6.28 / 0009-mtd-ps3vram-Remove-ps3vram-debug-routines.patch
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
5
6 Remove the ps3vram debug routines ps3vram_dump_ring() and
7 ps3vram_dump_reports(). These routines are not needed.
8
9 Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
10 Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
11 ---
12 drivers/mtd/devices/ps3vram.c | 29 -----------------------------
13 1 files changed, 0 insertions(+), 29 deletions(-)
14
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
23 -
24 -#define NUM_NOTIFIERS 16
25 -
26 #define NOTIFIER 7 /* notifier used for completion report */
27
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)
30 return -1;
31 }
32
33 -static void ps3vram_dump_ring(struct mtd_info *mtd)
34 -{
35 - struct ps3vram_priv *priv = mtd->priv;
36 - uint32_t *fifo;
37 -
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);
42 -}
43 -
44 -static void ps3vram_dump_reports(struct mtd_info *mtd)
45 -{
46 - struct ps3vram_priv *priv = mtd->priv;
47 - int i;
48 -
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);
52 - }
53 -}
54 -
55 static void ps3vram_init_ring(struct mtd_info *mtd)
56 {
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);
64 return -1;
65 }
66
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);
73 return -1;
74 }
75
76 --
77 1.6.0.4
78
This page took 0.046874 seconds and 5 git commands to generate.