From 313e51a6c4a38ae0441b77f860d48f800bb2e861 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Wed, 3 Dec 2008 21:13:13 -0800 Subject: backport commit 0eade1f930fa3ba6461b34baf3ed8fa7c4abc40f From: Mauro Carvalho Chehab Author: Wang Chen dvb: Kill directly reference of netdev->priv Simply replace netdev->priv with netdev_priv(). kernel-sync: Priority: normal Signed-off-by: Mauro Carvalho Chehab --- v4l/compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'v4l') 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 */ -- cgit v1.2.3