summaryrefslogtreecommitdiff
path: root/drivers/video/backlight/qcom-wled.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/backlight/qcom-wled.c')
-rw-r--r--drivers/video/backlight/qcom-wled.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c
index 3bc7800eb0a9..091f07e7c145 100644
--- a/drivers/video/backlight/qcom-wled.c
+++ b/drivers/video/backlight/qcom-wled.c
@@ -1692,7 +1692,7 @@ static int wled_probe(struct platform_device *pdev)
static int wled_remove(struct platform_device *pdev)
{
- struct wled *wled = dev_get_drvdata(&pdev->dev);
+ struct wled *wled = platform_get_drvdata(pdev);
mutex_destroy(&wled->lock);
cancel_delayed_work_sync(&wled->ovp_work);