From: Jarkko Nikula Date: Mon, 18 Feb 2008 07:37:26 +0000 (+0200) Subject: CBUS: Fix retu-headset driver by not using removed input_dev->cdev field X-Git-Tag: v2.6.25-omap1~187 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2cf7bc8a039d6a6b4558c8c3a319ea15eccab60c;p=linux-2.6-omap-h63xx.git 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 --- 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);