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>
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);