sony_acpi: Fix sony_acpi backlight registration and unregistration
authorMattia Dongili <malattia@linux.it>
Sat, 13 Jan 2007 22:04:41 +0000 (23:04 +0100)
committerLen Brown <len.brown@intel.com>
Tue, 13 Feb 2007 08:06:44 +0000 (03:06 -0500)
commit7df03b82ed081777d2393ff8a5fb9d4a3a560f26
tree908c83698ec370bef246396fcc9e0acc30fc2a21
parent57ede701af3bc0c153070133e7831332ffa1d761
sony_acpi: Fix sony_acpi backlight registration and unregistration

Initialize the current brightness if the driver registration
was successful and unregister the driver in the error exit path.

Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/sony_acpi.c