/* pci_platform_power_transition - Use platform to change device power state @dev: PCI device to handle. @state: State to put the device into.  */
static int pci_platform_power_transition(struct pci_dev *dev, pci_power_t state)
/* pci_platform_power_transition - Use platform to change device power state @dev: PCI device to handle. @state: State to put the device into.  */
static int pci_platform_power_transition(struct pci_dev *dev, pci_power_t state)
{
	int error;
	if (platform_pci_power_manageable(dev)) {
		error = platform_pci_set_power_state(dev, state);
		if (!error)
			pci_update_current_state(dev, state);
	} else {
		error = -ENODEV;
		if (!dev->pm_cap)
			dev->current_state = PCI_D0;
	}
	return error;
}