]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Make omap_bl build again after API change
authorAndrzej Zaborowski <balrog@zabor.org>
Tue, 9 Jan 2007 23:32:29 +0000 (15:32 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 9 Jan 2007 23:32:29 +0000 (15:32 -0800)
Breakage spotted by Dirk Behme.
Also remove comment about API glitch which has just been fixed.

Signed-off-by: Andrzej Zaborowski <balrog@zabor.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/video/backlight/omap_bl.c

index 22189b1a54cb04b3410298bdae762d5ee67c14c1..3b57b2784876520b2743dc5dc543e4a8e28114ab 100644 (file)
@@ -152,12 +152,8 @@ static int omapbl_probe(struct platform_device *pdev)
        if (unlikely(!bl))
                return -ENOMEM;
 
-       /* REVISIT backlight API glitch:  we can't associate the
-        * class device with "pdev" ... probably pass &pdev->dev
-        * instead of a string.
-        */
-
-       dev = backlight_device_register("omap-bl", bl, &omapbl_data);
+       dev = backlight_device_register("omap-bl", &pdev->dev,
+                       bl, &omapbl_data);
        if (IS_ERR(dev)) {
                kfree(bl);
                return PTR_ERR(dev);