packages/utils/lirc/patches/100-kcompat.patch
nbd 04ed50d2e1 fix lirc compile and move its build dir to the right place
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12158 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-05 20:49:28 +00:00

17 lines
352 B
Diff

--- a/drivers/kcompat.h
+++ b/drivers/kcompat.h
@@ -53,7 +53,13 @@
#else /* >= 2.6.15 */
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)
+#define lirc_class_device_create device_create_drvdata
+#define class_device_destroy device_destroy
+#else
#define lirc_class_device_create class_device_create
+#endif
+
#define LIRC_DEVFS_PREFIX
#endif