aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/dabusb.c4
-rw-r--r--drivers/staging/iio/industrialio-core.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/dabusb.c b/drivers/media/video/dabusb.c
index 0664d111085f..ee43876adb06 100644
--- a/drivers/media/video/dabusb.c
+++ b/drivers/media/video/dabusb.c
@@ -748,14 +748,14 @@ static const struct file_operations dabusb_fops =
748 .release = dabusb_release, 748 .release = dabusb_release,
749}; 749};
750 750
751static char *dabusb_nodename(struct device *dev) 751static char *dabusb_devnode(struct device *dev, mode_t *mode)
752{ 752{
753 return kasprintf(GFP_KERNEL, "usb/%s", dev_name(dev)); 753 return kasprintf(GFP_KERNEL, "usb/%s", dev_name(dev));
754} 754}
755 755
756static struct usb_class_driver dabusb_class = { 756static struct usb_class_driver dabusb_class = {
757 .name = "dabusb%d", 757 .name = "dabusb%d",
758 .nodename = dabusb_nodename, 758 .devnode = dabusb_devnode,
759 .fops = &dabusb_fops, 759 .fops = &dabusb_fops,
760 .minor_base = DABUSB_MINOR, 760 .minor_base = DABUSB_MINOR,
761}; 761};
diff --git a/drivers/staging/iio/industrialio-core.c b/drivers/staging/iio/industrialio-core.c
index 660a9c1a1f3f..1fa18f255814 100644
--- a/drivers/staging/iio/industrialio-core.c
+++ b/drivers/staging/iio/industrialio-core.c
@@ -39,14 +39,14 @@ dev_t iio_devt;
39EXPORT_SYMBOL(iio_devt); 39EXPORT_SYMBOL(iio_devt);
40 40
41#define IIO_DEV_MAX 256 41#define IIO_DEV_MAX 256
42static char *iio_nodename(struct device *dev) 42static char *iio_devnode(struct device *dev, mode_t *mode)
43{ 43{
44 return kasprintf(GFP_KERNEL, "iio/%s", dev_name(dev)); 44 return kasprintf(GFP_KERNEL, "iio/%s", dev_name(dev));
45} 45}
46 46
47struct class iio_class = { 47struct class iio_class = {
48 .name = "iio", 48 .name = "iio",
49 .nodename = iio_nodename, 49 .devnode = iio_devnode,
50}; 50};
51EXPORT_SYMBOL(iio_class); 51EXPORT_SYMBOL(iio_class);
52 52