Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61ba5aa7 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "backlight: qcom-spmi-wled: Initialize mutex before it can be used"

parents a851ed7c e5702b05
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2304,6 +2304,8 @@ static int wled_probe(struct platform_device *pdev)
		return rc;
	}

	mutex_init(&wled->lock);

	val = WLED_DEFAULT_BRIGHTNESS;
	of_property_read_u32(pdev->dev.of_node, "default-brightness", &val);
	wled->brightness = val;
@@ -2333,7 +2335,6 @@ static int wled_probe(struct platform_device *pdev)
		return rc;
	}

	mutex_init(&wled->lock);
	platform_set_drvdata(pdev, wled);

	memset(&props, 0, sizeof(struct backlight_properties));