forked from Minki/linux
[PATCH] au1100fb: Fix compilation
From: Rodolfo Giometti <giometti@linux.it> Fix the following warning on compilation: drivers/video/au1100fb.c: In function `au1100fb_fb_setcolreg': drivers/video/au1100fb.c:219: warning: ISO C90 forbids mixed declarations and code drivers/video/au1100fb.c: In function `au1100fb_fb_pan_display': drivers/video/au1100fb.c:321: warning: ISO C90 forbids mixed declarations and code drivers/video/au1100fb.c: In function `au1100fb_fb_mmap': drivers/video/au1100fb.c:387: warning: ISO C90 forbids mixed declarations and code drivers/video/au1100fb.c: In function `au1100fb_drv_probe': drivers/video/au1100fb.c:471: warning: unsigned int format, long unsigned int arg (arg 2) drivers/video/au1100fb.c: At top level: drivers/video/au1100fb.c:617: warning: initialization from incompatible pointer type drivers/video/au1100fb.c:618: warning: initialization from incompatible pointer type Signed-off-by: Rodolfo Giometti <giometti@linux.it> Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
5a47d749e3
commit
c05b7f3d12
@ -214,10 +214,13 @@ int au1100fb_setmode(struct au1100fb_device *fbdev)
|
|||||||
*/
|
*/
|
||||||
int au1100fb_fb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, struct fb_info *fbi)
|
int au1100fb_fb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, struct fb_info *fbi)
|
||||||
{
|
{
|
||||||
struct au1100fb_device *fbdev = to_au1100fb_device(fbi);
|
struct au1100fb_device *fbdev;
|
||||||
u32 *palette = fbdev->regs->lcd_pallettebase;
|
u32 *palette;
|
||||||
u32 value;
|
u32 value;
|
||||||
|
|
||||||
|
fbdev = to_au1100fb_device(fbi);
|
||||||
|
palette = fbdev->regs->lcd_pallettebase;
|
||||||
|
|
||||||
if (regno > (AU1100_LCD_NBR_PALETTE_ENTRIES - 1))
|
if (regno > (AU1100_LCD_NBR_PALETTE_ENTRIES - 1))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
@ -316,9 +319,11 @@ int au1100fb_fb_blank(int blank_mode, struct fb_info *fbi)
|
|||||||
*/
|
*/
|
||||||
int au1100fb_fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *fbi)
|
int au1100fb_fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *fbi)
|
||||||
{
|
{
|
||||||
struct au1100fb_device *fbdev = to_au1100fb_device(fbi);
|
struct au1100fb_device *fbdev;
|
||||||
int dy;
|
int dy;
|
||||||
|
|
||||||
|
fbdev = to_au1100fb_device(fbi);
|
||||||
|
|
||||||
print_dbg("fb_pan_display %p %p", var, fbi);
|
print_dbg("fb_pan_display %p %p", var, fbi);
|
||||||
|
|
||||||
if (!var || !fbdev) {
|
if (!var || !fbdev) {
|
||||||
@ -382,10 +387,12 @@ void au1100fb_fb_rotate(struct fb_info *fbi, int angle)
|
|||||||
*/
|
*/
|
||||||
int au1100fb_fb_mmap(struct fb_info *fbi, struct vm_area_struct *vma)
|
int au1100fb_fb_mmap(struct fb_info *fbi, struct vm_area_struct *vma)
|
||||||
{
|
{
|
||||||
struct au1100fb_device *fbdev = to_au1100fb_device(fbi);
|
struct au1100fb_device *fbdev;
|
||||||
unsigned int len;
|
unsigned int len;
|
||||||
unsigned long start=0, off;
|
unsigned long start=0, off;
|
||||||
|
|
||||||
|
fbdev = to_au1100fb_device(fbi);
|
||||||
|
|
||||||
if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT)) {
|
if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT)) {
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
@ -467,7 +474,7 @@ int au1100fb_drv_probe(struct device *dev)
|
|||||||
|
|
||||||
if (!request_mem_region(au1100fb_fix.mmio_start, au1100fb_fix.mmio_len,
|
if (!request_mem_region(au1100fb_fix.mmio_start, au1100fb_fix.mmio_len,
|
||||||
DRIVER_NAME)) {
|
DRIVER_NAME)) {
|
||||||
print_err("fail to lock memory region at 0x%08x",
|
print_err("fail to lock memory region at 0x%08lx",
|
||||||
au1100fb_fix.mmio_start);
|
au1100fb_fix.mmio_start);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
@ -595,13 +602,13 @@ int au1100fb_drv_remove(struct device *dev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int au1100fb_drv_suspend(struct device *dev, u32 state, u32 level)
|
int au1100fb_drv_suspend(struct device *dev, pm_message_t state)
|
||||||
{
|
{
|
||||||
/* TODO */
|
/* TODO */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int au1100fb_drv_resume(struct device *dev, u32 level)
|
int au1100fb_drv_resume(struct device *dev)
|
||||||
{
|
{
|
||||||
/* TODO */
|
/* TODO */
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user