diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-04-19 14:24:36 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-04-19 14:29:07 -0700 |
commit | 24dafefb3a63c9e2111ff87c4595ceaff7182d20 (patch) | |
tree | 2f971102a85b7436ee1275b31264b70bdc59f5a3 /common/hooks.c | |
parent | ff8926b5e357fe4cc82473af7603f3d273d1971a (diff) | |
download | chrome-ec-24dafefb3a63c9e2111ff87c4595ceaff7182d20.tar.gz |
Move externs from .lds file into a header file
Fewer magic externs = good.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=none
TEST=if it boots, it works
Change-Id: Ifadeb1701400c5492c40d2eaf8f68f2d70189648
Diffstat (limited to 'common/hooks.c')
-rw-r--r-- | common/hooks.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/common/hooks.c b/common/hooks.c index 58ff10546a..81bc2ac212 100644 --- a/common/hooks.c +++ b/common/hooks.c @@ -6,16 +6,10 @@ /* System hooks for Chrome EC */ #include "hooks.h" +#include "link_defs.h" #include "uart.h" #include "util.h" -/* Hooks are described in special sections */ -extern const struct hook_data __hooks_init[]; -extern const struct hook_data __hooks_init_end[]; -extern const struct hook_data __hooks_freq_change[]; -extern const struct hook_data __hooks_freq_change_end[]; - - int hook_notify(enum hook_type type, int stop_on_error) { const struct hook_data *start, *end, *p; |