From: Rosen Penev Date: Tue, 8 Oct 2024 20:23:38 +0000 (-0700) Subject: ubnt-ledbar: fix compilation error X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=15f5c7e3653da6701867668265e5603a8c08e773;p=openwrt%2Fstaging%2Fblocktrron.git 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 --- 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;