summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-12-03 21:13:13 -0800
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-03 21:13:13 -0800
commit313e51a6c4a38ae0441b77f860d48f800bb2e861 (patch)
treea6b91e68432e13bc898038575300a74945023d3a /v4l
parentea995c822add678fd16748cc6b9d1f180ca3e801 (diff)
downloadmediapointer-dvb-s2-313e51a6c4a38ae0441b77f860d48f800bb2e861.tar.gz
mediapointer-dvb-s2-313e51a6c4a38ae0441b77f860d48f800bb2e861.tar.bz2
backport commit 0eade1f930fa3ba6461b34baf3ed8fa7c4abc40f
From: Mauro Carvalho Chehab <mchehab@redhat.com> Author: Wang Chen <wangchen@cn.fujitsu.com> dvb: Kill directly reference of netdev->priv Simply replace netdev->priv with netdev_priv(). kernel-sync: Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'v4l')
-rw-r--r--v4l/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 49c89ea2d..de192e8cf 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -339,6 +339,10 @@ usb_endpoint_is_int_in(const struct usb_endpoint_descriptor *epd)
#define list_first_entry(ptr, type, member) \
list_entry((ptr)->next, type, member)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 28)
+#define netdev_priv(dev) (dev->priv)
+#endif
+
/*
* uninitialized_var() macro
*/