Patchwork set dock_station->flags to zero during dock_add

login
register
mail settings
Submitter Chris Mason
Date Feb. 1, 2010, 4:30 p.m.
Message ID <20100201163043.GA3240@think>
Download mbox | patch
Permalink /patch/76110/
State Superseded, archived
Headers show

Comments

Patch

diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
index bbc2c13..0a449ad 100644
--- a/drivers/acpi/dock.c
+++ b/drivers/acpi/dock.c
@@ -944,6 +945,7 @@  static int dock_add(acpi_handle handle)
 	dock_station->handle = handle;
 	dock_station->dock_device = dd;
 	dock_station->last_dock_time = jiffies - HZ;
+	dock_station->flags = 0;
 
 	mutex_init(&dock_station->hp_lock);
 	spin_lock_init(&dock_station->dd_lock);