Correct the tests for ISA PIC/APIC so that they actually work.

This commit is contained in:
Mike Smith 2000-06-10 22:56:09 +00:00
parent 95e2a710ad
commit 6eb9d785ef
2 changed files with 4 additions and 4 deletions

View File

@ -576,10 +576,10 @@ pnpbios_identify(driver_t *driver, device_t parent)
* available for general use.
*/
#ifdef APIC_IO
if (pnp_eisaformat(pd->devid) == "PNP0000") /* ISA PIC */
if (!strcmp(pnp_eisaformat(pd->devid), "PNP0000")) /* ISA PIC */
continue;
#else
if (pnp_eisaformat(pd->devid) == "PNP0003") /* APIC */
if (!strcmp(pnp_eisaformat(pd->devid), "PNP0003")) /* APIC */
continue;
#endif

View File

@ -576,10 +576,10 @@ pnpbios_identify(driver_t *driver, device_t parent)
* available for general use.
*/
#ifdef APIC_IO
if (pnp_eisaformat(pd->devid) == "PNP0000") /* ISA PIC */
if (!strcmp(pnp_eisaformat(pd->devid), "PNP0000")) /* ISA PIC */
continue;
#else
if (pnp_eisaformat(pd->devid) == "PNP0003") /* APIC */
if (!strcmp(pnp_eisaformat(pd->devid), "PNP0003")) /* APIC */
continue;
#endif