summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-09-08 06:56:29 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-09-08 06:56:29 +0000
commit69cf3b79ffab537e8e530d6c87e3f1d7ad63c405 (patch)
tree74aa56780c53ea35b3cda46fcc75c60dabe31e38
parent5a16a37d58ecfcf6f1f2d1a490cf9f20d26b1be9 (diff)
sparcDeviceName: do not fall back to wsfb if no hw specific driver
was found. This is done in the caller already. While there change to a switch() construct to prepare for potential future drivers addition.
-rw-r--r--xserver/hw/xfree86/os-support/bsd/bsd_sbus.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/xserver/hw/xfree86/os-support/bsd/bsd_sbus.c b/xserver/hw/xfree86/os-support/bsd/bsd_sbus.c
index ad0797437..859eb184a 100644
--- a/xserver/hw/xfree86/os-support/bsd/bsd_sbus.c
+++ b/xserver/hw/xfree86/os-support/bsd/bsd_sbus.c
@@ -198,8 +198,11 @@ sparcPromClose(void)
char *
sparcDriverName(void)
{
- if (sbusInfo.devId == SBUS_DEVICE_FFB)
+
+ switch (sbusInfo.devId) {
+ case SBUS_DEVICE_FFB:
return "sunffb";
- else
- return "wsfb";
+ default:
+ return NULL;
+ }
}