HID: picoLCD: use proper device as input_dev parent
authorBruno Prémont <bonbons@linux-vserver.org>
Sun, 19 Aug 2012 17:33:56 +0000 (19:33 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 5 Sep 2012 09:48:08 +0000 (11:48 +0200)
Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-picolcd_core.c

index 0d0c798e3eedd9e356fd7563d81e222348728d24..8c9ec1facdb4fb236142fb2ecf32731b27874040 100644 (file)
@@ -446,7 +446,7 @@ static int picolcd_init_keys(struct picolcd_data *data,
        idev->id.vendor  = hdev->vendor;
        idev->id.product = hdev->product;
        idev->id.version = hdev->version;
-       idev->dev.parent = hdev->dev.parent;
+       idev->dev.parent = &hdev->dev;
        idev->keycode     = &data->keycode;
        idev->keycodemax  = PICOLCD_KEYS;
        idev->keycodesize = sizeof(data->keycode[0]);