From patchwork Wed Oct 14 22:46:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Chiang X-Patchwork-Id: 53886 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9EMmJog017336 for ; Wed, 14 Oct 2009 22:48:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934324AbZJNWrr (ORCPT ); Wed, 14 Oct 2009 18:47:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934026AbZJNWrM (ORCPT ); Wed, 14 Oct 2009 18:47:12 -0400 Received: from g4t0014.houston.hp.com ([15.201.24.17]:31495 "EHLO g4t0014.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761346AbZJNWrK (ORCPT ); Wed, 14 Oct 2009 18:47:10 -0400 Received: from g5t0030.atlanta.hp.com (g5t0030.atlanta.hp.com [16.228.8.142]) by g4t0014.houston.hp.com (Postfix) with ESMTP id 2E21624091; Wed, 14 Oct 2009 22:46:34 +0000 (UTC) Received: from ldl (linux.corp.hp.com [15.11.146.101]) by g5t0030.atlanta.hp.com (Postfix) with ESMTP id 05371240DE; Wed, 14 Oct 2009 22:46:27 +0000 (UTC) Received: from localhost (ldl.fc.hp.com [127.0.0.1]) by ldl (Postfix) with ESMTP id 15341CF000B; Wed, 14 Oct 2009 16:46:27 -0600 (MDT) Received: from ldl ([127.0.0.1]) by localhost (ldl.fc.hp.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6f941Zytk9Rm; Wed, 14 Oct 2009 16:46:27 -0600 (MDT) Received: from eh.fc.hp.com (eh.fc.hp.com [15.11.146.105]) by ldl (Postfix) with ESMTP id F2E73CF0007; Wed, 14 Oct 2009 16:46:26 -0600 (MDT) Received: from bob.kio (localhost [127.0.0.1]) by eh.fc.hp.com (Postfix) with ESMTP id D2F9C26144; Wed, 14 Oct 2009 16:46:26 -0600 (MDT) Subject: [PATCH v2 3/6] ACPI: dock: remove global 'dock_device_name' To: lenb@kernel.org From: Alex Chiang Cc: shaohua.li@intel.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Date: Wed, 14 Oct 2009 16:46:26 -0600 Message-ID: <20091014224626.18044.41454.stgit@bob.kio> In-Reply-To: <20091014224415.18044.88208.stgit@bob.kio> References: <20091014224415.18044.88208.stgit@bob.kio> User-Agent: StGit/0.14.3.386.gb02d MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index 10cf833..e57be55 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c @@ -50,7 +50,6 @@ MODULE_PARM_DESC(immediate_undock, "1 (default) will cause the driver to " " before undocking"); static struct atomic_notifier_head dock_notifier_list; -static char dock_device_name[] = "dock"; static const struct acpi_device_id dock_device_ids[] = { {"LNXDOCK", 0}, @@ -951,7 +950,7 @@ static int dock_add(acpi_handle handle) /* initialize platform device stuff */ dock_station->dock_device = - platform_device_register_simple(dock_device_name, + platform_device_register_simple("dock", dock_station_count, NULL, 0); dock_device = dock_station->dock_device; ret = IS_ERR(dock_device) ? PTR_ERR(dock_device) : 0;