serial: omap: free the wakeup settings in remove
authorSanjay Singh Rawat <sanjay.rawat@linaro.org>
Fri, 21 Mar 2014 08:25:10 +0000 (13:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Apr 2014 21:15:01 +0000 (14:15 -0700)
Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c

index dd8b1a5458ff4365c14a857a45db4cea1b20539e..ecfafbb30356266278266225fc3706a5d87bf6b1 100644 (file)
@@ -1789,6 +1789,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;
 }