Commit 27c5d745 authored by Richard Purdie's avatar Richard Purdie Committed by Len Brown

backlight: fix backlight_device_register compile failures

Fix breakage from commit 519ab5f2 which
didn't update all references to backlight_device_register causing
compile failures.
Signed-off-by: default avatarRichard Purdie <rpurdie@rpsys.net>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent e22a9a8b
...@@ -121,7 +121,7 @@ static int corgibl_probe(struct platform_device *pdev) ...@@ -121,7 +121,7 @@ static int corgibl_probe(struct platform_device *pdev)
machinfo->limit_mask = -1; machinfo->limit_mask = -1;
corgi_backlight_device = backlight_device_register ("corgi-bl", corgi_backlight_device = backlight_device_register ("corgi-bl",
NULL, &corgibl_data); &pdev->dev, NULL, &corgibl_data);
if (IS_ERR (corgi_backlight_device)) if (IS_ERR (corgi_backlight_device))
return PTR_ERR (corgi_backlight_device); return PTR_ERR (corgi_backlight_device);
......
...@@ -105,7 +105,7 @@ static struct backlight_properties hp680bl_data = { ...@@ -105,7 +105,7 @@ static struct backlight_properties hp680bl_data = {
static int __init hp680bl_probe(struct platform_device *dev) static int __init hp680bl_probe(struct platform_device *dev)
{ {
hp680_backlight_device = backlight_device_register ("hp680-bl", hp680_backlight_device = backlight_device_register ("hp680-bl",
NULL, &hp680bl_data); &dev->dev, NULL, &hp680bl_data);
if (IS_ERR (hp680_backlight_device)) if (IS_ERR (hp680_backlight_device))
return PTR_ERR (hp680_backlight_device); return PTR_ERR (hp680_backlight_device);
......
...@@ -184,7 +184,7 @@ static int locomolcd_probe(struct locomo_dev *ldev) ...@@ -184,7 +184,7 @@ static int locomolcd_probe(struct locomo_dev *ldev)
local_irq_restore(flags); local_irq_restore(flags);
locomolcd_bl_device = backlight_device_register("locomo-bl", NULL, &locomobl_data); locomolcd_bl_device = backlight_device_register("locomo-bl", &ldev->dev, NULL, &locomobl_data);
if (IS_ERR (locomolcd_bl_device)) if (IS_ERR (locomolcd_bl_device))
return PTR_ERR (locomolcd_bl_device); return PTR_ERR (locomolcd_bl_device);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment