From 2cf7bc8a039d6a6b4558c8c3a319ea15eccab60c Mon Sep 17 00:00:00 2001 From: Jarkko Nikula Date: Mon, 18 Feb 2008 09:37:26 +0200 Subject: [PATCH] CBUS: Fix retu-headset driver by not using removed input_dev->cdev field cdev field was removed recently so use input_dev->dev.parent instead when specifying device position in sysfs tree. Signed-off-by: Jarkko Nikula Signed-off-by: Tony Lindgren --- drivers/cbus/retu-headset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cbus/retu-headset.c b/drivers/cbus/retu-headset.c index 3161658ea1f..f9de5cd38c3 100644 --- a/drivers/cbus/retu-headset.c +++ b/drivers/cbus/retu-headset.c @@ -231,7 +231,7 @@ static int __init retu_headset_probe(struct platform_device *pdev) goto err1; } hs->idev->name = "retu-headset"; - hs->idev->cdev.dev = &pdev->dev; + hs->idev->dev.parent = &pdev->dev; hs->idev->private = hs; set_bit(EV_KEY, hs->idev->evbit); set_bit(RETU_HEADSET_KEY, hs->idev->keybit); -- 2.41.1