diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2012-08-11 04:58:43 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-09-29 10:00:21 -0400 |
commit | db68f288968cd563b383dfaa1c3c5b58c3d9ad20 (patch) | |
tree | 7e76c6f704b8046127b1bbc2f04331c7e2be59a9 /drivers/mtd/maps/pci.c | |
parent | 13e859745cf8cf0e6602759b1ef2abcb9ced7991 (diff) |
mtd: maps: pci: remove dead code
Removes disabled printk (which should be dev_dbg these days) as well
as #if 0 blocks (which are trivial to reimplement if ever needed) to
meet basic CodingStyle guidelines.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/maps/pci.c')
-rw-r--r-- | drivers/mtd/maps/pci.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/mtd/maps/pci.c b/drivers/mtd/maps/pci.c index f14ce0af763f..1c30c1a307f4 100644 --- a/drivers/mtd/maps/pci.c +++ b/drivers/mtd/maps/pci.c | |||
@@ -43,26 +43,14 @@ static map_word mtd_pci_read8(struct map_info *_map, unsigned long ofs) | |||
43 | struct map_pci_info *map = (struct map_pci_info *)_map; | 43 | struct map_pci_info *map = (struct map_pci_info *)_map; |
44 | map_word val; | 44 | map_word val; |
45 | val.x[0]= readb(map->base + map->translate(map, ofs)); | 45 | val.x[0]= readb(map->base + map->translate(map, ofs)); |
46 | // printk("read8 : %08lx => %02x\n", ofs, val.x[0]); | ||
47 | return val; | 46 | return val; |
48 | } | 47 | } |
49 | 48 | ||
50 | #if 0 | ||
51 | static map_word mtd_pci_read16(struct map_info *_map, unsigned long ofs) | ||
52 | { | ||
53 | struct map_pci_info *map = (struct map_pci_info *)_map; | ||
54 | map_word val; | ||
55 | val.x[0] = readw(map->base + map->translate(map, ofs)); | ||
56 | // printk("read16: %08lx => %04x\n", ofs, val.x[0]); | ||
57 | return val; | ||
58 | } | ||
59 | #endif | ||
60 | static map_word mtd_pci_read32(struct map_info *_map, unsigned long ofs) | 49 | static map_word mtd_pci_read32(struct map_info *_map, unsigned long ofs) |
61 | { | 50 | { |
62 | struct map_pci_info *map = (struct map_pci_info *)_map; | 51 | struct map_pci_info *map = (struct map_pci_info *)_map; |
63 | map_word val; | 52 | map_word val; |
64 | val.x[0] = readl(map->base + map->translate(map, ofs)); | 53 | val.x[0] = readl(map->base + map->translate(map, ofs)); |
65 | // printk("read32: %08lx => %08x\n", ofs, val.x[0]); | ||
66 | return val; | 54 | return val; |
67 | } | 55 | } |
68 | 56 | ||
@@ -75,22 +63,12 @@ static void mtd_pci_copyfrom(struct map_info *_map, void *to, unsigned long from | |||
75 | static void mtd_pci_write8(struct map_info *_map, map_word val, unsigned long ofs) | 63 | static void mtd_pci_write8(struct map_info *_map, map_word val, unsigned long ofs) |
76 | { | 64 | { |
77 | struct map_pci_info *map = (struct map_pci_info *)_map; | 65 | struct map_pci_info *map = (struct map_pci_info *)_map; |
78 | // printk("write8 : %08lx <= %02x\n", ofs, val.x[0]); | ||
79 | writeb(val.x[0], map->base + map->translate(map, ofs)); | 66 | writeb(val.x[0], map->base + map->translate(map, ofs)); |
80 | } | 67 | } |
81 | 68 | ||
82 | #if 0 | ||
83 | static void mtd_pci_write16(struct map_info *_map, map_word val, unsigned long ofs) | ||
84 | { | ||
85 | struct map_pci_info *map = (struct map_pci_info *)_map; | ||
86 | // printk("write16: %08lx <= %04x\n", ofs, val.x[0]); | ||
87 | writew(val.x[0], map->base + map->translate(map, ofs)); | ||
88 | } | ||
89 | #endif | ||
90 | static void mtd_pci_write32(struct map_info *_map, map_word val, unsigned long ofs) | 69 | static void mtd_pci_write32(struct map_info *_map, map_word val, unsigned long ofs) |
91 | { | 70 | { |
92 | struct map_pci_info *map = (struct map_pci_info *)_map; | 71 | struct map_pci_info *map = (struct map_pci_info *)_map; |
93 | // printk("write32: %08lx <= %08x\n", ofs, val.x[0]); | ||
94 | writel(val.x[0], map->base + map->translate(map, ofs)); | 72 | writel(val.x[0], map->base + map->translate(map, ofs)); |
95 | } | 73 | } |
96 | 74 | ||
@@ -358,4 +336,3 @@ MODULE_LICENSE("GPL"); | |||
358 | MODULE_AUTHOR("Russell King <rmk@arm.linux.org.uk>"); | 336 | MODULE_AUTHOR("Russell King <rmk@arm.linux.org.uk>"); |
359 | MODULE_DESCRIPTION("Generic PCI map driver"); | 337 | MODULE_DESCRIPTION("Generic PCI map driver"); |
360 | MODULE_DEVICE_TABLE(pci, mtd_pci_ids); | 338 | MODULE_DEVICE_TABLE(pci, mtd_pci_ids); |
361 | |||