rk29phone:fix building errors without wm8994
[firefly-linux-kernel-4.4.55.git] / drivers / video / backlight / wm831x_bl.c
index bb8ac47c51f2176f71a52d6f1486e806f43c353b..d94845185feecce509a298a80dc343e626178c15 100755 (executable)
@@ -270,7 +270,7 @@ static int wm831x_backlight_probe(struct platform_device *pdev)
 
        props.max_brightness = max_isel;
        bl = backlight_device_register("wm831x", &pdev->dev, data,
-                                      &wm831x_backlight_ops);
+                                      &wm831x_backlight_ops,&props);
        if (IS_ERR(bl)) {
                dev_err(&pdev->dev, "failed to register backlight\n");
                kfree(data);