aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/dock.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/dock.c')
-rw-r--r--drivers/acpi/dock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
index 4b395b1e61b2..f19f643fb362 100644
--- a/drivers/acpi/dock.c
+++ b/drivers/acpi/dock.c
@@ -738,7 +738,8 @@ static void dock_notify(acpi_handle handle, u32 event, void *data)
738 /* Fall back */ 738 /* Fall back */
739 case ACPI_NOTIFY_EJECT_REQUEST: 739 case ACPI_NOTIFY_EJECT_REQUEST:
740 begin_undock(ds); 740 begin_undock(ds);
741 if (immediate_undock || surprise_removal) 741 if ((immediate_undock && !(ds->flags & DOCK_IS_ATA))
742 || surprise_removal)
742 handle_eject_request(ds, event); 743 handle_eject_request(ds, event);
743 else 744 else
744 dock_event(ds, event, UNDOCK_EVENT); 745 dock_event(ds, event, UNDOCK_EVENT);