backlight: progear_bl - Use platform_device_register_simple()
commit6cd6f35a4b0ff86638df986efaa307de91f88ae8
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 17 Nov 2008 15:19:29 +0000 (17 15:19 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 8 Jan 2009 12:37:28 +0000 (8 12:37 +0000)
tree520586777b71aa5534df43b98a32fa1df7580008
parent3bcdcc0e6675e6fcd1f27d119464036fb54f53b7
backlight: progear_bl - Use platform_device_register_simple()

Use platform_device_register_simple() and also fix error
handling when platform_device_alloc() fails (progearbl_driver
is left registered).

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/video/backlight/progear_bl.c