# \[PATCH\] tridentfb: remove misplaced enable\_mmio()

- From: Krzysztof Helt \<hidden\>
- Date: 2008-05-02 09:15:33 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2008/05/13458106
- Thread: https://ratatoskr.run/linux-fbdev/2008/05/13458106/t.md

```text
From: Krzysztof Helt <redacted>

This patch removes redundant enable_mmio() call as
the mmio mode is enabled in the probe function earlier.

Signed-off-by: Krzysztof Helt <redacted>

---

If the patch below is mangled by email client it is also attached.

diff -urp linux-old/drivers/video/tridentfb.c 
linux-pc/drivers/video/tridentfb.c
--- linux-old/drivers/video/tridentfb.c	2008-05-01 11:19:02.000000000 
+0200
+++ linux-pc/drivers/video/tridentfb.c	2008-05-01 18:06:31.000000000 +0200
@@ -905,7 +905,6 @@ static int tridentfb_set_par(struct fb_i
 	vblankstart = var->yres;
 	vblankend = vtotal + 2;
 
-	enable_mmio();
 	crtc_unlock();
 	write3CE(CyberControl, 8);

----------------------------------------------------
Kociaki prosto z wybiegów mody?  
Ciułała lepsze niż Paris! 
http://klik.wp.pl/?adr=http%3A%2F%2Fkonkurs.ulubiency.wp.pl&sid=335
```

## Attachments

- [tridentfb-remove-mmio.diff](https://ratatoskr.run/linux-fbdev/2008/05/13458106/attachment/0) (application/octet-stream, 616 bytes)
- [(unnamed)](https://ratatoskr.run/linux-fbdev/2008/05/13458106/attachment/1) (text/plain, 320 bytes)
- [(unnamed)](https://ratatoskr.run/linux-fbdev/2008/05/13458106/attachment/2) (text/plain, 182 bytes)
