diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-28 17:44:41 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-28 17:44:41 -0400 |
commit | 7c0daf2681f140dd9f39cd95966f471b5c904d8a (patch) | |
tree | b8ea0e987f5d2121f4f4e564c05d834c3ce30a89 /drivers/ide/ide-iops.c | |
parent | ca545c1e75cd017bfd9a9b6c4f81f9b82ba20947 (diff) |
ide: remove ->INW and ->OUTW methods
* Remove no longer used ->INW and ->OUTW methods.
While at it:
* scc_pata.c: scc_ide_{out,in}w() is called only in scc_tf_{load,read}()
so inline it there.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-iops.c')
-rw-r--r-- | drivers/ide/ide-iops.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c index e981e2943073..daa23b19440e 100644 --- a/drivers/ide/ide-iops.c +++ b/drivers/ide/ide-iops.c | |||
@@ -37,11 +37,6 @@ static u8 ide_inb (unsigned long port) | |||
37 | return (u8) inb(port); | 37 | return (u8) inb(port); |
38 | } | 38 | } |
39 | 39 | ||
40 | static u16 ide_inw (unsigned long port) | ||
41 | { | ||
42 | return (u16) inw(port); | ||
43 | } | ||
44 | |||
45 | static void ide_outb (u8 val, unsigned long port) | 40 | static void ide_outb (u8 val, unsigned long port) |
46 | { | 41 | { |
47 | outb(val, port); | 42 | outb(val, port); |
@@ -52,18 +47,11 @@ static void ide_outbsync (ide_drive_t *drive, u8 addr, unsigned long port) | |||
52 | outb(addr, port); | 47 | outb(addr, port); |
53 | } | 48 | } |
54 | 49 | ||
55 | static void ide_outw (u16 val, unsigned long port) | ||
56 | { | ||
57 | outw(val, port); | ||
58 | } | ||
59 | |||
60 | void default_hwif_iops (ide_hwif_t *hwif) | 50 | void default_hwif_iops (ide_hwif_t *hwif) |
61 | { | 51 | { |
62 | hwif->OUTB = ide_outb; | 52 | hwif->OUTB = ide_outb; |
63 | hwif->OUTBSYNC = ide_outbsync; | 53 | hwif->OUTBSYNC = ide_outbsync; |
64 | hwif->OUTW = ide_outw; | ||
65 | hwif->INB = ide_inb; | 54 | hwif->INB = ide_inb; |
66 | hwif->INW = ide_inw; | ||
67 | } | 55 | } |
68 | 56 | ||
69 | /* | 57 | /* |
@@ -75,11 +63,6 @@ static u8 ide_mm_inb (unsigned long port) | |||
75 | return (u8) readb((void __iomem *) port); | 63 | return (u8) readb((void __iomem *) port); |
76 | } | 64 | } |
77 | 65 | ||
78 | static u16 ide_mm_inw (unsigned long port) | ||
79 | { | ||
80 | return (u16) readw((void __iomem *) port); | ||
81 | } | ||
82 | |||
83 | static void ide_mm_outb (u8 value, unsigned long port) | 66 | static void ide_mm_outb (u8 value, unsigned long port) |
84 | { | 67 | { |
85 | writeb(value, (void __iomem *) port); | 68 | writeb(value, (void __iomem *) port); |
@@ -90,20 +73,13 @@ static void ide_mm_outbsync (ide_drive_t *drive, u8 value, unsigned long port) | |||
90 | writeb(value, (void __iomem *) port); | 73 | writeb(value, (void __iomem *) port); |
91 | } | 74 | } |
92 | 75 | ||
93 | static void ide_mm_outw (u16 value, unsigned long port) | ||
94 | { | ||
95 | writew(value, (void __iomem *) port); | ||
96 | } | ||
97 | |||
98 | void default_hwif_mmiops (ide_hwif_t *hwif) | 76 | void default_hwif_mmiops (ide_hwif_t *hwif) |
99 | { | 77 | { |
100 | hwif->OUTB = ide_mm_outb; | 78 | hwif->OUTB = ide_mm_outb; |
101 | /* Most systems will need to override OUTBSYNC, alas however | 79 | /* Most systems will need to override OUTBSYNC, alas however |
102 | this one is controller specific! */ | 80 | this one is controller specific! */ |
103 | hwif->OUTBSYNC = ide_mm_outbsync; | 81 | hwif->OUTBSYNC = ide_mm_outbsync; |
104 | hwif->OUTW = ide_mm_outw; | ||
105 | hwif->INB = ide_mm_inb; | 82 | hwif->INB = ide_mm_inb; |
106 | hwif->INW = ide_mm_inw; | ||
107 | } | 83 | } |
108 | 84 | ||
109 | EXPORT_SYMBOL(default_hwif_mmiops); | 85 | EXPORT_SYMBOL(default_hwif_mmiops); |