diff options
author | Julia Lawall <Julia.Lawall@inria.fr> | 2021-02-09 22:13:25 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-02-12 11:01:45 +0100 |
commit | 0b5e0f45af403cb6e9df574e1cb52691611dc0b8 (patch) | |
tree | 6c3ba88b8a35abf5525655d8bb79d030b1c89fe9 /drivers/video/fbdev/amifb.c | |
parent | backlight: ktd253: Bring up in a known state (diff) | |
download | linux-0b5e0f45af403cb6e9df574e1cb52691611dc0b8.tar.xz linux-0b5e0f45af403cb6e9df574e1cb52691611dc0b8.zip |
backlight/video: Use Platform getter/setter functions
Use getter and setter functions, for platform_device structures and a
spi_device structure.
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/video/fbdev/amifb.c')
-rw-r--r-- | drivers/video/fbdev/amifb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/amifb.c b/drivers/video/fbdev/amifb.c index 226682550b4b..6e07a97bbd31 100644 --- a/drivers/video/fbdev/amifb.c +++ b/drivers/video/fbdev/amifb.c @@ -3736,7 +3736,7 @@ default_chipset: if (err) goto free_irq; - dev_set_drvdata(&pdev->dev, info); + platform_set_drvdata(pdev, info); err = register_framebuffer(info); if (err) @@ -3764,7 +3764,7 @@ release: static int __exit amifb_remove(struct platform_device *pdev) { - struct fb_info *info = dev_get_drvdata(&pdev->dev); + struct fb_info *info = platform_get_drvdata(pdev); unregister_framebuffer(info); fb_dealloc_cmap(&info->cmap); |