/* Return 1 if handle is ejectable PCI slot, 0 otherwise.  */
int acpi_pci_check_ejectable(struct pci_bus *pbus, acpi_handle handle)
/* Return 1 if handle is ejectable PCI slot, 0 otherwise.  */
int acpi_pci_check_ejectable(struct pci_bus *pbus, acpi_handle handle)
{
	acpi_handle bridge_handle, parent_handle;
	if (!(bridge_handle = acpi_pci_get_bridge_handle(pbus)))
		return 0;
	if ((ACPI_FAILURE(acpi_get_parent(handle, &parent_handle))))
		return 0;
	if (bridge_handle != parent_handle)
		return 0;
	return is_ejectable(handle);
}