summaryrefslogtreecommitdiff
path: root/linux/drivers/media/radio/radio-mr800.c
diff options
context:
space:
mode:
authorDouglas Schilling Landgraf <dougsland@linuxtv.org>2008-10-09 12:57:17 -0400
committerDouglas Schilling Landgraf <dougsland@linuxtv.org>2008-10-09 12:57:17 -0400
commit84cd3a09ddb269ab040c5f58a9a667948f55f037 (patch)
tree5150216c8df21a164cbc8cf8475c02e043bfdb2b /linux/drivers/media/radio/radio-mr800.c
parent9ae1eb9215c9776d675d335f9ad0264b2ce06bf2 (diff)
downloadmediapointer-dvb-s2-84cd3a09ddb269ab040c5f58a9a667948f55f037.tar.gz
mediapointer-dvb-s2-84cd3a09ddb269ab040c5f58a9a667948f55f037.tar.bz2
radio-mr800: Fix issue for kernel < 2.6.23
From: Alexey Klimov <klimov.linux@gmail.com> Fixed issue for kernel < 2.6.23 * Added compat.h * Added macro validation Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/radio/radio-mr800.c')
-rw-r--r--linux/drivers/media/radio/radio-mr800.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/radio/radio-mr800.c b/linux/drivers/media/radio/radio-mr800.c
index a33717c48..2ae8e1447 100644
--- a/linux/drivers/media/radio/radio-mr800.c
+++ b/linux/drivers/media/radio/radio-mr800.c
@@ -58,6 +58,7 @@
#include <media/v4l2-ioctl.h>
#include <linux/usb.h>
#include <linux/version.h> /* for KERNEL_VERSION MACRO */
+#include "compat.h"
/* driver and module definitions */
#define DRIVER_AUTHOR "Alexey Klimov <klimov.linux@gmail.com>"
@@ -159,7 +160,9 @@ static struct usb_driver usb_amradio_driver = {
.disconnect = usb_amradio_disconnect,
.suspend = usb_amradio_suspend,
.resume = usb_amradio_resume,
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 23)
.reset_resume = usb_amradio_resume,
+#endif
.id_table = usb_amradio_device_table,
.supports_autosuspend = 1,
};