From 15f5c7e3653da6701867668265e5603a8c08e773 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 8 Oct 2024 13:23:38 -0700 Subject: [PATCH] ubnt-ledbar: fix compilation error Wrong variable name from copy/paste. Signed-off-by: Rosen Penev Link: https://github.com/openwrt/openwrt/pull/16640 Signed-off-by: Robert Marko --- package/kernel/ubnt-ledbar/src/leds-ubnt-ledbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2