/* ipr_ioctl - IOCTL handler @sdev: scsi device struct @cmd: IOCTL cmd  */
static int ipr_ioctl(struct scsi_device *sdev, int cmd, void __user *arg)
/* ipr_ioctl - IOCTL handler @sdev: scsi device struct @cmd: IOCTL cmd  */
static int ipr_ioctl(struct scsi_device *sdev, int cmd, void __user *arg)
{
	struct ipr_resource_entry *res;
	res = (struct ipr_resource_entry *)sdev->hostdata;
	if (res && ipr_is_gata(res)) {
		if (cmd == HDIO_GET_IDENTITY)
			return -ENOTTY;
		return ata_sas_scsi_ioctl(res->sata_port->ap, sdev, cmd, arg);
	}
	return -EINVAL;
}