diff options
author | Anssi Hannula <anssi.hannula@iki.fi> | 2011-08-06 17:18:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-22 09:52:03 -0400 |
commit | 44fd0b600fbc21de9d771f0a5db79d24b321fce7 (patch) | |
tree | b6393d0ea2adbb16c34a2978a6d299144f5b1b7e /drivers/media/rc | |
parent | c34516e599d9c00388ab49e88f3e9e38f8fc5346 (diff) |
[media] ati_remote: parent input devices to usb interface
Parent the input devices to usb_interface instead of usb_device. This
fixes (at least) persistent input device nodes.
Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r-- | drivers/media/rc/ati_remote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/rc/ati_remote.c b/drivers/media/rc/ati_remote.c index 4b4509a6d9d5..7a47d7e73b57 100644 --- a/drivers/media/rc/ati_remote.c +++ b/drivers/media/rc/ati_remote.c | |||
@@ -693,7 +693,7 @@ static void ati_remote_input_init(struct ati_remote *ati_remote) | |||
693 | idev->phys = ati_remote->mouse_phys; | 693 | idev->phys = ati_remote->mouse_phys; |
694 | 694 | ||
695 | usb_to_input_id(ati_remote->udev, &idev->id); | 695 | usb_to_input_id(ati_remote->udev, &idev->id); |
696 | idev->dev.parent = &ati_remote->udev->dev; | 696 | idev->dev.parent = &ati_remote->interface->dev; |
697 | } | 697 | } |
698 | 698 | ||
699 | static void ati_remote_rc_init(struct ati_remote *ati_remote) | 699 | static void ati_remote_rc_init(struct ati_remote *ati_remote) |
@@ -712,7 +712,7 @@ static void ati_remote_rc_init(struct ati_remote *ati_remote) | |||
712 | rdev->input_phys = ati_remote->rc_phys; | 712 | rdev->input_phys = ati_remote->rc_phys; |
713 | 713 | ||
714 | usb_to_input_id(ati_remote->udev, &rdev->input_id); | 714 | usb_to_input_id(ati_remote->udev, &rdev->input_id); |
715 | rdev->dev.parent = &ati_remote->udev->dev; | 715 | rdev->dev.parent = &ati_remote->interface->dev; |
716 | 716 | ||
717 | rdev->map_name = RC_MAP_ATI_X10; | 717 | rdev->map_name = RC_MAP_ATI_X10; |
718 | } | 718 | } |