Skip to content

Commit

Permalink
ACPI: dock: remove global 'dock_device_name'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Chiang authored and Len Brown committed Dec 16, 2009
1 parent f69cfdd commit c6f1905
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/acpi/dock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit c6f1905

Please sign in to comment.