From 0d547d541454a035e90015be88e182a058321134 Mon Sep 17 00:00:00 2001 From: Andrzej Zaborowski Date: Tue, 9 Jan 2007 15:32:29 -0800 Subject: [PATCH] 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 --- drivers/video/backlight/omap_bl.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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); -- 2.41.1