1 diff -Naur src/rr231x_0x-linux-src-v2.5/osm/linux/os_linux.c src/rr231x_0x-linux-src-v2.5.new/osm/linux/os_linux.c
2 --- src/rr231x_0x-linux-src-v2.5/osm/linux/os_linux.c 2009-07-16 03:28:28.000000000 +0200
3 +++ src/rr231x_0x-linux-src-v2.5.new/osm/linux/os_linux.c 2011-06-08 13:33:58.100186383 +0200
5 struct block_device *bdev = bdget(MKDEV(major[i], minor));
7 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)
8 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)
9 + blkdev_get(bdev, FMODE_READ, NULL)
11 blkdev_get(bdev, FMODE_READ)
14 blkdev_get(bdev, FMODE_READ, 0 __BDEV_RAW)
16 diff -Naur src/rr231x_0x-linux-src-v2.5/osm/linux/osm_linux.c src/rr231x_0x-linux-src-v2.5.new/osm/linux/osm_linux.c
17 --- src/rr231x_0x-linux-src-v2.5/osm/linux/osm_linux.c 2009-07-16 03:28:28.000000000 +0200
18 +++ src/rr231x_0x-linux-src-v2.5.new/osm/linux/osm_linux.c 2011-06-08 13:34:00.068212729 +0200
23 -static int hpt_queuecommand (Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
24 +static int hpt_queuecommand_lck (Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
26 struct Scsi_Host *phost = sc_host(SCpnt);
27 PVBUS_EXT vbus_ext = get_vbus_ext(phost);
28 @@ -1408,6 +1408,12 @@
33 +DEF_SCSI_QCMD(hpt_queuecommand)
35 +#define hpt_queuecommand hpt_queuecommand_lck
38 static int hpt_reset (Scsi_Cmnd *SCpnt)
40 PVBUS_EXT vbus_ext = get_vbus_ext(sc_host(SCpnt));
41 diff -Naur src/rr231x_0x-linux-src-v2.5/osm/linux/osm_linux.h src/rr231x_0x-linux-src-v2.5.new/osm/linux/osm_linux.h
42 --- src/rr231x_0x-linux-src-v2.5/osm/linux/osm_linux.h 2009-07-16 03:28:28.000000000 +0200
43 +++ src/rr231x_0x-linux-src-v2.5.new/osm/linux/osm_linux.h 2011-06-08 13:34:00.880223582 +0200
48 -#ifndef AUTOCONF_INCLUDED
49 -#include <linux/config.h>
52 #include <linux/version.h>
54 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) && defined(MODVERSIONS)