On Sat, 2012-10-13 at 15:49 +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > +static const char * const wakeup_src_names[] = { > + [WAKEUP_UKWNOWN] = "unknown", > + [WAKEUP_POWER] = "power", > + [WAKEUP_RTC] = "rtc", > + [WAKEUP_TIMER] = "timer", > + [WAKEUP_USER] = "user", > + [WAKEUP_WOL] = "wakeup on lan", > +}; > + > +void set_wakeup_source(enum wakeup_src_type st) > +{ > + setenv("global.system.wakeup", wakeup_src_names[st]); > +} > +EXPORT_SYMBOL(set_reset_source); The EXPORT_SYMBOL should be for _wakeup_ instead of _reset_. -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox