David Miller
892c24ca40
arkfb: Compute VGA base iomem pointer explicitly.
...
This allows the driver to work in multi-domain PCI
configurations.
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2011-03-22 15:47:55 +09:00
David Miller
ec70a94356
arkfb: Don't clobber par->state.vgabase during open method.
...
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2011-03-22 15:47:38 +09:00
David Miller
c5e04633b3
arkfb: Pass par->state.vgabase to vga_*() calls.
...
Instead of just plain NULL.
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2011-03-22 15:47:26 +09:00
David Miller
38d2620ea4
svga: Make svga_set_timings() take an iomem regbase pointer.
...
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2011-03-22 15:47:22 +09:00
David Miller
55db092388
svga: Make svga_tilecursor() take an iomem regbase pointer.
...
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2011-03-22 15:47:18 +09:00
David Miller
9c96394bb9
svga: Make svga_set_textmode_vga_regs() take an iomem regbase pointer.
...
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2011-03-22 15:47:15 +09:00
David Miller
1d28fcadb0
svga: Make svga_set_default_crt_regs() take an iomem regbase pointer.
...
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2011-03-22 15:47:10 +09:00
David Miller
ea770789dc
svga: Make svga_wcrt_mask() take an iomem regbase pointer.
...
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2011-03-22 15:47:07 +09:00
David Miller
d907ec04cc
svga: Make svga_wseq_mask() take an iomem regbase pointer.
...
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2011-03-22 15:47:03 +09:00
David Miller
a4ade83948
svga: Make svga_set_default_seq_regs take an iomem regbase pointer.
...
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2011-03-22 15:46:59 +09:00
David Miller
f51a14dded
svga: Make svga_set_default_atc_regs take an iomem regbase pointer.
...
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2011-03-22 15:46:56 +09:00
David Miller
e2fade2c14
svga: Make svga_set_default_gfx_regs take an iomem regbase pointer.
...
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2011-03-22 15:46:52 +09:00
David Miller
21da386d0e
svga: Make svga_wcrt_multi take an iomem regbase pointer.
...
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2011-03-22 15:46:44 +09:00
Torben Hohn
ac751efa6a
console: rename acquire/release_console_sem() to console_lock/unlock()
...
The -rt patches change the console_semaphore to console_mutex. As a
result, a quite large chunk of the patches changes all
acquire/release_console_sem() to acquire/release_console_mutex()
This commit makes things use more neutral function names which dont make
implications about the underlying lock.
The only real change is the return value of console_trylock which is
inverted from try_acquire_console_sem()
This patch also paves the way to switching console_sem from a semaphore to
a mutex.
[akpm@linux-foundation.org: coding-style fixes]
[akpm@linux-foundation.org: make console_trylock return 1 on success, per Geert]
Signed-off-by: Torben Hohn <torbenh@gmx.de>
Cc: Thomas Gleixner <tglx@tglx.de>
Cc: Greg KH <gregkh@suse.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-01-26 10:50:06 +10:00
Roel Kluin
b935257b1f
arkfb: fix misplaced parentheses
...
Signed-off-by: Roel Kluin <roel.kluin@gmail.com >
Acked-by: Ondrej Zajicek <santiago@crfreenet.org >
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2009-04-01 08:59:32 -07:00
Adrian Bunk
7a8fc9b248
removed unused #include <linux/version.h>'s
...
This patch lets the files using linux/version.h match the files that
#include it.
Signed-off-by: Adrian Bunk <bunk@kernel.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-08-23 12:14:12 -07:00
Ondrej Zajicek
594a881977
vt8623fb: fix kernel oops
...
commit 20e061fb75
Author: Ondrej Zajicek <santiago@crfreenet.org >
Date: Mon Apr 28 02:15:18 2008 -0700
fbdev: framebuffer_alloc() fixes
Correct the dev arg of framebuffer_alloc() in arkfb, s3fb and vt8623fb.
causes a null-pointer deref because "info->dev is NULL, info was just
kzallocated".
Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org >
Reported-by: "MadLoisae@gmx.net " <MadLoisae@gmx.net >
Tested-by: "MadLoisae@gmx.net " <MadLoisae@gmx.net >
Cc: Alexey Dobriyan <adobriyan@gmail.com >
Cc: "Antonino A. Daplas" <adaplas@pol.net >
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm >
Cc: <stable@kernel.org > [2.6.26.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-08-05 14:33:46 -07:00
Julia Lawall
950d442ad0
drivers/video: release mutex in error handling code
...
The mutex is released on a successful return, so it would seem that it
should be released on an error return as well.
The semantic patch finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/ )
// <smpl>
@@
expression l;
@@
mutex_lock(l);
... when != mutex_unlock(l)
when any
when strict
(
if (...) { ... when != mutex_unlock(l)
+ mutex_unlock(l);
return ...;
}
|
mutex_unlock(l);
)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk >
Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl >
Acked-by: Ondrej Zajicek <santiago@crfreenet.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-07-30 09:41:45 -07:00
Ondrej Zajicek
20e061fb75
fbdev: framebuffer_alloc() fixes
...
Correct the dev arg of framebuffer_alloc() in arkfb, s3fb and vt8623fb.
Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org >
Cc: "Antonino A. Daplas" <adaplas@pol.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-04-28 08:58:38 -07:00
Krzysztof Helt
1abf91729f
arkfb: add option mode_option
...
Add the option "mode_option". This is one step toward changing all fb
drivers to have common "mode_option" parameter.
Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl >
Cc: "Antonino A. Daplas" <adaplas@pol.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-04-28 08:58:37 -07:00
Ondrej Zajicek
38d473f995
vt8623fb: arkfb: null pointer dereference fix
...
This patch prevents null pointer dereference in arkfb and vt8623fb.
Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org >
Signed-off-by: Antonino Daplas <adaplas@gmail.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2007-06-01 08:18:28 -07:00
Antonino A. Daplas
5a87ede945
svgalib: move fb_get_caps to svgalib
...
Move fb_get_caps() method to svgalib.c as svga_get_caps() so it can be used by
s3fb, arkfb and vt8623fb.
Signed-off-by: Antonino Daplas <adaplas@gmail.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2007-05-09 12:30:57 -07:00
Ondrej Zajicek
681e14730c
arkfb: new framebuffer driver for ARK Logic cards
...
This patch adds fbdev driver for graphics cards with ARK Logic 2000PV graphics
chip with ICS 5342 ramdac.
[adaplas@gmail.com: build fixes]
Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-09 12:30:57 -07:00