|
@@ -71,6 +71,7 @@
|
|
|
#include <linux/module.h>
|
|
|
#include <linux/moduleparam.h>
|
|
|
#include <linux/libata.h>
|
|
|
+#include <linux/hdreg.h>
|
|
|
#include <asm/io.h>
|
|
|
#include <asm/irq.h>
|
|
|
#include <asm/processor.h>
|
|
@@ -4913,8 +4914,11 @@ 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 (res && ipr_is_gata(res)) {
|
|
|
+ if (cmd == HDIO_GET_IDENTITY)
|
|
|
+ return -ENOTTY;
|
|
|
return ata_scsi_ioctl(sdev, cmd, arg);
|
|
|
+ }
|
|
|
|
|
|
return -EINVAL;
|
|
|
}
|