]> Pileus Git - ~andy/linux/commit
ACPI / PNP: skip ACPI device nodes associated with physical nodes already
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 23 Nov 2012 20:07:12 +0000 (21:07 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Nov 2012 20:07:12 +0000 (21:07 +0100)
commit2905875344f977acd188a2b0f1d163491e91459b
tree795b1d7cdaa5887d7c70e175330c08957d22c5f5
parent907ddf89d0bb7f57e1e21485900e6564a1ab512a
ACPI / PNP: skip ACPI device nodes associated with physical nodes already

Make pnpacpi_add_device() ignore ACPI device nodes already associated
with struct device objects representing physical devices.

In particular, this will prevent PNP device objects from being
created for ACPI device nodes already associated with platform
devices.

This change was originally proposed by Mika Westerberg.

[rjw: Modified the subject and changelog.]
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pnp/pnpacpi/core.c