static int pwm_lpss_remove_platform(struct platform_device *pdev) { struct pwm_lpss_chip *lpwm = platform_get_drvdata(pdev); pm_runtime_disable(&pdev->dev); return pwm_lpss_remove(lpwm); }
static void pwm_lpss_remove_pci(struct pci_dev *pdev) { struct pwm_lpss_chip *lpwm = pci_get_drvdata(pdev); pm_runtime_forbid(&pdev->dev); pm_runtime_get_sync(&pdev->dev); pwm_lpss_remove(lpwm); }