ACPI / PAD: don't register acpi_pad driver if running as Xen dom0
authorJuergen Gross <jgross@suse.com>
Wed, 12 Oct 2016 11:11:45 +0000 (13:11 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 12 Oct 2016 19:44:04 +0000 (21:44 +0200)
commite311404f7925f6879817ebf471651c0bb5935604
treef2387d44cbf4ca1981fa4f023a7ad9dd0c7dcc7f
parentc8d2bc9bc39ebea8437fd974fdbc21847bb897a3
ACPI / PAD: don't register acpi_pad driver if running as Xen dom0

When running as Xen dom0 a special processor_aggregator driver is
needed.  Don't register the standard driver in this case.

Without that check an error message:

"Error: Driver 'processor_aggregator' is already registered,
aborting..."

will be displayed.

Signed-off-by: Juergen Gross <jgross@suse.com>
[ rjw: Minor fixups ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_pad.c