From 235f157f22f2a29d7435bcae5c3ace994c19fa46 Mon Sep 17 00:00:00 2001 From: Felipe Balbi Date: Wed, 3 Oct 2007 16:28:05 -0400 Subject: [PATCH] VIDEO: OMAP: BACKLIGHT: Fix compiling issues due to API changes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch fixes compilation for omap_bl.c due to removal of old class_dev Signed-off-by: Felipe Balbi Acked-by: Luís Cargnini Signed-off-by: Tony Lindgren --- drivers/video/backlight/omap_bl.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/video/backlight/omap_bl.c b/drivers/video/backlight/omap_bl.c index 3249bf86c37..2072f28578f 100644 --- a/drivers/video/backlight/omap_bl.c +++ b/drivers/video/backlight/omap_bl.c @@ -76,7 +76,7 @@ static void omapbl_blank(struct omap_backlight *bl, int mode) static int omapbl_suspend(struct platform_device *pdev, pm_message_t state) { struct backlight_device *dev = platform_get_drvdata(pdev); - struct omap_backlight *bl = class_get_devdata(&dev->class_dev); + struct omap_backlight *bl = dev_get_drvdata(&dev->dev); omapbl_blank(bl, FB_BLANK_POWERDOWN); return 0; @@ -85,7 +85,7 @@ static int omapbl_suspend(struct platform_device *pdev, pm_message_t state) static int omapbl_resume(struct platform_device *pdev) { struct backlight_device *dev = platform_get_drvdata(pdev); - struct omap_backlight *bl = class_get_devdata(&dev->class_dev); + struct omap_backlight *bl = dev_get_drvdata(&dev->dev); omapbl_blank(bl, bl->powermode); return 0; @@ -97,7 +97,7 @@ static int omapbl_resume(struct platform_device *pdev) static int omapbl_set_power(struct backlight_device *dev, int state) { - struct omap_backlight *bl = class_get_devdata(&dev->class_dev); + struct omap_backlight *bl = dev_get_drvdata(&dev->dev); omapbl_blank(bl, state); bl->powermode = state; @@ -107,7 +107,7 @@ static int omapbl_set_power(struct backlight_device *dev, int state) static int omapbl_update_status(struct backlight_device *dev) { - struct omap_backlight *bl = class_get_devdata(&dev->class_dev); + struct omap_backlight *bl = dev_get_drvdata(&dev->dev); if (bl->current_intensity != dev->props.brightness) { if (dev->props.brightness < 0) @@ -127,7 +127,7 @@ static int omapbl_update_status(struct backlight_device *dev) static int omapbl_get_intensity(struct backlight_device *dev) { - struct omap_backlight *bl = class_get_devdata(&dev->class_dev); + struct omap_backlight *bl = dev_get_drvdata(&dev->dev); return bl->current_intensity; } @@ -182,7 +182,7 @@ static int omapbl_probe(struct platform_device *pdev) static int omapbl_remove(struct platform_device *pdev) { struct backlight_device *dev = platform_get_drvdata(pdev); - struct omap_backlight *bl = class_get_devdata(&dev->class_dev); + struct omap_backlight *bl = dev_get_drvdata(&dev->dev); backlight_device_unregister(dev); kfree(bl); -- 2.41.1