mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
ACPI: PAD: xen: Stop setting acpi_device_name/class()
The driver sets acpi_device_name() and acpi_device_class() which are never read afterward, so make it stop doing that and drop the symbols defined specifically for this purpose. No intentional functional impact. This will facilitate the removal of device_name and device_class from struct acpi_device_pnp in the future. Signed-off-by: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Juergen Gross <jgross@suse.com> Signed-off-by: Juergen Gross <jgross@suse.com> Message-ID: <2384190.iZASKD2KPV@rafael.j.wysocki>
This commit is contained in:
parent
075b74841b
commit
80c0cc4766
|
|
@ -17,8 +17,6 @@
|
|||
#include <xen/xen-ops.h>
|
||||
#include <asm/xen/hypercall.h>
|
||||
|
||||
#define ACPI_PROCESSOR_AGGREGATOR_CLASS "acpi_pad"
|
||||
#define ACPI_PROCESSOR_AGGREGATOR_DEVICE_NAME "Processor Aggregator"
|
||||
#define ACPI_PROCESSOR_AGGREGATOR_NOTIFY 0x80
|
||||
static DEFINE_MUTEX(xen_cpu_lock);
|
||||
|
||||
|
|
@ -117,9 +115,6 @@ static int acpi_pad_probe(struct platform_device *pdev)
|
|||
if (!device)
|
||||
return -ENODEV;
|
||||
|
||||
strcpy(acpi_device_name(device), ACPI_PROCESSOR_AGGREGATOR_DEVICE_NAME);
|
||||
strcpy(acpi_device_class(device), ACPI_PROCESSOR_AGGREGATOR_CLASS);
|
||||
|
||||
status = acpi_install_notify_handler(device->handle,
|
||||
ACPI_DEVICE_NOTIFY, acpi_pad_notify, device);
|
||||
if (ACPI_FAILURE(status))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user