Re: [PATCH] input: add suspend wakeup support to sh_keysc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Magnus,

> +
> +       device_init_wakeup(&pdev->dev, 1);
>        return 0;


Please add device_init_wakeup(&pdev->dev, 0) in sh_keysc_remove.

>  err5:
>        free_irq(irq, pdev);
> @@ -253,17 +255,36 @@ static int __devexit sh_keysc_remove(str
>        return 0;
>  }
>
> +static int sh_keysc_suspend(struct device *dev)
> +{
> +       struct platform_device *pdev;
> +       struct sh_keysc_priv *priv;
> +       unsigned short value;
> +
> +       pdev = container_of(dev, struct platform_device, dev);
> +       priv = platform_get_drvdata(pdev);

to_platform_device(...) ?

-- 
---Trilok Soni
http://triloksoni.wordpress.com
http://www.linkedin.com/in/triloksoni
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux