Skip to content

Commit

Permalink
[media] ati_remote: parent input devices to usb interface
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anssi Hannula authored and Mauro Carvalho Chehab committed Sep 22, 2011
1 parent c34516e commit 44fd0b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/rc/ati_remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ static void ati_remote_input_init(struct ati_remote *ati_remote)
idev->phys = ati_remote->mouse_phys;

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)
Expand All @@ -712,7 +712,7 @@ static void ati_remote_rc_init(struct ati_remote *ati_remote)
rdev->input_phys = ati_remote->rc_phys;

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;
}
Expand Down

0 comments on commit 44fd0b6

Please sign in to comment.