diff mbox

serial: omap: free the wakeup settings in remove

Message ID 1395390310-21602-1-git-send-email-sanjay.rawat@linaro.org
State Accepted
Commit 93a2e470ef3b17495029a89a05e25830aeca1ffb
Headers show

Commit Message

Sanjay Singh Rawat March 21, 2014, 8:25 a.m. UTC
Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
---
 drivers/tty/serial/omap-serial.c |    1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c
index 77f0351..56b61d4 100644
--- a/drivers/tty/serial/omap-serial.c
+++ b/drivers/tty/serial/omap-serial.c
@@ -1782,6 +1782,7 @@  static int serial_omap_remove(struct platform_device *dev)
 	pm_runtime_disable(up->dev);
 	uart_remove_one_port(&serial_omap_reg, &up->port);
 	pm_qos_remove_request(&up->pm_qos_request);
+	device_init_wakeup(&dev->dev, false);
 
 	return 0;
 }