backlight: tps65217_bl: Add missing platform_set_drvdata in tps65217_bl_probe
authorAxel Lin <axel.lin@ingics.com>
Sun, 30 Sep 2012 10:28:26 +0000 (18:28 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 30 Sep 2012 22:56:12 +0000 (00:56 +0200)
commitc6bed9deb6047179a6c58ace847f8b2129085e37
tree30351413fca5cd2883e806cfcf4c5941e8e27b26
parent2896434cf272acace1b7093d5e4ba8022ed11ac8
backlight: tps65217_bl: Add missing platform_set_drvdata in tps65217_bl_probe

Otherwise, we got NULL derefernce while calling backlight_device_unregister()
in tps65217_bl_remove().

Also convert to use module_platform_driver.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/video/backlight/tps65217_bl.c
This page took 0.05001 seconds and 5 git commands to generate.