diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/usbvideo/konicawc.c | 2 | ||||
-rw-r--r-- | drivers/media/video/usbvideo/quickcam_messenger.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/video/usbvideo/konicawc.c b/drivers/media/video/usbvideo/konicawc.c index 3e93f8058770..719b17ce83f8 100644 --- a/drivers/media/video/usbvideo/konicawc.c +++ b/drivers/media/video/usbvideo/konicawc.c | |||
@@ -241,8 +241,6 @@ static void konicawc_register_input(struct konicawc *cam, struct usb_device *dev | |||
241 | input_dev->evbit[0] = BIT_MASK(EV_KEY); | 241 | input_dev->evbit[0] = BIT_MASK(EV_KEY); |
242 | input_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0); | 242 | input_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0); |
243 | 243 | ||
244 | input_dev->private = cam; | ||
245 | |||
246 | error = input_register_device(cam->input); | 244 | error = input_register_device(cam->input); |
247 | if (error) { | 245 | if (error) { |
248 | warn("Failed to register camera's input device, err: %d\n", | 246 | warn("Failed to register camera's input device, err: %d\n", |
diff --git a/drivers/media/video/usbvideo/quickcam_messenger.c b/drivers/media/video/usbvideo/quickcam_messenger.c index d847273eeba0..6438bc1f506d 100644 --- a/drivers/media/video/usbvideo/quickcam_messenger.c +++ b/drivers/media/video/usbvideo/quickcam_messenger.c | |||
@@ -105,8 +105,6 @@ static void qcm_register_input(struct qcm *cam, struct usb_device *dev) | |||
105 | input_dev->evbit[0] = BIT_MASK(EV_KEY); | 105 | input_dev->evbit[0] = BIT_MASK(EV_KEY); |
106 | input_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0); | 106 | input_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0); |
107 | 107 | ||
108 | input_dev->private = cam; | ||
109 | |||
110 | error = input_register_device(cam->input); | 108 | error = input_register_device(cam->input); |
111 | if (error) { | 109 | if (error) { |
112 | warn("Failed to register camera's input device, err: %d\n", | 110 | warn("Failed to register camera's input device, err: %d\n", |