handlers: pass config to handlers' init()
The handlers may want to consume config parameters, so pass the struct
config to their init call.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/log-handler.c b/log-handler.c
index eb5f80f..9a387fd 100644
--- a/log-handler.c
+++ b/log-handler.c
@@ -33,7 +33,8 @@
return container_of(handler, struct log_handler, handler);
}
-static int log_init(struct handler *handler, struct console *console)
+static int log_init(struct handler *handler, struct console *console,
+ struct config *config __attribute__((unused)))
{
struct log_handler *lh = to_log_handler(handler);
int rc;