xserver/hw/kdrive/fbdev fbdev.c,1.44,1.45
Daniel Stone
xserver-commit at pdx.freedesktop.org
Thu May 27 21:56:52 PDT 2004
Committed by: daniel
Update of /cvs/xserver/xserver/hw/kdrive/fbdev
In directory pdx:/tmp/cvs-serv3522/hw/kdrive/fbdev
Modified Files:
fbdev.c
Log Message:
Hey, I like devfs.
* hw/kdrive/fbdev/fbdev.c (fbdevInitialize):
Try /dev/fb/0 if /dev/fb0 fails.
Index: fbdev.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/kdrive/fbdev/fbdev.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- a/fbdev.c 6 May 2004 16:19:32 -0000 1.44
+++ b/fbdev.c 28 May 2004 04:56:49 -0000 1.45
@@ -38,7 +38,8 @@
{
int k;
unsigned long off;
- if ((priv->fd = open("/dev/fb0", O_RDWR)) < 0) {
+ if ((priv->fd = open("/dev/fb0", O_RDWR)) < 0 && \
+ (priv->fd = open("/dev/fb/0", O_RDWR)) < 0) {
perror("Error opening /dev/fb0");
return FALSE;
}
More information about the xserver-commit
mailing list