/* RETURNS: 1 if attached SCSI device exists, 0 otherwise.  */
int ata_scsi_offline_dev(struct ata_device *dev)
/* RETURNS: 1 if attached SCSI device exists, 0 otherwise.  */
int ata_scsi_offline_dev(struct ata_device *dev)
{
	if (dev->sdev) {
		scsi_device_set_state(dev->sdev, SDEV_OFFLINE);
		return 1;
	}
	return 0;
}