fbdev fixes and cleanups for 6.6-rc7:
various minor fixes, cleanups and annotations for atyfb, sa1100fb, omapfb, uvesafb and mmp. -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQS86RI+GtKfB8BJu973ErUQojoPXwUCZS7h/AAKCRD3ErUQojoP X041AQCov386rrMGpY3v4qmU2X0EIAeQjlgs8hElA3YWIWyg2gEA3bt/PFvod8wV Vhl9gQQJropICSb1zbUZ0aa0rhil6QQ= =5LoM -----END PGP SIGNATURE----- Merge tag 'fbdev-for-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev Pull fbdev fixes and cleanups from Helge Deller: "Various minor fixes, cleanups and annotations for atyfb, sa1100fb, omapfb, uvesafb and mmp" * tag 'fbdev-for-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev: fbdev: core: syscopyarea: fix sloppy typing fbdev: core: cfbcopyarea: fix sloppy typing fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit() fbdev: uvesafb: Remove uvesafb_exec() prototype from include/video/uvesafb.h fbdev: sa1100fb: mark sa1100fb_init() static fbdev: omapfb: fix some error codes fbdev: atyfb: only use ioremap_uc() on i386 and ia64 fbdev: mmp: Annotate struct mmp_path with __counted_by fbdev: mmp: Annotate struct mmphw_ctrl with __counted_by
This commit is contained in:
commit
06dc10eae5
@ -3440,11 +3440,15 @@ static int atyfb_setup_generic(struct pci_dev *pdev, struct fb_info *info,
|
||||
}
|
||||
|
||||
info->fix.mmio_start = raddr;
|
||||
#if defined(__i386__) || defined(__ia64__)
|
||||
/*
|
||||
* By using strong UC we force the MTRR to never have an
|
||||
* effect on the MMIO region on both non-PAT and PAT systems.
|
||||
*/
|
||||
par->ati_regbase = ioremap_uc(info->fix.mmio_start, 0x1000);
|
||||
#else
|
||||
par->ati_regbase = ioremap(info->fix.mmio_start, 0x1000);
|
||||
#endif
|
||||
if (par->ati_regbase == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
|
@ -382,7 +382,7 @@ void cfb_copyarea(struct fb_info *p, const struct fb_copyarea *area)
|
||||
{
|
||||
u32 dx = area->dx, dy = area->dy, sx = area->sx, sy = area->sy;
|
||||
u32 height = area->height, width = area->width;
|
||||
unsigned long const bits_per_line = p->fix.line_length*8u;
|
||||
unsigned int const bits_per_line = p->fix.line_length * 8u;
|
||||
unsigned long __iomem *base = NULL;
|
||||
int bits = BITS_PER_LONG, bytes = bits >> 3;
|
||||
unsigned dst_idx = 0, src_idx = 0, rev_copy = 0;
|
||||
|
@ -316,7 +316,7 @@ void sys_copyarea(struct fb_info *p, const struct fb_copyarea *area)
|
||||
{
|
||||
u32 dx = area->dx, dy = area->dy, sx = area->sx, sy = area->sy;
|
||||
u32 height = area->height, width = area->width;
|
||||
unsigned long const bits_per_line = p->fix.line_length*8u;
|
||||
unsigned int const bits_per_line = p->fix.line_length * 8u;
|
||||
unsigned long *base = NULL;
|
||||
int bits = BITS_PER_LONG, bytes = bits >> 3;
|
||||
unsigned dst_idx = 0, src_idx = 0, rev_copy = 0;
|
||||
|
@ -1406,7 +1406,7 @@ struct mmphw_ctrl {
|
||||
|
||||
/*pathes*/
|
||||
int path_num;
|
||||
struct mmphw_path_plat path_plats[];
|
||||
struct mmphw_path_plat path_plats[] __counted_by(path_num);
|
||||
};
|
||||
|
||||
static inline int overlay_is_vid(struct mmp_overlay *overlay)
|
||||
|
@ -1645,13 +1645,13 @@ static int omapfb_do_probe(struct platform_device *pdev,
|
||||
}
|
||||
fbdev->int_irq = platform_get_irq(pdev, 0);
|
||||
if (fbdev->int_irq < 0) {
|
||||
r = ENXIO;
|
||||
r = -ENXIO;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
fbdev->ext_irq = platform_get_irq(pdev, 1);
|
||||
if (fbdev->ext_irq < 0) {
|
||||
r = ENXIO;
|
||||
r = -ENXIO;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
@ -1214,7 +1214,7 @@ static struct platform_driver sa1100fb_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
int __init sa1100fb_init(void)
|
||||
static int __init sa1100fb_init(void)
|
||||
{
|
||||
if (fb_get_options("sa1100fb", NULL))
|
||||
return -ENODEV;
|
||||
|
@ -1928,10 +1928,10 @@ static void uvesafb_exit(void)
|
||||
}
|
||||
}
|
||||
|
||||
cn_del_callback(&uvesafb_cn_id);
|
||||
driver_remove_file(&uvesafb_driver.driver, &driver_attr_v86d);
|
||||
platform_device_unregister(uvesafb_device);
|
||||
platform_driver_unregister(&uvesafb_driver);
|
||||
cn_del_callback(&uvesafb_cn_id);
|
||||
}
|
||||
|
||||
module_exit(uvesafb_exit);
|
||||
|
@ -231,7 +231,7 @@ struct mmp_path {
|
||||
|
||||
/* layers */
|
||||
int overlay_num;
|
||||
struct mmp_overlay overlays[];
|
||||
struct mmp_overlay overlays[] __counted_by(overlay_num);
|
||||
};
|
||||
|
||||
extern struct mmp_path *mmp_get_path(const char *name);
|
||||
|
@ -109,8 +109,6 @@ struct uvesafb_ktask {
|
||||
u32 ack;
|
||||
};
|
||||
|
||||
static int uvesafb_exec(struct uvesafb_ktask *tsk);
|
||||
|
||||
#define UVESAFB_EXACT_RES 1
|
||||
#define UVESAFB_EXACT_DEPTH 2
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user