diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2009-12-12 10:37:31 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2009-12-12 10:37:31 +0000 |
| commit | 71e7360ed94d5ffb14ab957e0bfb620760c841e7 (patch) | |
| tree | dd32aedd8b51daeaf5e39a8cf97d6acecd7f37c7 /sys/powerpc/psim | |
| parent | 5b574e433fd15f53ee06c8b17e74a0c2a63f4d49 (diff) | |
Notes
Diffstat (limited to 'sys/powerpc/psim')
| -rw-r--r-- | sys/powerpc/psim/ata_iobus.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/powerpc/psim/ata_iobus.c b/sys/powerpc/psim/ata_iobus.c index a70d0087a87a..60f6c5088709 100644 --- a/sys/powerpc/psim/ata_iobus.c +++ b/sys/powerpc/psim/ata_iobus.c @@ -210,7 +210,7 @@ ata_iobus_release_resource(device_t dev, device_t child, int type, int rid, */ static int ata_iobus_sub_probe(device_t dev); -static void ata_iobus_sub_setmode(device_t parent, device_t dev); +static int ata_iobus_sub_setmode(device_t dev, int target, int mode); static device_method_t ata_iobus_sub_methods[] = { /* Device interface */ @@ -245,11 +245,9 @@ ata_iobus_sub_probe(device_t dev) return ata_probe(dev); } -static void -ata_iobus_sub_setmode(device_t parent, device_t dev) +static int +ata_iobus_sub_setmode(device_t parent, int target, int mode) { - struct ata_device *atadev = device_get_softc(dev); - /* Only ever PIO mode here... */ - atadev->mode = ATA_PIO; + return (ATA_PIO); } |
