The mode parameter type was changed in the callback function devnode in
struct device_type.
commit
2c9ede55ecec58099b72e4bb8eab719f32f72c31
Author: Al Viro <viro@zeniv.linux.org.uk>
Date: Sat Jul 23 20:24:48 2011 -0400
switch device_get_devnode() and ->devnode() to umode_t *
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
--- /dev/null
+The mode parameter type was changed in the callback function devnode in
+struct device_type.
+
+commit 2c9ede55ecec58099b72e4bb8eab719f32f72c31
+Author: Al Viro <viro@zeniv.linux.org.uk>
+Date: Sat Jul 23 20:24:48 2011 -0400
+
+ switch device_get_devnode() and ->devnode() to umode_t *
--- /dev/null
+--- a/drivers/media/pci/ddbridge/ddbridge-core.c
++++ b/drivers/media/pci/ddbridge/ddbridge-core.c
+@@ -1479,7 +1479,11 @@ static const struct file_operations ddb_
+ .open = ddb_open,
+ };
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)
+ static char *ddb_devnode(struct device *device, umode_t *mode)
++#else
++static char *ddb_devnode(struct device *device, mode_t *mode)
++#endif
+ {
+ struct ddb *dev = dev_get_drvdata(device);
+
--- /dev/null
+--- a/drivers/media/dvb-core/dvbdev.c
++++ b/drivers/media/dvb-core/dvbdev.c
+@@ -442,7 +442,11 @@ static int dvb_uevent(struct device *dev
+ return 0;
+ }
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)
+ static char *dvb_devnode(struct device *dev, umode_t *mode)
++#else
++static char *dvb_devnode(struct device *dev, mode_t *mode)
++#endif
+ {
+ struct dvb_device *dvbdev = dev_get_drvdata(dev);
+
--- /dev/null
+--- a/drivers/media/rc/rc-main.c
++++ b/drivers/media/rc/rc-main.c
+@@ -755,7 +755,11 @@ static void ir_close(struct input_dev *i
+ }
+
+ /* class for /sys/class/rc */
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)
+ static char *rc_devnode(struct device *dev, umode_t *mode)
++#else
++static char *rc_devnode(struct device *dev, mode_t *mode)
++#endif
+ {
+ return kasprintf(GFP_KERNEL, "rc/%s", dev_name(dev));
+ }