]> git.karo-electronics.de Git - karo-tx-linux.git/commit
OMAP: DSS2: Taal: Use device name in backlight_device_register
authorArchit Taneja <archit@ti.com>
Thu, 12 May 2011 11:56:30 +0000 (17:26 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 12 May 2011 16:30:27 +0000 (19:30 +0300)
commit634610ac6cdea8bce09a262cefe46c8705dfd209
treecdd9153e4dafb53ae13dd5c180a5848a1e1df637
parent5a8b572d832772722c3b3b7578e7fb968560fcf3
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>
drivers/video/omap2/displays/panel-taal.c