Skip to contentSkip to conversation

video: fm2fb: Fixed iomem access.

PATCH Applied Steffen A. Mork 2 participants 2 messages Nov 1 – Nov 18 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/video/fbdev/fm2fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/fm2fb.c +1 -1
index 25d2e716edf2..ed4457df7707 100644
@@ -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
maintainer Applied
#1 lore raw
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.

---
  drivers/video/fbdev/fm2fb.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

applied.

Thanks!
Helge