diff options
-rw-r--r-- | drivers/base/power/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/common.c b/drivers/base/power/common.c index 93ed14cc2252..f6a9ad52cbbf 100644 --- a/drivers/base/power/common.c +++ b/drivers/base/power/common.c | |||
@@ -146,7 +146,7 @@ void dev_pm_domain_set(struct device *dev, struct dev_pm_domain *pd) | |||
146 | if (dev->pm_domain == pd) | 146 | if (dev->pm_domain == pd) |
147 | return; | 147 | return; |
148 | 148 | ||
149 | WARN(device_is_bound(dev), | 149 | WARN(pd && device_is_bound(dev), |
150 | "PM domains can only be changed for unbound devices\n"); | 150 | "PM domains can only be changed for unbound devices\n"); |
151 | dev->pm_domain = pd; | 151 | dev->pm_domain = pd; |
152 | device_pm_check_callbacks(dev); | 152 | device_pm_check_callbacks(dev); |