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.
This commit is contained in:
matthieu 2009-09-08 06:56:28 +00:00
parent 8ac1a9e654
commit 768012be84

View File

@ -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;
}
}