diff options
Diffstat (limited to 'drivers/misc/mei')
| -rw-r--r-- | drivers/misc/mei/mei_dev.h | 4 | ||||
| -rw-r--r-- | drivers/misc/mei/pci-me.c | 8 | ||||
| -rw-r--r-- | drivers/misc/mei/pci-txe.c | 8 |
3 files changed, 8 insertions, 12 deletions
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index 71744b16cc8c..61b04d7646f1 100644 --- a/drivers/misc/mei/mei_dev.h +++ b/drivers/misc/mei/mei_dev.h | |||
| @@ -530,9 +530,9 @@ struct mei_device { | |||
| 530 | * Power Gating support | 530 | * Power Gating support |
| 531 | */ | 531 | */ |
| 532 | enum mei_pg_event pg_event; | 532 | enum mei_pg_event pg_event; |
| 533 | #ifdef CONFIG_PM_RUNTIME | 533 | #ifdef CONFIG_PM |
| 534 | struct dev_pm_domain pg_domain; | 534 | struct dev_pm_domain pg_domain; |
| 535 | #endif /* CONFIG_PM_RUNTIME */ | 535 | #endif /* CONFIG_PM */ |
| 536 | 536 | ||
| 537 | unsigned char rd_msg_buf[MEI_RD_MSG_BUF_SIZE]; | 537 | unsigned char rd_msg_buf[MEI_RD_MSG_BUF_SIZE]; |
| 538 | u32 rd_msg_hdr; | 538 | u32 rd_msg_hdr; |
diff --git a/drivers/misc/mei/pci-me.c b/drivers/misc/mei/pci-me.c index f3225b1643ab..cf20d397068a 100644 --- a/drivers/misc/mei/pci-me.c +++ b/drivers/misc/mei/pci-me.c | |||
| @@ -89,13 +89,13 @@ static const struct pci_device_id mei_me_pci_tbl[] = { | |||
| 89 | 89 | ||
| 90 | MODULE_DEVICE_TABLE(pci, mei_me_pci_tbl); | 90 | MODULE_DEVICE_TABLE(pci, mei_me_pci_tbl); |
| 91 | 91 | ||
| 92 | #ifdef CONFIG_PM_RUNTIME | 92 | #ifdef CONFIG_PM |
| 93 | static inline void mei_me_set_pm_domain(struct mei_device *dev); | 93 | static inline void mei_me_set_pm_domain(struct mei_device *dev); |
| 94 | static inline void mei_me_unset_pm_domain(struct mei_device *dev); | 94 | static inline void mei_me_unset_pm_domain(struct mei_device *dev); |
| 95 | #else | 95 | #else |
| 96 | static inline void mei_me_set_pm_domain(struct mei_device *dev) {} | 96 | static inline void mei_me_set_pm_domain(struct mei_device *dev) {} |
| 97 | static inline void mei_me_unset_pm_domain(struct mei_device *dev) {} | 97 | static inline void mei_me_unset_pm_domain(struct mei_device *dev) {} |
| 98 | #endif /* CONFIG_PM_RUNTIME */ | 98 | #endif /* CONFIG_PM */ |
| 99 | 99 | ||
| 100 | /** | 100 | /** |
| 101 | * mei_me_quirk_probe - probe for devices that doesn't valid ME interface | 101 | * mei_me_quirk_probe - probe for devices that doesn't valid ME interface |
| @@ -357,7 +357,7 @@ static int mei_me_pci_resume(struct device *device) | |||
| 357 | } | 357 | } |
| 358 | #endif /* CONFIG_PM_SLEEP */ | 358 | #endif /* CONFIG_PM_SLEEP */ |
| 359 | 359 | ||
| 360 | #ifdef CONFIG_PM_RUNTIME | 360 | #ifdef CONFIG_PM |
| 361 | static int mei_me_pm_runtime_idle(struct device *device) | 361 | static int mei_me_pm_runtime_idle(struct device *device) |
| 362 | { | 362 | { |
| 363 | struct pci_dev *pdev = to_pci_dev(device); | 363 | struct pci_dev *pdev = to_pci_dev(device); |
| @@ -453,9 +453,7 @@ static inline void mei_me_unset_pm_domain(struct mei_device *dev) | |||
| 453 | /* stop using pm callbacks if any */ | 453 | /* stop using pm callbacks if any */ |
| 454 | dev->dev->pm_domain = NULL; | 454 | dev->dev->pm_domain = NULL; |
| 455 | } | 455 | } |
| 456 | #endif /* CONFIG_PM_RUNTIME */ | ||
| 457 | 456 | ||
| 458 | #ifdef CONFIG_PM | ||
| 459 | static const struct dev_pm_ops mei_me_pm_ops = { | 457 | static const struct dev_pm_ops mei_me_pm_ops = { |
| 460 | SET_SYSTEM_SLEEP_PM_OPS(mei_me_pci_suspend, | 458 | SET_SYSTEM_SLEEP_PM_OPS(mei_me_pci_suspend, |
| 461 | mei_me_pci_resume) | 459 | mei_me_pci_resume) |
diff --git a/drivers/misc/mei/pci-txe.c b/drivers/misc/mei/pci-txe.c index bee1c6fb7e75..1f572deacf54 100644 --- a/drivers/misc/mei/pci-txe.c +++ b/drivers/misc/mei/pci-txe.c | |||
| @@ -42,13 +42,13 @@ static const struct pci_device_id mei_txe_pci_tbl[] = { | |||
| 42 | }; | 42 | }; |
| 43 | MODULE_DEVICE_TABLE(pci, mei_txe_pci_tbl); | 43 | MODULE_DEVICE_TABLE(pci, mei_txe_pci_tbl); |
| 44 | 44 | ||
| 45 | #ifdef CONFIG_PM_RUNTIME | 45 | #ifdef CONFIG_PM |
| 46 | static inline void mei_txe_set_pm_domain(struct mei_device *dev); | 46 | static inline void mei_txe_set_pm_domain(struct mei_device *dev); |
| 47 | static inline void mei_txe_unset_pm_domain(struct mei_device *dev); | 47 | static inline void mei_txe_unset_pm_domain(struct mei_device *dev); |
| 48 | #else | 48 | #else |
| 49 | static inline void mei_txe_set_pm_domain(struct mei_device *dev) {} | 49 | static inline void mei_txe_set_pm_domain(struct mei_device *dev) {} |
| 50 | static inline void mei_txe_unset_pm_domain(struct mei_device *dev) {} | 50 | static inline void mei_txe_unset_pm_domain(struct mei_device *dev) {} |
| 51 | #endif /* CONFIG_PM_RUNTIME */ | 51 | #endif /* CONFIG_PM */ |
| 52 | 52 | ||
| 53 | static void mei_txe_pci_iounmap(struct pci_dev *pdev, struct mei_txe_hw *hw) | 53 | static void mei_txe_pci_iounmap(struct pci_dev *pdev, struct mei_txe_hw *hw) |
| 54 | { | 54 | { |
| @@ -295,7 +295,7 @@ static int mei_txe_pci_resume(struct device *device) | |||
| 295 | } | 295 | } |
| 296 | #endif /* CONFIG_PM_SLEEP */ | 296 | #endif /* CONFIG_PM_SLEEP */ |
| 297 | 297 | ||
| 298 | #ifdef CONFIG_PM_RUNTIME | 298 | #ifdef CONFIG_PM |
| 299 | static int mei_txe_pm_runtime_idle(struct device *device) | 299 | static int mei_txe_pm_runtime_idle(struct device *device) |
| 300 | { | 300 | { |
| 301 | struct pci_dev *pdev = to_pci_dev(device); | 301 | struct pci_dev *pdev = to_pci_dev(device); |
| @@ -401,9 +401,7 @@ static inline void mei_txe_unset_pm_domain(struct mei_device *dev) | |||
| 401 | /* stop using pm callbacks if any */ | 401 | /* stop using pm callbacks if any */ |
| 402 | dev->dev->pm_domain = NULL; | 402 | dev->dev->pm_domain = NULL; |
| 403 | } | 403 | } |
| 404 | #endif /* CONFIG_PM_RUNTIME */ | ||
| 405 | 404 | ||
| 406 | #ifdef CONFIG_PM | ||
| 407 | static const struct dev_pm_ops mei_txe_pm_ops = { | 405 | static const struct dev_pm_ops mei_txe_pm_ops = { |
| 408 | SET_SYSTEM_SLEEP_PM_OPS(mei_txe_pci_suspend, | 406 | SET_SYSTEM_SLEEP_PM_OPS(mei_txe_pci_suspend, |
| 409 | mei_txe_pci_resume) | 407 | mei_txe_pci_resume) |
