OSDN Git Service

greybus: tag core init and exit functions
authorAlex Elder <elder@linaro.org>
Tue, 9 Jun 2015 22:42:50 +0000 (17:42 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 10 Jun 2015 17:38:23 +0000 (10:38 -0700)
commit47ed2c92406f94ac0f122ebf0e05fc63d3f0c02a
tree83e4b54a984f812dedf5ad718e1752d0d596ec64
parent190241a362480e193e7b5f7a9fd9ff492c4acb31
greybus: tag core init and exit functions

The top-level functions gb_init() and gb_exit() are tagged with
__init and __exit, respectively.  These functions call a few
other functions that are similarly used only at initialization
and termination time.  So mark those functions accordingly.

Note that, because gb_ap_exit() and gb_debugfs_cleanup()
are called by gb_init() in error paths, these functions
cannot be declared with the __exit attribute.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/ap.c
drivers/staging/greybus/debugfs.c
drivers/staging/greybus/greybus.h
drivers/staging/greybus/operation.c
drivers/staging/greybus/operation.h