From eb9001cd8ffff9c9b1ed1ea85d36c862bea964c0 Mon Sep 17 00:00:00 2001 From: Bruno Prémont Date: Sun, 19 Aug 2012 19:33:56 +0200 Subject: HID: picoLCD: use proper device as input_dev parent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bruno Prémont Signed-off-by: Jiri Kosina --- drivers/hid/hid-picolcd_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/hid/hid-picolcd_core.c') diff --git a/drivers/hid/hid-picolcd_core.c b/drivers/hid/hid-picolcd_core.c index 0d0c798e3eed..8c9ec1facdb4 100644 --- a/drivers/hid/hid-picolcd_core.c +++ b/drivers/hid/hid-picolcd_core.c @@ -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]); -- cgit v1.2.3