From: Andrzej Zaborowski Date: Tue, 9 Jan 2007 23:32:29 +0000 (-0800) Subject: Make omap_bl build again after API change X-Git-Tag: v2.6.21-omap1~169 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0d547d541454a035e90015be88e182a058321134;p=linux-2.6-omap-h63xx.git Make omap_bl build again after API change Breakage spotted by Dirk Behme. Also remove comment about API glitch which has just been fixed. Signed-off-by: Andrzej Zaborowski Signed-off-by: Tony Lindgren --- diff --git a/drivers/video/backlight/omap_bl.c b/drivers/video/backlight/omap_bl.c index 22189b1a54c..3b57b278487 100644 --- a/drivers/video/backlight/omap_bl.c +++ b/drivers/video/backlight/omap_bl.c @@ -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);