diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-16 14:33:42 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-16 14:33:42 -0400 |
commit | e6d95bd14928926d6658b5e4ace905e8b83ed27a (patch) | |
tree | bc6c6b238505ff94e7523e1a9c2a445d9ddf7e6b /drivers/ide/legacy/qd65xx.c | |
parent | a698400a1556cf9f0376d1a41e536973dd5c4747 (diff) |
ide: ->port_init_devs -> ->init_dev
Change ->port_init_devs method to take 'ide_drive_t *' as an argument
instead of 'ide_hwif_t *' and rename it to ->init_dev.
There should be no functional changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/legacy/qd65xx.c')
-rw-r--r-- | drivers/ide/legacy/qd65xx.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/ide/legacy/qd65xx.c b/drivers/ide/legacy/qd65xx.c index 63f6c31d16ea..2338f344ea24 100644 --- a/drivers/ide/legacy/qd65xx.c +++ b/drivers/ide/legacy/qd65xx.c | |||
@@ -282,17 +282,18 @@ static int __init qd_testreg(int port) | |||
282 | return (readreg != QD_TESTVAL); | 282 | return (readreg != QD_TESTVAL); |
283 | } | 283 | } |
284 | 284 | ||
285 | static void __init qd6500_port_init_devs(ide_hwif_t *hwif) | 285 | static void __init qd6500_init_dev(ide_drive_t *drive) |
286 | { | 286 | { |
287 | ide_hwif_t *hwif = drive->hwif; | ||
287 | u8 base = (hwif->config_data & 0xff00) >> 8; | 288 | u8 base = (hwif->config_data & 0xff00) >> 8; |
288 | u8 config = QD_CONFIG(hwif); | 289 | u8 config = QD_CONFIG(hwif); |
289 | 290 | ||
290 | hwif->drives[0].drive_data = QD6500_DEF_DATA; | 291 | drive->drive_data = QD6500_DEF_DATA; |
291 | hwif->drives[1].drive_data = QD6500_DEF_DATA; | ||
292 | } | 292 | } |
293 | 293 | ||
294 | static void __init qd6580_port_init_devs(ide_hwif_t *hwif) | 294 | static void __init qd6580_init_dev(ide_drive_t *drive) |
295 | { | 295 | { |
296 | ide_hwif_t *hwif = drive->hwif; | ||
296 | u16 t1, t2; | 297 | u16 t1, t2; |
297 | u8 base = (hwif->config_data & 0xff00) >> 8; | 298 | u8 base = (hwif->config_data & 0xff00) >> 8; |
298 | u8 config = QD_CONFIG(hwif); | 299 | u8 config = QD_CONFIG(hwif); |
@@ -303,18 +304,17 @@ static void __init qd6580_port_init_devs(ide_hwif_t *hwif) | |||
303 | } else | 304 | } else |
304 | t2 = t1 = hwif->channel ? QD6580_DEF_DATA2 : QD6580_DEF_DATA; | 305 | t2 = t1 = hwif->channel ? QD6580_DEF_DATA2 : QD6580_DEF_DATA; |
305 | 306 | ||
306 | hwif->drives[0].drive_data = t1; | 307 | drive->drive_data = drive->select.b.unit ? t2 : t1; |
307 | hwif->drives[1].drive_data = t2; | ||
308 | } | 308 | } |
309 | 309 | ||
310 | static const struct ide_port_ops qd6500_port_ops = { | 310 | static const struct ide_port_ops qd6500_port_ops = { |
311 | .port_init_devs = qd6500_port_init_devs, | 311 | .init_dev = qd6500_init_dev, |
312 | .set_pio_mode = qd6500_set_pio_mode, | 312 | .set_pio_mode = qd6500_set_pio_mode, |
313 | .selectproc = qd65xx_select, | 313 | .selectproc = qd65xx_select, |
314 | }; | 314 | }; |
315 | 315 | ||
316 | static const struct ide_port_ops qd6580_port_ops = { | 316 | static const struct ide_port_ops qd6580_port_ops = { |
317 | .port_init_devs = qd6580_port_init_devs, | 317 | .init_dev = qd6580_init_dev, |
318 | .set_pio_mode = qd6580_set_pio_mode, | 318 | .set_pio_mode = qd6580_set_pio_mode, |
319 | .selectproc = qd65xx_select, | 319 | .selectproc = qd65xx_select, |
320 | }; | 320 | }; |