summaryrefslogtreecommitdiff
path: root/drivers/base/power/wakeup.c
diff options
context:
space:
mode:
authorBrian Norris <briannorris@chromium.org>2017-12-18 15:30:48 -0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-12-19 02:45:06 +0100
commit86ddd2db1f75a30f21a4c4de7a29249ee8c37ed8 (patch)
tree032de1db029bf4dc765f8918607ef44e0a706d81 /drivers/base/power/wakeup.c
parentc51a024e3913e9dbaf4dfcb9aaba825668a89ace (diff)
downloadlwn-86ddd2db1f75a30f21a4c4de7a29249ee8c37ed8.tar.gz
lwn-86ddd2db1f75a30f21a4c4de7a29249ee8c37ed8.zip
PM / wakeup: only recommend "call"ing device_init_wakeup() once
I'll admit admit it: I've written bad driver code that tries to configure a device's wake IRQ without having called device_init_wakeup() first. But do you really have to ask ask me twice? Signed-off-by: Brian Norris <briannorris@chromium.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power/wakeup.c')
-rw-r--r--drivers/base/power/wakeup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c
index 38559f04db2c..cb72965b3281 100644
--- a/drivers/base/power/wakeup.c
+++ b/drivers/base/power/wakeup.c
@@ -298,7 +298,7 @@ int device_wakeup_attach_irq(struct device *dev,
ws = dev->power.wakeup;
if (!ws) {
- dev_err(dev, "forgot to call call device_init_wakeup?\n");
+ dev_err(dev, "forgot to call device_init_wakeup?\n");
return -EINVAL;
}