Fix shutdown routine to return 0 and change signature from void return

to int.
This commit is contained in:
Warner Losh 2009-02-04 20:26:27 +00:00
parent 85d27a4f81
commit 02fa902fbe
4 changed files with 8 additions and 4 deletions

View File

@ -182,13 +182,14 @@ ad_detach(device_t dev)
return 0;
}
static void
static int
ad_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

View File

@ -143,13 +143,14 @@ acd_detach(device_t dev)
return 0;
}
static void
static int
acd_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

View File

@ -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

View File

@ -175,13 +175,14 @@ ast_detach(device_t dev)
return 0;
}
static void
static int
ast_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