fujitsu-laptop: driver [un]registration fixes
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 31 Jul 2009 08:46:02 +0000 (18:16 +0930)
committerLen Brown <len.brown@intel.com>
Fri, 28 Aug 2009 19:17:08 +0000 (15:17 -0400)
commit72afeeafe54853881a4e53dc78d538e249130ad8
treef31f9be2ed7856762b7c763f9c00aabc9b69f6b2
parent67059406219d30a36b7ca93f863eb1f3032f05ce
fujitsu-laptop: driver [un]registration fixes

* Move led_classdev_unregister() calls from fujitsu_cleanup() to
  acpi_fujitsu_hotkey_remove().

* Fix ordering in fujitsu_cleanup().

* Fix backlight_device_register() failure handling in fujitsu_init().

* Add missing sysfs group removal on failure to fujitsu_init().

* Add input device unregistering on failure to acpi_fujitsu_add()
  and acpi_fujitsu_hotkey_add().

* Add input device unregistering/freeing to acpi_fujitsu_remove()
  and acpi_fujitsu_hotkey_remove() (also remove superfluous 'device'
  and 'acpi_driver_data(device)' checks while at it).

* Do few minor cleanups.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Acked-by: Jonathan Woithe <jwoithe@physics.adelaide.edu.au>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/fujitsu-laptop.c
This page took 0.025125 seconds and 5 git commands to generate.