mei: bus: Add device enabling and disabling API
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 8 Apr 2013 22:51:38 +0000 (01:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Apr 2013 23:57:15 +0000 (16:57 -0700)
commite46980a10a76ec3282dd6832c1974b880acd23d3
tree42d8e5abab5991b4026af385545e23af619f610b
parentd6c36a475fccfca05fd05362c98e49f6dd07721c
mei: bus: Add device enabling and disabling API

It should be left to the drivers to enable and disable the device on the
MEI bus when e.g getting probed.
For drivers to be able to safely call the enable and disable hooks, the
mei_cl_ops must be set before it's probed and thus this should happen
before registering the device on the MEI bus. Hence the mei_cl_add_device()
prototype change.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/misc-devices/mei/mei-client-bus.txt
drivers/misc/mei/bus.c
drivers/misc/mei/mei_dev.h
include/linux/mei_cl_bus.h