Commit dd2fc7b8 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

ACPI: PNP: Drop acpi_nonpnp_device_ids[]



Now that "system" devices are represented as platform devices, they
are not claimed by the PNP ACPI scan handler any more and platform
devices can be created for ACPI device objects listing "system"
device IDs as their compatible device IDs.

Accordingly, it should not be necessary any more to add device IDs
to acpi_nonpnp_device_ids[], so drop it.

No intentional functional impact.

Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: default avatarMario Limonciello (AMD) <superm1@kernel.org>
Link: https://patch.msgid.link/3587570.QJadu78ljV@rafael.j.wysocki
parent 686e905a
Loading
Loading
Loading
Loading
+1 −15
Original line number Diff line number Diff line
@@ -343,24 +343,10 @@ static bool acpi_pnp_match(const char *idstr, const struct acpi_device_id **matc
	return false;
}

/*
 * If one of the device IDs below is present in the list of device IDs of a
 * given ACPI device object, the PNP scan handler will not attach to that
 * object, because there is a proper non-PNP driver in the kernel for the
 * device represented by it.
 */
static const struct acpi_device_id acpi_nonpnp_device_ids[] = {
	{"INT3F0D"},
	{"INTC1080"},
	{"INTC1081"},
	{"INTC1099"},
	{""},
};

static int acpi_pnp_attach(struct acpi_device *adev,
			   const struct acpi_device_id *id)
{
	return !!acpi_match_device_ids(adev, acpi_nonpnp_device_ids);
	return true;
}

static struct acpi_scan_handler acpi_pnp_handler = {