ubnt-ledbar: fix compilation error
authorRosen Penev <rosenp@gmail.com>
Tue, 8 Oct 2024 20:23:38 +0000 (13:23 -0700)
committerRobert Marko <robimarko@gmail.com>
Tue, 8 Oct 2024 20:24:54 +0000 (22:24 +0200)
Wrong variable name from copy/paste.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16640
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/kernel/ubnt-ledbar/src/leds-ubnt-ledbar.c

index 9fb52b4b3a8c260293a7c36408538ec0db088b70..c36a74779c56cf91680e0d2542d80b75c6775614 100644 (file)
@@ -185,7 +185,7 @@ static int ubnt_ledbar_probe(struct i2c_client *client)
 
        ledbar->client = client;
 
-       err = devm_mutex_init(&ofdev->dev, &ledbar->lock);
+       err = devm_mutex_init(&client->dev, &ledbar->lock);
        if (err)
                return err;