diff options
author | Alex Chiang <achiang@hp.com> | 2009-10-19 23:14:35 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-12-16 09:03:10 +0100 |
commit | c6f1905ea91bf56a921c6eb574488869c8c3eeff (patch) | |
tree | 0b5a3edeb314835cdf365087041ef9a886087cba /drivers/acpi/dock.c | |
parent | ACPI: dock: combine add|alloc_dock_dependent_device (v2) (diff) | |
download | linux-c6f1905ea91bf56a921c6eb574488869c8c3eeff.tar.xz linux-c6f1905ea91bf56a921c6eb574488869c8c3eeff.zip |
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/acpi/dock.c')
-rw-r--r-- | drivers/acpi/dock.c | 3 |
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 " " 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}, @@ -964,7 +963,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; if (IS_ERR(dock_device)) { |