summaryrefslogtreecommitdiffstats
path: root/drivers/video/nuc900fb.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-17 13:58:33 +0900
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-09-20 12:22:01 +0300
commitcd7c7f6c3c6d0800e1096aa6d1bf36271c48f8ff (patch)
tree0770bce0c60b807f32eb60e835d903ffcc1b7cd6 /drivers/video/nuc900fb.c
parent521fdb7c4d05ab48fcbfe3d7eac169e305c88118 (diff)
downloadlinux-cd7c7f6c3c6d0800e1096aa6d1bf36271c48f8ff.tar.bz2
video: nuc900fb: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. This is a cosmetic change to make the code simpler and enhance the readability. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/nuc900fb.c')
-rw-r--r--drivers/video/nuc900fb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/nuc900fb.c b/drivers/video/nuc900fb.c
index 796e5112ceee..ec32f675466d 100644
--- a/drivers/video/nuc900fb.c
+++ b/drivers/video/nuc900fb.c
@@ -91,7 +91,7 @@ static int nuc900fb_check_var(struct fb_var_screeninfo *var,
struct fb_info *info)
{
struct nuc900fb_info *fbi = info->par;
- struct nuc900fb_mach_info *mach_info = fbi->dev->platform_data;
+ struct nuc900fb_mach_info *mach_info = dev_get_platdata(fbi->dev);
struct nuc900fb_display *display = NULL;
struct nuc900fb_display *default_display = mach_info->displays +
mach_info->default_display;
@@ -358,7 +358,7 @@ static inline void modify_gpio(void __iomem *reg,
static int nuc900fb_init_registers(struct fb_info *info)
{
struct nuc900fb_info *fbi = info->par;
- struct nuc900fb_mach_info *mach_info = fbi->dev->platform_data;
+ struct nuc900fb_mach_info *mach_info = dev_get_platdata(fbi->dev);
void __iomem *regs = fbi->io;
/*reset the display engine*/
@@ -512,7 +512,7 @@ static int nuc900fb_probe(struct platform_device *pdev)
int size;
dev_dbg(&pdev->dev, "devinit\n");
- mach_info = pdev->dev.platform_data;
+ mach_info = dev_get_platdata(&pdev->dev);
if (mach_info == NULL) {
dev_err(&pdev->dev,
"no platform data for lcd, cannot attach\n");