dock: fix eject request process (2.6.27-rc1 regression)
authorShaohua Li <shaohua.li@intel.com>
Thu, 28 Aug 2008 02:02:41 +0000 (10:02 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 24 Sep 2008 02:57:19 +0000 (22:57 -0400)
commit 2a7feab28d3fc060d320eaba192e49dad1079b7e introduces a bug.
My thinkpad actually will send an eject_request and we should follow the
eject process to finish the eject, otherwise system still thinks the bay
is present.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/dock.c

index 25d2161ae9d929d3e25d789a0085224fcd03f7a2..78d27cef573fde19491e02f5a44dbef4793268fb 100644 (file)
@@ -575,11 +575,6 @@ static int handle_eject_request(struct dock_station *ds, u32 event)
         */
        dock_event(ds, event, UNDOCK_EVENT);
 
-       if (!dock_present(ds)) {
-               complete_undock(ds);
-               return -ENODEV;
-       }
-
        hotplug_dock_devices(ds, ACPI_NOTIFY_EJECT_REQUEST);
        undock(ds);
        eject_dock(ds);