]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
CBUS: Fix retu-headset driver by not using removed input_dev->cdev field
authorJarkko Nikula <jarkko.nikula@nokia.com>
Mon, 18 Feb 2008 07:37:26 +0000 (09:37 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 21 Feb 2008 00:07:57 +0000 (16:07 -0800)
cdev field was removed recently so use input_dev->dev.parent instead when
specifying device position in sysfs tree.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/cbus/retu-headset.c

index 3161658ea1fab31cb3224160f0b34b57c73b9057..f9de5cd38c30d23cb222ab9601e0ea816564e716 100644 (file)
@@ -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);