Fix for 2.6.27 kernel: device_create_result_type wasn't defined.
authorIan Abbott <abbotti@mev.co.uk>
Wed, 22 Oct 2008 09:25:05 +0000 (09:25 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Wed, 22 Oct 2008 09:25:05 +0000 (09:25 +0000)
include/linux/device.h

index 71be1e001511374d93a6825cafe1fc68651a9059..cf71c80f33f42c6035ef5aa662b27a18352476e8 100644 (file)
@@ -127,9 +127,9 @@ typedef struct device device_create_result_type;
 
 #else
 
+typedef struct device device_create_result_type;
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)
 
-typedef struct device device_create_result_type;
 #define COMEDI_DEVICE_CREATE(cs, parent, devt, drvdata, device, fmt...) \
        device_create_drvdata(cs, ((parent) ? (parent) : (device)), devt, drvdata, fmt)