]> git.baikalelectronics.ru Git - kernel.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)
commit89e4827ed7bd66749ce8f7eddcc657778b5e6de5
tree21e163290e4e35e9151d50f90e58ce8c066c2f3c
parent1293268a1e235831d7dcef16fd8be0868eedc73f
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