video: fm2fb: Fixed iomem access.
PATCH 1/1 video: fm2fb: Fixed iomem access.
This driver has not been tested for at least twenty years. In the meantime, the frame buffer API has been updated. This patch addresses this issue and makes the driver functional again.
Signed-off-by Steffen A. Mork <[email protected]>
--- drivers/video/fbdev/fm2fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/fm2fb.c +1 -1
@@ -257,7 +257,7 @@ static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id)strcpy (fb_fix.id, is_fm ?"FrameMaster II" :"Rainbow II" );/* make EBU color bars on display */ - ptr = (unsigned long *)fb_fix.smem_start; + ptr = (unsigned long *)info->screen_base;for (y =0 ; y <576 ; y++) {for (x =0 ; x <96 ; x++) *ptr++ =0xffffff ;/* white */ for (x =0 ; x <96 ; x++) *ptr++ =0xffff00 ;/* yellow */
Signature · 1 line
2.43.0
Quoted 8 lines · Steffen A. Mork
This driver has not been tested for at least twenty years. In the meantime, the frame buffer API has been updated. This patch addresses this issue and makes the driver functional again.
Signed-off-by Steffen A. Mork <[email protected]>--- drivers/video/fbdev/fm2fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
applied.
Thanks!
Helge