acpi_platform.c (cefbd80bf52c791fede129ab5cf8be6ed9e8ce38) acpi_platform.c (bf6067a6caa6717c40156fd8dfa443fd568c193a)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * ACPI support for platform bus type.
4 *
5 * Copyright (C) 2012, Intel Corporation
6 * Authors: Mika Westerberg <mika.westerberg@linux.intel.com>
7 * Mathias Nyman <mathias.nyman@linux.intel.com>
8 * Rafael J. Wysocki <rafael.j.wysocki@intel.com>

--- 15 unchanged lines hidden (view full) ---

24#define ACPI_ALLOW_WO_RESOURCES BIT(0)
25
26static const struct acpi_device_id forbidden_id_list[] = {
27 {"ACPI0009", 0}, /* IOxAPIC */
28 {"ACPI000A", 0}, /* IOAPIC */
29 {"PNP0000", 0}, /* PIC */
30 {"PNP0100", 0}, /* Timer */
31 {"PNP0200", 0}, /* AT DMA Controller */
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * ACPI support for platform bus type.
4 *
5 * Copyright (C) 2012, Intel Corporation
6 * Authors: Mika Westerberg <mika.westerberg@linux.intel.com>
7 * Mathias Nyman <mathias.nyman@linux.intel.com>
8 * Rafael J. Wysocki <rafael.j.wysocki@intel.com>

--- 15 unchanged lines hidden (view full) ---

24#define ACPI_ALLOW_WO_RESOURCES BIT(0)
25
26static const struct acpi_device_id forbidden_id_list[] = {
27 {"ACPI0009", 0}, /* IOxAPIC */
28 {"ACPI000A", 0}, /* IOAPIC */
29 {"PNP0000", 0}, /* PIC */
30 {"PNP0100", 0}, /* Timer */
31 {"PNP0200", 0}, /* AT DMA Controller */
32 {"SMB0001", ACPI_ALLOW_WO_RESOURCES}, /* ACPI SMBUS virtual device */
32 {ACPI_SMBUS_MS_HID, ACPI_ALLOW_WO_RESOURCES}, /* ACPI SMBUS virtual device */
33 { }
34};
35
36static struct platform_device *acpi_platform_device_find_by_companion(struct acpi_device *adev)
37{
38 struct device *dev;
39
40 dev = bus_find_device_by_acpi_dev(&platform_bus_type, adev);

--- 156 unchanged lines hidden ---
33 { }
34};
35
36static struct platform_device *acpi_platform_device_find_by_companion(struct acpi_device *adev)
37{
38 struct device *dev;
39
40 dev = bus_find_device_by_acpi_dev(&platform_bus_type, adev);

--- 156 unchanged lines hidden ---