/* Note: we could make this API take a struct acpi_device * instead, but for now, it's more convenient to operate on an acpi_handle.  */
int acpi_is_root_bridge(acpi_handle handle)
/* Note: we could make this API take a struct acpi_device * instead, but for now, it's more convenient to operate on an acpi_handle.  */
int acpi_is_root_bridge(acpi_handle handle)
{
	int ret;
	struct acpi_device *device;
	ret = acpi_bus_get_device(handle, &device);
	if (ret)
		return 0;
	ret = acpi_match_device_ids(device, root_device_ids);
	if (ret)
		return 0;
	else
		return 1;
}