From patchwork Mon Feb 1 16:30:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Mason X-Patchwork-Id: 76110 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o11GW0pp025662 for ; Mon, 1 Feb 2010 16:32:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755539Ab0BAQb7 (ORCPT ); Mon, 1 Feb 2010 11:31:59 -0500 Received: from acsinet12.oracle.com ([141.146.126.234]:22955 "EHLO acsinet12.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755532Ab0BAQb7 (ORCPT ); Mon, 1 Feb 2010 11:31:59 -0500 Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet12.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o11GVfak010019 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 1 Feb 2010 16:31:42 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o11DhRXQ027584; Mon, 1 Feb 2010 16:31:40 GMT Received: from abhmt002.oracle.com by acsmt354.oracle.com with ESMTP id 4083981265041864; Mon, 01 Feb 2010 08:31:04 -0800 Received: from localhost (/66.66.148.185) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 01 Feb 2010 08:31:02 -0800 Date: Mon, 1 Feb 2010 11:30:44 -0500 From: Chris Mason To: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Alex Chiang Subject: [PATCH] set dock_station->flags to zero during dock_add Message-ID: <20100201163043.GA3240@think> Mail-Followup-To: Chris Mason , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Alex Chiang MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4B6701EC.01C5:SCFMA4539814,ss=1,fgs=0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 01 Feb 2010 16:32:00 +0000 (UTC) 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);