greybus: protocol: warn on protocol put errors
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 13 Oct 2015 17:10:25 +0000 (19:10 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 14 Oct 2015 19:06:00 +0000 (12:06 -0700)
commit519bf3c3b9c09619ca90f67b194714bb5f30d491
treeb93a44d65c3e21f7fad09fcd1d3bb587dc0fc34b
parent78033844daa64c83d91dca73eb1fbcae56c42fac
greybus: protocol: warn on protocol put errors

Issue a warning if we fail to look up a protocol when dropping a
reference.

This should never happen as we hold a reference to the protocol module
and protocols should only be deregistered at module unload.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/protocol.c