Commit 86ddd2db authored by Brian Norris's avatar Brian Norris Committed by Rafael J. Wysocki

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: default avatarBrian Norris <briannorris@chromium.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent c51a024e
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment