Linux Framebuffer Layer development
 help / color / mirror / Atom feed
* [PATCH] video: fm2fb: Fixed iomem access.
@ 2026-11-01 14:13 Steffen A. Mork
  0 siblings, 0 replies; only message in thread
From: Steffen A. Mork @ 2026-11-01 14:13 UTC (permalink / raw)
  To: linux-fbdev; +Cc: 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 <linux-dev@morknet.de>
---
 drivers/video/fbdev/fm2fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/fm2fb.c b/drivers/video/fbdev/fm2fb.c
index 25d2e716edf2..ed4457df7707 100644
--- a/drivers/video/fbdev/fm2fb.c
+++ b/drivers/video/fbdev/fm2fb.c
@@ -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 */
-- 
2.43.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-01 14:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-01 14:13 [PATCH] video: fm2fb: Fixed iomem access Steffen A. Mork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox