fix compiler warnings
[project/netifd.git] / bridge.c
index 886fb42..c48381b 100644 (file)
--- a/bridge.c
+++ b/bridge.c
@@ -72,7 +72,7 @@ bridge_disable_member(struct bridge_member *bm)
                return 0;
 
        system_bridge_delif(&bst->dev, bm->dev.dev);
-       device_release(bm->dev.dev);
+       device_release(&bm->dev);
 
        return 0;
 }
@@ -86,7 +86,7 @@ bridge_enable_member(struct bridge_member *bm)
        if (!bm->present)
                return 0;
 
-       ret = device_claim(bm->dev.dev);
+       ret = device_claim(&bm->dev);
        if (ret < 0)
                goto error;
 
@@ -208,7 +208,7 @@ bridge_create_member(struct bridge_state *bst, struct device *dev)
        bm->dev.cb = bridge_member_cb;
        device_add_user(&bm->dev, dev);
 
-       list_add(&bm->list, &bst->members);
+       list_add_tail(&bm->list, &bst->members);
 
        if (bst->dev.active)
                bridge_enable_member(bm);