OSDN Git Service

greybus: gpbridge: fix section mismatches
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 21 May 2015 09:47:24 +0000 (11:47 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 23 May 2015 21:42:47 +0000 (14:42 -0700)
commit8d346df0620eaeddfa1333d413596898fa7e576a
tree2376ceb1a98c392279ae0058bd8f974f15a05550
parentc38cf10bbe35ba6fa10437809585fd4d0b3b604d
greybus: gpbridge: fix section mismatches

Fix section mismatches introduced by b27227ce93c0 ("greybus: Use
gb_gpbridge_protocol_init()"), which added __exit annotation to
gpbridge-protocol exit functions that are called in the error path of
gpbridge_init, which lives in the init section.

This triggered the following modpost warning:

WARNING: modpost: Found 8 section mismatch(es).

Fixes: 16b33d100bff ("protocol: Add gb_gpbridge_protocol_driver()")
Fixes: b27227ce93c0 ("greybus: Use gb_gpbridge_protocol_init()")
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/protocol.h