The ->Identify hook is not mandatory.

Best comment ever though.  Mad props.
This commit is contained in:
Adam Jackson 2008-08-19 15:06:11 -04:00
parent af5125968a
commit b1f2c7a89a

View File

@ -716,14 +716,10 @@ InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
for (i = 0; i < xf86NumDrivers; i++) {
xorgHWFlags flags;
/* The Identify function is mandatory, but if it isn't there continue */
if (xf86DriverList[i]->Identify != NULL)
xf86DriverList[i]->Identify(0);
else {
xf86Msg(X_WARNING, "Driver `%s' has no Identify function\n",
xf86DriverList[i]->driverName ? xf86DriverList[i]->driverName
: "noname");
}
if (!xorgHWAccess
&& (!xf86DriverList[i]->driverFunc
|| !xf86DriverList[i]->driverFunc(NULL,