summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/dock.c
diff options
context:
space:
mode:
authorShaohua Li <shaohua.li@intel.com>2008-08-28 10:05:45 +0800
committerLen Brown <len.brown@intel.com>2008-09-23 23:16:41 -0400
commitf730ae1838635a02aa60834762c61566911d004c (patch)
tree40318e97b65902a86e0b6eacac4bdaf7fd702fad /drivers/acpi/dock.c
parent19cd847ab24fefe9e50101ec94479e0400a08650 (diff)
downloadlinux-f730ae1838635a02aa60834762c61566911d004c.tar.gz
linux-f730ae1838635a02aa60834762c61566911d004c.tar.bz2
linux-f730ae1838635a02aa60834762c61566911d004c.zip
libata: remove functions now handed by ACPI dock driver
dock driver can handle ata(bay) hotplug now. dock driver already handles _EJ0 and _STA, so remove them. Also libata doesn't need register notification handler anymore. Signed-off-by: Shaohua Li <shaohua.li@intel.com> Acked-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Len Brown <len.brown@intel.com>
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)
/* Fall back */
case ACPI_NOTIFY_EJECT_REQUEST:
begin_undock(ds);
- if (immediate_undock || surprise_removal)
+ if ((immediate_undock && !(ds->flags & DOCK_IS_ATA))
+ || surprise_removal)
handle_eject_request(ds, event);
else
dock_event(ds, event, UNDOCK_EVENT);