[openwrt/openwrt] ubnt-ledbar: fix compilation error

LEDE Commits lede-commits at lists.infradead.org
Tue Oct 8 13:24:57 PDT 2024


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/15f5c7e3653da6701867668265e5603a8c08e773

commit 15f5c7e3653da6701867668265e5603a8c08e773
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Tue Oct 8 13:23:38 2024 -0700

    ubnt-ledbar: fix compilation error
    
    Wrong variable name from copy/paste.
    
    Signed-off-by: Rosen Penev <rosenp at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/16640
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 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;
 




More information about the lede-commits mailing list