| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* drivers/message/fusion/linux_compat.h */ |
| 2 | |||||
| 3 | #ifndef FUSION_LINUX_COMPAT_H | ||||
| 4 | #define FUSION_LINUX_COMPAT_H | ||||
| 5 | |||||
| 6 | #include <linux/version.h> | ||||
| 7 | #include <scsi/scsi_device.h> | ||||
| 8 | |||||
| 9 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,6)) | ||||
| 10 | static int inline scsi_device_online(struct scsi_device *sdev) | ||||
| 11 | { | ||||
| 12 | return sdev->online; | ||||
| 13 | } | ||||
| 14 | #endif | ||||
| 15 | |||||
| 16 | |||||
| 17 | /*}-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ | ||||
| 18 | #endif /* _LINUX_COMPAT_H */ | ||||