summaryrefslogtreecommitdiff
path: root/hw/kdrive/fbdev
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2004-05-28 04:56:49 +0000
committerDaniel Stone <daniel@fooishbar.org>2004-05-28 04:56:49 +0000
commit6af411b02e808220d3afcef14abb97eec86cf1f3 (patch)
tree11c880597ecf0933e724ee36646a775e6ae13446 /hw/kdrive/fbdev
parenta7b42f685e7a4bf57cf89a3ef664a581ecedb50f (diff)
Hey, I like devfs.
Try /dev/fb/0 if /dev/fb0 fails.
Diffstat (limited to 'hw/kdrive/fbdev')
-rw-r--r--hw/kdrive/fbdev/fbdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/kdrive/fbdev/fbdev.c b/hw/kdrive/fbdev/fbdev.c
index ea2fb4c1e..d904a4aa1 100644
--- a/hw/kdrive/fbdev/fbdev.c
+++ b/hw/kdrive/fbdev/fbdev.c
@@ -38,7 +38,8 @@ fbdevInitialize (KdCardInfo *card, FbdevPriv *priv)
{
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;
}