diff --git a/package/kernel/ubnt-ledbar/src/leds-ubnt-ledbar.c b/package/kernel/ubnt-ledbar/src/leds-ubnt-ledbar.c index 9fb52b4b3a..c36a74779c 100644 --- a/package/kernel/ubnt-ledbar/src/leds-ubnt-ledbar.c +++ b/package/kernel/ubnt-ledbar/src/leds-ubnt-ledbar.c @@ -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;