Re: [PATCH] pda_power: add device_init_wakeup

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <cbouatmailru@...>, <linux-kernel@...>, <cbou@...>, <dwmw2@...>
Date: Saturday, January 12, 2008 - 6:50 pm

Hi,

Please apply this patch. Otherwise pda_power can't generate wakeup
events. I forgot this in the initial pda_power suspend/resume patch.

Add device_init_wakeup to init wakeup.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>

diff --git a/drivers/power/pda_power.c b/drivers/power/pda_power.c
index d98622f..28360e8 100644
--- a/drivers/power/pda_power.c
+++ b/drivers/power/pda_power.c
@@ -207,6 +207,8 @@ static int pda_power_probe(struct platform_device *pdev)
 		}
 	}
 
+	device_init_wakeup(&pdev->dev, 1);
+
 	return 0;
 
 usb_irq_failed:


-- 
With best wishes
Dmitry

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] pda_power: add device_init_wakeup, Dmitry Baryshkov, (Wed Jan 9, 12:39 pm)
Re: [PATCH] pda_power: add device_init_wakeup, Dmitry Baryshkov, (Sat Jan 12, 6:50 pm)
Re: [PATCH] pda_power: add device_init_wakeup, Anton Vorontsov, (Sat Jan 12, 7:52 pm)
Re: [PATCH] pda_power: add device_init_wakeup, Dmitry, (Sat Jan 12, 8:14 pm)