diff options
| author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-12-29 14:27:33 -0500 |
|---|---|---|
| committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-12-29 14:27:33 -0500 |
| commit | a4cd1a344818b4aa7149b851dc61f0447dc398bc (patch) | |
| tree | 21d270edf26d918796a8d027ac0c1755e20892e9 | |
| parent | 6b5cde3629701258004b94cde75dd1089b556b02 (diff) | |
gayle: set IDE_HFLAG_SERIALIZE explictly
If IDE doubler is used ports need to be serialized. Currently
init_irq() handles it fine but lets also set IDE_HFLAG_SERIALIZE
host flag explicitly in preparation for future changes.
Also convert the driver to use struct ide_port_info while at it.
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
| -rw-r--r-- | drivers/ide/gayle.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/ide/gayle.c b/drivers/ide/gayle.c index 691506886561..59bd0be9dcb3 100644 --- a/drivers/ide/gayle.c +++ b/drivers/ide/gayle.c | |||
| @@ -117,6 +117,10 @@ static void __init gayle_setup_ports(hw_regs_t *hw, unsigned long base, | |||
| 117 | hw->chipset = ide_generic; | 117 | hw->chipset = ide_generic; |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | static const struct ide_port_info gayle_port_info = { | ||
| 121 | .host_flags = IDE_HFLAG_SERIALIZE | IDE_HFLAG_NO_DMA, | ||
| 122 | }; | ||
| 123 | |||
| 120 | /* | 124 | /* |
| 121 | * Probe for a Gayle IDE interface (and optionally for an IDE doubler) | 125 | * Probe for a Gayle IDE interface (and optionally for an IDE doubler) |
| 122 | */ | 126 | */ |
| @@ -178,7 +182,7 @@ found: | |||
| 178 | hws[i] = &hw[i]; | 182 | hws[i] = &hw[i]; |
| 179 | } | 183 | } |
| 180 | 184 | ||
| 181 | rc = ide_host_add(NULL, hws, NULL); | 185 | rc = ide_host_add(&gayle_port_info, hws, NULL); |
| 182 | if (rc) | 186 | if (rc) |
| 183 | release_mem_region(res_start, res_n); | 187 | release_mem_region(res_start, res_n); |
| 184 | 188 | ||
