greybus: protocol: add a module owner to a protocol
authorGreg Kroah-Hartman <greg@kroah.com>
Wed, 24 Dec 2014 21:01:40 +0000 (13:01 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 2 Jan 2015 21:05:42 +0000 (13:05 -0800)
commit12a5dfc9acf690504e7266a8f310702bc9e6872c
treee08322fe107b8caed9adb4f7a678ea582ea4727f
parent1b6ea0db016941a0919c17839c1772cceb1955c1
greybus: protocol: add a module owner to a protocol

Now that protocols can be in a module, we need to reference count them
to lock them into memory so they can't be removed while in use.  So add
a module owner structure, and have it automatically be assigned when
registering the protocol.

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