Skip to content

Commit

Permalink
Copy gIOMatchCategoryKey into SMBus device stub
Browse files Browse the repository at this point in the history
  • Loading branch information
1Revenger1 committed Oct 12, 2024
1 parent f381400 commit 3aad135
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions VoodooPS2Trackpad/VoodooPS2SynapticsTouchPad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ IOService* ApplePS2SynapticsTouchPad::probe(IOService * provider, SInt32 * score
dictionary->setObject("Clickpad", _cont_caps.one_btn_clickpad ?
kOSBooleanTrue : kOSBooleanFalse);
ApplePS2SmbusDevice *smbus = ApplePS2SmbusDevice::withReset(true, dictionary, 0x2C);

// gIOMatchCategoryKey is necessary to prevent multiple services attaching to the PS2 device
if (smbus)
smbus->setProperty(gIOMatchCategoryKey, getProperty(gIOMatchCategoryKey));
OSSafeReleaseNULL(dictionary);
return smbus;
}
Expand Down

0 comments on commit 3aad135

Please sign in to comment.