]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Platform: OLPC: turn EC driver into a platform_driver
authorAndres Salomon <dilinger@queued.net>
Fri, 13 Jul 2012 12:57:17 +0000 (05:57 -0700)
committerAndres Salomon <dilinger@queued.net>
Wed, 1 Aug 2012 03:27:30 +0000 (23:27 -0400)
commitac2504151f5af27bbf0c0362b7da5951e05dfc43
tree21e163290e4e35e9151d50f90e58ce8c066c2f3c
parent3d26c20bae9e97c98f7240184427d3a38515d406
Platform: OLPC: turn EC driver into a platform_driver

The 1.75-based OLPC EC driver already does this; let's do it for all EC
drivers.  This gives us nice suspend/resume hooks, amongst other things.

We want to run the EC's suspend hooks later than other drivers (which may
be setting wakeup masks or be running EC commands).  We also want to run
the EC's resume hooks earlier than other drivers (which may want to run EC
commands).

Signed-off-by: Andres Salomon <dilinger@queued.net>
Acked-by: Paul Fox <pgf@laptop.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
drivers/platform/olpc/olpc-ec.c
include/linux/olpc-ec.h