summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-06-28 21:46:22 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-06-28 21:46:22 -0300
commitcc58201a750068a54b6d70a398936d890639f013 (patch)
tree799e8bcbf633ed27c018728e67997c0cf4e046c3 /v4l
parent4f2d17789141dd027ea033ac9a6f8b2922bf5a58 (diff)
downloadmediapointer-dvb-s2-cc58201a750068a54b6d70a398936d890639f013.tar.gz
mediapointer-dvb-s2-cc58201a750068a54b6d70a398936d890639f013.tar.bz2
Fix s2255drv compilation against older kernels
From: Mauro Carvalho Chehab <mchehab@infradead.org> As reported by Hermann Pitton: CC [M] /mnt/xfer/mercurial/v4l-dvb-head/v4l-dvb/v4l/s2255drv.o s2255drv.c: In function 'vidioc_querycap': s2255drv.c:809: error: implicit declaration of function 'dev_name' s2255drv.c:809: warning: passing argument 2 of 'strlcpy' makes pointer from integer without a cast Tested with kernel 2.6.25.6 Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l')
-rw-r--r--v4l/compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 69a86bb72..88afe3d83 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -592,6 +592,8 @@ static inline struct proc_dir_entry *proc_create_data(const char *a,
( h ), \
( x ) ) )
+#define dev_name(dev) ((dev)->bus_id)
+
#endif
#endif