s/get_device/device_get/
[oweals/netifd.git] / ubus.c
diff --git a/ubus.c b/ubus.c
index 2e98b2b116267cdeab88fb1e835e951ca22e2ec9..fc5837620fb7907533270d50ffc4165c156f0539 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -33,7 +33,7 @@ static int netifd_handle_device(struct ubus_context *ctx, struct ubus_object *ob
        if (!tb[DEV_NAME])
                return UBUS_STATUS_INVALID_ARGUMENT;
 
-       dev = get_device(blobmsg_data(tb[DEV_NAME]), false);
+       dev = device_get(blobmsg_data(tb[DEV_NAME]), false);
        if (!dev)
                return UBUS_STATUS_NOT_FOUND;