mei: bus: enable running fixup routines before device registration
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 23 Jul 2015 12:08:43 +0000 (15:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Aug 2015 00:24:16 +0000 (17:24 -0700)
commit71ce789115f878a07e4a6c43d6006cea6aee1078
treeaef1e29741969c8b7b3d0501e4c451fba1fe456a
parent0ff0a8d853039aa60bba3ca3e04e4fb74584a736
mei: bus: enable running fixup routines before device registration

Split the device registration into allocation and device struct
initialization, device setup, and the final device registration.
This why it is possible to run fixups and quirks during the setup stage
on an initialized device. Each fixup routine effects do_match flag.
If the flag is set to false at the end the device won't be
registered on the bus.

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