Commit 44fd0b60 authored by Anssi Hannula's avatar Anssi Hannula Committed by Mauro Carvalho Chehab

[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: default avatarAnssi Hannula <anssi.hannula@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent c34516e5
...@@ -693,7 +693,7 @@ static void ati_remote_input_init(struct ati_remote *ati_remote) ...@@ -693,7 +693,7 @@ static void ati_remote_input_init(struct ati_remote *ati_remote)
idev->phys = ati_remote->mouse_phys; idev->phys = ati_remote->mouse_phys;
usb_to_input_id(ati_remote->udev, &idev->id); usb_to_input_id(ati_remote->udev, &idev->id);
idev->dev.parent = &ati_remote->udev->dev; idev->dev.parent = &ati_remote->interface->dev;
} }
static void ati_remote_rc_init(struct ati_remote *ati_remote) 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,7 +712,7 @@ static void ati_remote_rc_init(struct ati_remote *ati_remote)
rdev->input_phys = ati_remote->rc_phys; rdev->input_phys = ati_remote->rc_phys;
usb_to_input_id(ati_remote->udev, &rdev->input_id); usb_to_input_id(ati_remote->udev, &rdev->input_id);
rdev->dev.parent = &ati_remote->udev->dev; rdev->dev.parent = &ati_remote->interface->dev;
rdev->map_name = RC_MAP_ATI_X10; rdev->map_name = RC_MAP_ATI_X10;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment