-noinst_HEADERS=comedidev.h comedi.h comedilib.h comedi_rt.h compiler.h config.h delay.h device.h \
+noinst_HEADERS=comedidev.h comedi.h comedilib.h comedi_rt.h compiler.h config.h delay.h device.h firmware.h \
interrupt.h isapnp.h kernel.h kref.h mm.h mod_devicetable.h module.h moduleparam.h mutex.h pci.h \
pci_ids.h pnp.h sched.h slab.h stddef.h time.h types.h usb.h version.h wrapper.h
--- /dev/null
+/*
+ * linux/firmware.h compatibility header
+ */
+
+#ifndef __COMPAT_LINUX_FIRMWARE_H
+
+#include <linux/version.h>
+
+#include_next <linux/firmware.h>
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
+
+/* Redefine request_firmware_nowait() to add gfp parameter. This will be
+ * ignored for kernel versions prior to 2.6.33. */
+static inline int comedi_internal_request_firmware_nowait(
+ struct module *module, int uevent,
+ const char *name, struct device *device, unsigned gfp, void *context,
+ void (*cont)(const struct firmware *fw, void *context))
+{
+ return request_firmware_nowait(
+ module, uevent, name, device, context, cont);
+}
+
+#undef request_firmware_nowait
+#define request_firmware_nowait(module, uevent, name, device, gfp, context, cont) \
+ comedi_internal_request_firmware_nowait( \
+ module, uevent, name, device, gfp, context, cont)
+
+#endif
+
+#endif