]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/acpi/dock.c
ACPI / dock: Associate dock platform devices with ACPI device objects
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 15 Feb 2014 23:09:47 +0000 (00:09 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 16 Feb 2014 00:51:16 +0000 (01:51 +0100)
commitaf8874491de6f03237df5e20d87324cbbe226f19
tree37c742f13666f57d201ca81bf12e40cd91793ff3
parentb43109fa466e6e29091b3e62e6a6c8a0bd099beb
ACPI / dock: Associate dock platform devices with ACPI device objects

To allow user space to check which ACPI device object the dock
station is represented by, make acpi_dock_add() indicate to
platform_device_register_full() which ACPI device object should
be the companion of the new platform device.

This also ensures that the ACPI device object in question will
not go away while the dock platform device is present (which is
always).

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/dock.c