greybus: connection: set request handlers at creation
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 21 Jan 2016 16:34:21 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 22 Jan 2016 06:46:38 +0000 (22:46 -0800)
commitf7ee081e3151e187e7478eb8941f61744f125201
tree7cc0f73f1a5b6f78033029f43e406762ba1a9d66
parent2399032d7262f2a5dc1f22380d23b17971ed22e4
greybus: connection: set request handlers at creation

Set the connection request handler at creation rather than when enabling
the connection.

This is possible now that connections are created by the drivers that
use them rather than by core at manifest parsing 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/connection.c
drivers/staging/greybus/connection.h
drivers/staging/greybus/legacy.c
drivers/staging/greybus/svc.c