From d5f7c5b27c4b583407f6464745b6bb56298c33eb Mon Sep 17 00:00:00 2001 From: Eric Miao Date: Tue, 10 Feb 2009 13:30:37 +0800 Subject: [PATCH] --- yaml --- r: 142054 b: refs/heads/master c: b8cdd877f2cbcc07b5a287b7273a8eaa4c11ad04 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/video/backlight/pwm_bl.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index b2746aaa7194..cb0de174d460 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1a468ba10c3bdbc25ef7aa7fecda20ee27007bdf +refs/heads/master: b8cdd877f2cbcc07b5a287b7273a8eaa4c11ad04 diff --git a/trunk/drivers/video/backlight/pwm_bl.c b/trunk/drivers/video/backlight/pwm_bl.c index ea07258565f0..e641584e212e 100644 --- a/trunk/drivers/video/backlight/pwm_bl.c +++ b/trunk/drivers/video/backlight/pwm_bl.c @@ -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");