OSDN Git Service

greybus: endo: Fix compilation warning
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 11 Jun 2015 11:09:42 +0000 (16:39 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 11 Jun 2015 16:18:45 +0000 (09:18 -0700)
commit0ffacf3b8ae169a26c941345b7fa54e1624f6b95
treed1781f2290bb2000d79d09639c6fdc236fdf9567
parentf5c2be9e9bd934973d3e51b933bf7c03f85d2010
greybus: endo: Fix compilation warning

WARNING: /home/viresh/work/repos/ara/greybus/greybus.o(.init.text+0xb8):
Section mismatch in reference from the function init_module() to the
function .exit.text:gb_endo_exit()

The function __init init_module() references
a function __exit gb_endo_exit().

Fix it by removing __exit from endo_exit().

Fixes: cf64356c5151 ("endo: define endo_init() and endo_exit()")
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/endo.c
drivers/staging/greybus/endo.h