greybus: legacy: add initialized flag
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 21 Jan 2016 16:34:18 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 22 Jan 2016 06:46:38 +0000 (22:46 -0800)
commit8278fae5d727b02af2fb7e1ac518c63569096c9f
tree440c7e3911591e8e18c2f822020cf8a71e477dd0
parent431b3ebb3d9e0c25081006fc7a1f97621dca6192
greybus: legacy: add initialized flag

Add initialized flag and use instead of the connection protocol pointer
to determine when the legacy connection has been initialised.

This is a step in moving legacy connection binding to
connection-creation time.

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/legacy.c