From a66a8d79871c3763cd488cd5e785415a5dbc36de Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 20 Feb 2018 12:21:00 +0100 Subject: state: remove unused arguments from state_new_from_node() state_new_from_node() has arguments describing the backend path. These are never used in barebox, the backend path is always derived from the device nodes backend description. Remove these arguments. Signed-off-by: Sascha Hauer --- drivers/misc/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/misc/state.c b/drivers/misc/state.c index 98ed42e757..d7e385d0b5 100644 --- a/drivers/misc/state.c +++ b/drivers/misc/state.c @@ -28,7 +28,7 @@ static int state_probe(struct device_d *dev) bool readonly = false; int ret; - state = state_new_from_node(np, NULL, 0, 0, readonly); + state = state_new_from_node(np, readonly); if (IS_ERR(state)) { int ret = PTR_ERR(state); if (ret == -ENODEV) -- cgit v1.2.3