greybus: core: check for valid hcd callbacks
authorGreg Kroah-Hartman <greg@kroah.com>
Mon, 27 Oct 2014 05:32:27 +0000 (13:32 +0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 27 Oct 2014 05:45:24 +0000 (13:45 +0800)
commit724b619dfbe1238eb8b9bd4916eeaf40b5640b28
tree77179efd2c444edd1fed4a57ce49ebf365c47ed8
parentd81448849a6a919bdc6366b44a7664f817c94d84
greybus: core: check for valid hcd callbacks

When registering a host controller, verify that all of the needed
callbacks are present, so we don't have to do the testing on any "hot"
paths when we want to send real data.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Reviewed-by: Alex Elder <elder@linaro.org.
drivers/staging/greybus/core.c