]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/backlight/pwm_bl.c
Merge branch 'omap-pool'
[linux-2.6-omap-h63xx.git] / drivers / video / backlight / pwm_bl.c
index ea07258565f0e686186ba3479baf5b45ed92ea29..e641584e212e64c087cada21136b6840ff18d2e5 100644 (file)
@@ -3,7 +3,7 @@
  *
  * simple PWM based backlight control, board code has to setup
  * 1) pin configuration so PWM waveforms can output
- * 2) platform_data casts to the PWM id (0/1/2/3 on PXA)
+ * 2) platform_data being correctly configured
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
@@ -97,7 +97,7 @@ static int pwm_backlight_probe(struct platform_device *pdev)
        } else
                dev_dbg(&pdev->dev, "got pwm for backlight\n");
 
-       bl = backlight_device_register(pdev->name, &pdev->dev,
+       bl = backlight_device_register(dev_name(&pdev->dev), &pdev->dev,
                        pb, &pwm_backlight_ops);
        if (IS_ERR(bl)) {
                dev_err(&pdev->dev, "failed to register backlight\n");