device: Provide a dummy macro for device_pm_control_nop on disabled PM
This will prove to be useful on enabling PM setting for the network devices. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
d7cc4bd2c5
commit
ebe20f99c7
1 changed files with 2 additions and 1 deletions
|
@ -598,7 +598,8 @@ static inline int device_pm_get_sync(struct device *dev) { return -ENOTSUP; }
|
||||||
static inline int device_pm_put(struct device *dev) { return -ENOTSUP; }
|
static inline int device_pm_put(struct device *dev) { return -ENOTSUP; }
|
||||||
static inline int device_pm_put_sync(struct device *dev) { return -ENOTSUP; }
|
static inline int device_pm_put_sync(struct device *dev) { return -ENOTSUP; }
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#define device_pm_control_nop(...) NULL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue