aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-16 14:33:40 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-16 14:33:40 -0400
commitdccdf527379dc2fe8a4efc5c75601d1d4035a750 (patch)
treeb9e26a8b115bd7d32929132e6c84213f968ce003 /drivers/ide
parentf333f92bf9040fb63d13c184295629c7a0ff449f (diff)
ide-cs: use struct ide_port_info
Convert the driver to use struct ide_port_info. There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/legacy/ide-cs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/ide/legacy/ide-cs.c b/drivers/ide/legacy/ide-cs.c
index 7c69608154c2..fc53dcfbfe38 100644
--- a/drivers/ide/legacy/ide-cs.c
+++ b/drivers/ide/legacy/ide-cs.c
@@ -154,6 +154,11 @@ static const struct ide_port_ops idecs_port_ops = {
154 .quirkproc = ide_undecoded_slave, 154 .quirkproc = ide_undecoded_slave,
155}; 155};
156 156
157static const struct ide_port_info idecs_port_info = {
158 .port_ops = &idecs_port_ops,
159 .host_flags = IDE_HFLAG_NO_DMA,
160};
161
157static ide_hwif_t *idecs_register(unsigned long io, unsigned long ctl, 162static ide_hwif_t *idecs_register(unsigned long io, unsigned long ctl,
158 unsigned long irq, struct pcmcia_device *handle) 163 unsigned long irq, struct pcmcia_device *handle)
159{ 164{
@@ -188,11 +193,10 @@ static ide_hwif_t *idecs_register(unsigned long io, unsigned long ctl,
188 i = hwif->index; 193 i = hwif->index;
189 194
190 ide_init_port_hw(hwif, &hw); 195 ide_init_port_hw(hwif, &hw);
191 hwif->port_ops = &idecs_port_ops;
192 196
193 idx[0] = i; 197 idx[0] = i;
194 198
195 ide_device_add(idx, NULL); 199 ide_device_add(idx, &idecs_port_info);
196 200
197 if (hwif->present) 201 if (hwif->present)
198 return hwif; 202 return hwif;