diff options
Diffstat (limited to 'drivers/message/fusion/linux_compat.h')
-rw-r--r-- | drivers/message/fusion/linux_compat.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/message/fusion/linux_compat.h b/drivers/message/fusion/linux_compat.h new file mode 100644 index 0000000..048b5b8 --- /dev/null +++ b/drivers/message/fusion/linux_compat.h @@ -0,0 +1,18 @@ +/* drivers/message/fusion/linux_compat.h */ + +#ifndef FUSION_LINUX_COMPAT_H +#define FUSION_LINUX_COMPAT_H + +#include <linux/version.h> +#include <scsi/scsi_device.h> + +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,6)) +static int inline scsi_device_online(struct scsi_device *sdev) +{ + return sdev->online; +} +#endif + + +/*}-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ +#endif /* _LINUX_COMPAT_H */ |