From: Ian Abbott Date: Wed, 22 Oct 2008 09:25:05 +0000 (+0000) Subject: Fix for 2.6.27 kernel: device_create_result_type wasn't defined. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4a21586bcd9cff345eddffaccf2f421d3ec6dcf3;p=comedi.git Fix for 2.6.27 kernel: device_create_result_type wasn't defined. --- diff --git a/include/linux/device.h b/include/linux/device.h index 71be1e00..cf71c80f 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -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)