diff options
Diffstat (limited to 'drivers/acpi/dock.c')
-rw-r--r-- | drivers/acpi/dock.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index 3fe29e992be8..81514a4918cc 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c | |||
@@ -725,6 +725,7 @@ static void dock_notify(acpi_handle handle, u32 event, void *data) | |||
725 | complete_dock(ds); | 725 | complete_dock(ds); |
726 | dock_event(ds, event, DOCK_EVENT); | 726 | dock_event(ds, event, DOCK_EVENT); |
727 | dock_lock(ds, 1); | 727 | dock_lock(ds, 1); |
728 | acpi_update_gpes(); | ||
728 | break; | 729 | break; |
729 | } | 730 | } |
730 | if (dock_present(ds) || dock_in_progress(ds)) | 731 | if (dock_present(ds) || dock_in_progress(ds)) |
@@ -929,7 +930,7 @@ static struct attribute_group dock_attribute_group = { | |||
929 | * allocated and initialize a new dock station device. Find all devices | 930 | * allocated and initialize a new dock station device. Find all devices |
930 | * that are on the dock station, and register for dock event notifications. | 931 | * that are on the dock station, and register for dock event notifications. |
931 | */ | 932 | */ |
932 | static int dock_add(acpi_handle handle) | 933 | static int __init dock_add(acpi_handle handle) |
933 | { | 934 | { |
934 | int ret, id; | 935 | int ret, id; |
935 | struct dock_station ds, *dock_station; | 936 | struct dock_station ds, *dock_station; |
@@ -1023,7 +1024,7 @@ static int dock_remove(struct dock_station *ds) | |||
1023 | * | 1024 | * |
1024 | * This is called by acpi_walk_namespace to look for dock stations. | 1025 | * This is called by acpi_walk_namespace to look for dock stations. |
1025 | */ | 1026 | */ |
1026 | static acpi_status | 1027 | static __init acpi_status |
1027 | find_dock(acpi_handle handle, u32 lvl, void *context, void **rv) | 1028 | find_dock(acpi_handle handle, u32 lvl, void *context, void **rv) |
1028 | { | 1029 | { |
1029 | if (is_dock(handle)) | 1030 | if (is_dock(handle)) |
@@ -1032,7 +1033,7 @@ find_dock(acpi_handle handle, u32 lvl, void *context, void **rv) | |||
1032 | return AE_OK; | 1033 | return AE_OK; |
1033 | } | 1034 | } |
1034 | 1035 | ||
1035 | static acpi_status | 1036 | static __init acpi_status |
1036 | find_bay(acpi_handle handle, u32 lvl, void *context, void **rv) | 1037 | find_bay(acpi_handle handle, u32 lvl, void *context, void **rv) |
1037 | { | 1038 | { |
1038 | /* If bay is a dock, it's already handled */ | 1039 | /* If bay is a dock, it's already handled */ |