Re: [PATCH] Input: gpio_keys - swtich to dev_pm_ops

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

 



Hi Mike,

On Tue, Jul 21, 2009 at 04:59:10PM +0300, Mike Rapoport wrote:
> +
> +static struct dev_pm_ops gpio_keys_pm_ops = {
> +	.suspend	= gpio_keys_suspend,
> +	.resume		= gpio_keys_resume,
> +};
>  

This is not 100% equivalent conversion since we are now only handling
s2r, not s2d.. My question though is whether we care or not...

>  static struct platform_driver gpio_keys_device_driver = {
>  	.probe		= gpio_keys_probe,
> -	.remove		= __devexit_p(gpio_keys_remove),
> -	.suspend	= gpio_keys_suspend,
>  	.resume		= gpio_keys_resume,
>  	.driver		= {
>  		.name	= "gpio-keys",
>  		.owner	= THIS_MODULE,
> +		.pm	= &gpio_keys_pm_ops,
>  	}
>  };
>  

-- 
Dmitry
--
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