globalvar: Allow NULL pointers to be returned by dev_add_param()
The following commit will change the return value of dev_add_param()
from -ENOSYS to NULL if CONFIG_PARAMETER is disabled. After that,
building without CONFIG_PARAMETER will return a NULL pointer to
__nvvar_add() instead of an error.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8718fd1 commit a28332268849ae13c0fba6d0fd3e6b18b380e214
@Christian Eggers Christian Eggers authored on 23 Jan 2020
Sascha Hauer committed on 27 Jan 2020
Showing 1 changed file
View
common/globalvar.c