reset_source: make safe to call earlier
reset_source_init used to set the reset source to unknown in a
coredevice_initcall. This means if reset_source_set() has been called
earlier the value would have been overwritten. Fix this by calling
globalvar_add_simple() each time reset_source_set() is called.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent db22812 commit e7e39180ad01e279d5f3ab2f78ce319dc8ab51fc
@Sascha Hauer Sascha Hauer authored on 12 Feb 2015
Showing 1 changed file
View
common/reset_source.c