From c9dadceeba2faa311e4a086f1c6a5eb0d5577c9f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 2 May 2014 19:07:18 +0200 Subject: [PATCH] interface: use interface_set_main_dev() from interface_remove_link Signed-off-by: Felix Fietkau --- interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface.c b/interface.c index f474246..65bc37d 100644 --- a/interface.c +++ b/interface.c @@ -807,7 +807,7 @@ interface_remove_link(struct interface *iface, struct device *dev) if (dev != iface->main_dev.dev) return UBUS_STATUS_INVALID_ARGUMENT; - device_remove_user(&iface->main_dev); + interface_set_main_dev(iface, NULL); return 0; } -- 2.25.1