From: Holger Macht Date: Mon, 9 Jun 2008 23:22:24 +0000 (-0700) Subject: bay: exit if notify handler cannot be installed X-Git-Tag: v2.6.26-rc6~10^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7efd52a407bed6a2b02015b8ebbff7beba155392;p=pandora-kernel.git bay: exit if notify handler cannot be installed If acpi_install_notify_handler() for a bay device fails, the bay driver is superfluous. Most likely, another driver (like libata) is already caring about this device anyway. Furthermore, register_hotplug_dock_device(acpi_handle) from the dock driver must not be called twice with the same handler. This would result in an endless loop consuming 100% of CPU. So clean up and exit. Signed-off-by: Holger Macht Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- Reading git-diff-tree failed