diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/raw.c | 5 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-core/dvbdev.c | 5 | ||||
-rw-r--r-- | drivers/usb/core/devio.c | 6 |
3 files changed, 4 insertions, 12 deletions
diff --git a/drivers/char/raw.c b/drivers/char/raw.c index 1f0d7c60c944..bbfa0e241cba 100644 --- a/drivers/char/raw.c +++ b/drivers/char/raw.c | |||
@@ -255,10 +255,7 @@ static const struct file_operations raw_ctl_fops = { | |||
255 | .owner = THIS_MODULE, | 255 | .owner = THIS_MODULE, |
256 | }; | 256 | }; |
257 | 257 | ||
258 | static struct cdev raw_cdev = { | 258 | static struct cdev raw_cdev; |
259 | .kobj = {.name = "raw", }, | ||
260 | .owner = THIS_MODULE, | ||
261 | }; | ||
262 | 259 | ||
263 | static int __init raw_init(void) | 260 | static int __init raw_init(void) |
264 | { | 261 | { |
diff --git a/drivers/media/dvb/dvb-core/dvbdev.c b/drivers/media/dvb/dvb-core/dvbdev.c index 56231d8edc07..18738faecbbc 100644 --- a/drivers/media/dvb/dvb-core/dvbdev.c +++ b/drivers/media/dvb/dvb-core/dvbdev.c | |||
@@ -103,10 +103,7 @@ static struct file_operations dvb_device_fops = | |||
103 | .open = dvb_device_open, | 103 | .open = dvb_device_open, |
104 | }; | 104 | }; |
105 | 105 | ||
106 | static struct cdev dvb_device_cdev = { | 106 | static struct cdev dvb_device_cdev; |
107 | .kobj = {.name = "dvb", }, | ||
108 | .owner = THIS_MODULE, | ||
109 | }; | ||
110 | 107 | ||
111 | int dvb_generic_open(struct inode *inode, struct file *file) | 108 | int dvb_generic_open(struct inode *inode, struct file *file) |
112 | { | 109 | { |
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 927a181120a9..fe98796d2ff1 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c | |||
@@ -1576,6 +1576,7 @@ static unsigned int usbdev_poll(struct file *file, struct poll_table_struct *wai | |||
1576 | } | 1576 | } |
1577 | 1577 | ||
1578 | const struct file_operations usbdev_file_operations = { | 1578 | const struct file_operations usbdev_file_operations = { |
1579 | .owner = THIS_MODULE, | ||
1579 | .llseek = usbdev_lseek, | 1580 | .llseek = usbdev_lseek, |
1580 | .read = usbdev_read, | 1581 | .read = usbdev_read, |
1581 | .poll = usbdev_poll, | 1582 | .poll = usbdev_poll, |
@@ -1625,10 +1626,7 @@ static struct notifier_block usbdev_nb = { | |||
1625 | }; | 1626 | }; |
1626 | #endif | 1627 | #endif |
1627 | 1628 | ||
1628 | static struct cdev usb_device_cdev = { | 1629 | static struct cdev usb_device_cdev; |
1629 | .kobj = {.name = "usb_device", }, | ||
1630 | .owner = THIS_MODULE, | ||
1631 | }; | ||
1632 | 1630 | ||
1633 | int __init usb_devio_init(void) | 1631 | int __init usb_devio_init(void) |
1634 | { | 1632 | { |