aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/core.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2010-06-29 16:49:24 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2010-07-18 19:58:48 -0400
commitb14e033e17d0ea0ba12668d0d2f371cd31586994 (patch)
treef7b5df8e67c091363a967a4d1fb8a1209d61cf95 /drivers/pnp/core.c
parent2430d12c94ff2bafcfe4f65edf7ee5f300d2d9c6 (diff)
PNPACPI: Add support for remote wakeup
This patch (as1354) adds remote-wakeup support to the pnpacpi driver. The new can_wakeup method also allows other PNP protocol drivers (pnpbios or iaspnp) to add wakeup support, but I don't know enough about how they work to actually do it. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Reviewed-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/pnp/core.c')
-rw-r--r--drivers/pnp/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pnp/core.c b/drivers/pnp/core.c
index 5dba90995d9e..88b3cde52596 100644
--- a/drivers/pnp/core.c
+++ b/drivers/pnp/core.c
@@ -164,6 +164,9 @@ int __pnp_add_device(struct pnp_dev *dev)
164 list_add_tail(&dev->global_list, &pnp_global); 164 list_add_tail(&dev->global_list, &pnp_global);
165 list_add_tail(&dev->protocol_list, &dev->protocol->devices); 165 list_add_tail(&dev->protocol_list, &dev->protocol->devices);
166 spin_unlock(&pnp_lock); 166 spin_unlock(&pnp_lock);
167 if (dev->protocol->can_wakeup)
168 device_set_wakeup_capable(&dev->dev,
169 dev->protocol->can_wakeup(dev));
167 return device_register(&dev->dev); 170 return device_register(&dev->dev);
168} 171}
169 172