From bf744dcc76a98cb7954b1bce23b4410615ff9272 Mon Sep 17 00:00:00 2001 From: Haojian Zhuang Date: Mon, 30 Nov 2009 12:03:22 -0500 Subject: [PATCH] backlight: fix device structure in da9034 Original API is used in update_status, dev structure is used as parameter. After the API is invoked in probe function, we should use correct structure as parameter. Signed-off-by: Haojian Zhuang --- drivers/video/backlight/da903x_bl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/video/backlight/da903x_bl.c b/drivers/video/backlight/da903x_bl.c index 9cbd01d..7fcb0eb 100644 --- a/drivers/video/backlight/da903x_bl.c +++ b/drivers/video/backlight/da903x_bl.c @@ -131,7 +131,7 @@ static int da903x_backlight_probe(struct platform_device *pdev) /* adjust the WLED output current */ if (pdata) - da903x_write(dev, DA9034_WLED_CONTROL2, + da903x_write(data->da903x_dev, DA9034_WLED_CONTROL2, DA9034_WLED_ISET(pdata->output_current)); bl = backlight_device_register(pdev->name, data->da903x_dev, -- 1.5.6.5