diff options
author | imp <imp@FreeBSD.org> | 2009-02-04 20:26:27 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2009-02-04 20:26:27 +0000 |
commit | f2d1b1646845e3f3e8f2709efdef47226091bf50 (patch) | |
tree | 5e115eec22fc68fb78bbc61b8a762759743dc049 /sys/dev/ata/atapi-fd.c | |
parent | 26fa1c42bcc0845edd9b2132765359201a32a15d (diff) | |
download | FreeBSD-src-f2d1b1646845e3f3e8f2709efdef47226091bf50.zip FreeBSD-src-f2d1b1646845e3f3e8f2709efdef47226091bf50.tar.gz |
Fix shutdown routine to return 0 and change signature from void return
to int.
Diffstat (limited to 'sys/dev/ata/atapi-fd.c')
-rw-r--r-- | sys/dev/ata/atapi-fd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/atapi-fd.c b/sys/dev/ata/atapi-fd.c index 7b3c8b7..e9f3021 100644 --- a/sys/dev/ata/atapi-fd.c +++ b/sys/dev/ata/atapi-fd.c @@ -132,13 +132,14 @@ afd_detach(device_t dev) return 0; } -static void +static int afd_shutdown(device_t dev) { struct ata_device *atadev = device_get_softc(dev); if (atadev->param.support.command2 & ATA_SUPPORT_FLUSHCACHE) ata_controlcmd(dev, ATA_FLUSHCACHE, 0, 0, 0); + return 0; } static int |