diff options
Diffstat (limited to 'drivers/video/backlight/pwm_bl.c')
-rw-r--r-- | drivers/video/backlight/pwm_bl.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index f7be6f224d69..1fea627394d7 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -17,7 +17,6 @@ #include <linux/fb.h> #include <linux/backlight.h> #include <linux/err.h> -#include <linux/gpio.h> #include <linux/pwm.h> #include <linux/pwm_backlight.h> #include <linux/slab.h> @@ -28,7 +27,6 @@ struct pwm_bl_data { unsigned int period; unsigned int lth_brightness; unsigned int *levels; - unsigned int pwm_gpio; int (*notify)(struct device *, int brightness); void (*notify_after)(struct device *, @@ -207,7 +205,6 @@ static int pwm_backlight_probe(struct platform_device *pdev) pb->check_fb = data->check_fb; pb->exit = data->exit; pb->dev = &pdev->dev; - pb->pwm_gpio = data->pwm_gpio; pb->pwm = devm_pwm_get(&pdev->dev, NULL); if (IS_ERR(pb->pwm)) { @@ -237,13 +234,6 @@ static int pwm_backlight_probe(struct platform_device *pdev) memset(&props, 0, sizeof(struct backlight_properties)); props.type = BACKLIGHT_RAW; props.max_brightness = data->max_brightness; - - if (gpio_is_valid(pb->pwm_gpio)) { - ret = gpio_request(pb->pwm_gpio, "disp_bl"); - if (ret) - dev_err(&pdev->dev, "backlight gpio request failed\n"); - } - bl = backlight_device_register(dev_name(&pdev->dev), &pdev->dev, pb, &pwm_backlight_ops, &props); if (IS_ERR(bl)) { @@ -262,9 +252,6 @@ static int pwm_backlight_probe(struct platform_device *pdev) bl->props.brightness = data->dft_brightness; backlight_update_status(bl); - if (gpio_is_valid(pb->pwm_gpio)) - gpio_free(pb->pwm_gpio); - platform_set_drvdata(pdev, bl); return 0; |