aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/mips/swarm.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-16 14:33:41 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-16 14:33:41 -0400
commite48905e9cfffd21861c3521d828ae992a53aac67 (patch)
tree256f6fdd2a1f7c40cba9cd6bfa4afb2af17a728b /drivers/ide/mips/swarm.c
parentc1da678b5b4d8ce7836ed1ded80109d1db37efe0 (diff)
swarm: use struct ide_port_info
Convert the driver to use struct ide_port_info. There should be no functional changes caused by this patch. Acked-by: Maciej W. Rozycki <macro@linux-mips.org> Tested-by: Maciej W. Rozycki <macro@linux-mips.org> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/mips/swarm.c')
-rw-r--r--drivers/ide/mips/swarm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/ide/mips/swarm.c b/drivers/ide/mips/swarm.c
index 52fee3d2771a..57a0138d0db6 100644
--- a/drivers/ide/mips/swarm.c
+++ b/drivers/ide/mips/swarm.c
@@ -61,6 +61,10 @@ static struct resource swarm_ide_resource = {
61 61
62static struct platform_device *swarm_ide_dev; 62static struct platform_device *swarm_ide_dev;
63 63
64static const struct ide_port_info swarm_port_info = {
65 .host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_NO_DMA,
66};
67
64/* 68/*
65 * swarm_ide_probe - if the board header indicates the existence of 69 * swarm_ide_probe - if the board header indicates the existence of
66 * Generic Bus IDE, allocate a HWIF for it. 70 * Generic Bus IDE, allocate a HWIF for it.
@@ -110,7 +114,6 @@ static int __devinit swarm_ide_probe(struct device *dev)
110 base = ioremap(offset, size); 114 base = ioremap(offset, size);
111 115
112 /* Setup MMIO ops. */ 116 /* Setup MMIO ops. */
113 hwif->host_flags = IDE_HFLAG_MMIO;
114 default_hwif_mmiops(hwif); 117 default_hwif_mmiops(hwif);
115 118
116 for (i = 0; i <= 7; i++) 119 for (i = 0; i <= 7; i++)
@@ -125,7 +128,7 @@ static int __devinit swarm_ide_probe(struct device *dev)
125 128
126 idx[0] = hwif->index; 129 idx[0] = hwif->index;
127 130
128 ide_device_add(idx, NULL); 131 ide_device_add(idx, &swarm_port_info);
129 132
130 dev_set_drvdata(dev, hwif); 133 dev_set_drvdata(dev, hwif);
131 134