aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlex Chiang <achiang@hp.com>2009-10-19 17:14:35 -0400
committerLen Brown <len.brown@intel.com>2009-12-16 03:03:10 -0500
commitc6f1905ea91bf56a921c6eb574488869c8c3eeff (patch)
tree0b5a3edeb314835cdf365087041ef9a886087cba /drivers
parentf69cfdd24ac40ab7bbd00d6ad85e003da755e3a0 (diff)
ACPI: dock: remove global 'dock_device_name'
We only use it in one spot, so it probably gets optimized out, but there's still no need to use a global variable for this. Signed-off-by: Alex Chiang <achiang@hp.com> Acked-by: Shaohua Li <shaohua.li@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/dock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
index ee9829b47e20..0a1221854a25 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 "
50 " before undocking"); 50 " before undocking");
51 51
52static struct atomic_notifier_head dock_notifier_list; 52static struct atomic_notifier_head dock_notifier_list;
53static char dock_device_name[] = "dock";
54 53
55static const struct acpi_device_id dock_device_ids[] = { 54static const struct acpi_device_id dock_device_ids[] = {
56 {"LNXDOCK", 0}, 55 {"LNXDOCK", 0},
@@ -964,7 +963,7 @@ static int dock_add(acpi_handle handle)
964 963
965 /* initialize platform device stuff */ 964 /* initialize platform device stuff */
966 dock_station->dock_device = 965 dock_station->dock_device =
967 platform_device_register_simple(dock_device_name, 966 platform_device_register_simple("dock",
968 dock_station_count, NULL, 0); 967 dock_station_count, NULL, 0);
969 dock_device = dock_station->dock_device; 968 dock_device = dock_station->dock_device;
970 if (IS_ERR(dock_device)) { 969 if (IS_ERR(dock_device)) {