aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2011-05-12 07:56:30 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-05-12 12:30:27 -0400
commit634610ac6cdea8bce09a262cefe46c8705dfd209 (patch)
treecdd9153e4dafb53ae13dd5c180a5848a1e1df637 /drivers/video/omap2
parent5a8b572d832772722c3b3b7578e7fb968560fcf3 (diff)
OMAP: DSS2: Taal: Use device name in backlight_device_register
Panel Taal driver uses the string "taal" to register for a backlight device. This causes backlight_device_register() to fail when a second taal panel is added. Use dev_name(&dssdev->dev) as a parameter instead of the string. Note: This will break backlight related sysfs commands. Use the name as generated by the DSS2 driver, in the form "displayi", which represents the ith registered display device. Signed-off-by: Archit Taneja <archit@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r--drivers/video/omap2/displays/panel-taal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/omap2/displays/panel-taal.c b/drivers/video/omap2/displays/panel-taal.c
index 90d79c0bc9f4..fdd5d4ae437d 100644
--- a/drivers/video/omap2/displays/panel-taal.c
+++ b/drivers/video/omap2/displays/panel-taal.c
@@ -1031,8 +1031,8 @@ static int taal_probe(struct omap_dss_device *dssdev)
1031 props.max_brightness = 127; 1031 props.max_brightness = 127;
1032 1032
1033 props.type = BACKLIGHT_RAW; 1033 props.type = BACKLIGHT_RAW;
1034 bldev = backlight_device_register("taal", &dssdev->dev, dssdev, 1034 bldev = backlight_device_register(dev_name(&dssdev->dev), &dssdev->dev,
1035 &taal_bl_ops, &props); 1035 dssdev, &taal_bl_ops, &props);
1036 if (IS_ERR(bldev)) { 1036 if (IS_ERR(bldev)) {
1037 r = PTR_ERR(bldev); 1037 r = PTR_ERR(bldev);
1038 goto err_bl; 1038 goto err_bl;