diff options
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/mbx/mbxfb.c | 6 | ||||
-rw-r--r-- | drivers/video/pxafb.c | 10 |
2 files changed, 3 insertions, 13 deletions
diff --git a/drivers/video/mbx/mbxfb.c b/drivers/video/mbx/mbxfb.c index afea9abbd678..6ce34160da78 100644 --- a/drivers/video/mbx/mbxfb.c +++ b/drivers/video/mbx/mbxfb.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include "regs.h" | 34 | #include "regs.h" |
35 | #include "reg_bits.h" | 35 | #include "reg_bits.h" |
36 | 36 | ||
37 | static unsigned long virt_base_2700; | 37 | static void __iomem *virt_base_2700; |
38 | 38 | ||
39 | #define write_reg(val, reg) do { writel((val), (reg)); } while(0) | 39 | #define write_reg(val, reg) do { writel((val), (reg)); } while(0) |
40 | 40 | ||
@@ -850,7 +850,7 @@ static int mbxfb_suspend(struct platform_device *dev, pm_message_t state) | |||
850 | { | 850 | { |
851 | /* make frame buffer memory enter self-refresh mode */ | 851 | /* make frame buffer memory enter self-refresh mode */ |
852 | write_reg_dly(LMPWR_MC_PWR_SRM, LMPWR); | 852 | write_reg_dly(LMPWR_MC_PWR_SRM, LMPWR); |
853 | while (LMPWRSTAT != LMPWRSTAT_MC_PWR_SRM) | 853 | while (readl(LMPWRSTAT) != LMPWRSTAT_MC_PWR_SRM) |
854 | ; /* empty statement */ | 854 | ; /* empty statement */ |
855 | 855 | ||
856 | /* reset the device, since it's initial state is 'mostly sleeping' */ | 856 | /* reset the device, since it's initial state is 'mostly sleeping' */ |
@@ -946,7 +946,7 @@ static int __devinit mbxfb_probe(struct platform_device *dev) | |||
946 | ret = -EINVAL; | 946 | ret = -EINVAL; |
947 | goto err3; | 947 | goto err3; |
948 | } | 948 | } |
949 | virt_base_2700 = (unsigned long)mfbi->reg_virt_addr; | 949 | virt_base_2700 = mfbi->reg_virt_addr; |
950 | 950 | ||
951 | mfbi->fb_virt_addr = ioremap_nocache(mfbi->fb_phys_addr, | 951 | mfbi->fb_virt_addr = ioremap_nocache(mfbi->fb_phys_addr, |
952 | res_size(mfbi->fb_req)); | 952 | res_size(mfbi->fb_req)); |
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c index e89778f4081f..1d1e4f175e78 100644 --- a/drivers/video/pxafb.c +++ b/drivers/video/pxafb.c | |||
@@ -1309,16 +1309,6 @@ static int pxafb_smart_init(struct pxafb_info *fbi) | |||
1309 | return 0; | 1309 | return 0; |
1310 | } | 1310 | } |
1311 | #else | 1311 | #else |
1312 | int pxafb_smart_queue(struct fb_info *info, uint16_t *cmds, int n_cmds) | ||
1313 | { | ||
1314 | return 0; | ||
1315 | } | ||
1316 | |||
1317 | int pxafb_smart_flush(struct fb_info *info) | ||
1318 | { | ||
1319 | return 0; | ||
1320 | } | ||
1321 | |||
1322 | static inline int pxafb_smart_init(struct pxafb_info *fbi) { return 0; } | 1312 | static inline int pxafb_smart_init(struct pxafb_info *fbi) { return 0; } |
1323 | #endif /* CONFIG_FB_PXA_SMARTPANEL */ | 1313 | #endif /* CONFIG_FB_PXA_SMARTPANEL */ |
1324 | 1314 | ||