X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/e5568f75972dfc723778653c11cb6b4dc825716a..b36670cedae0009469e8ee117453de831de64a6b:/iokit/Kernel/IOInterruptEventSource.cpp diff --git a/iokit/Kernel/IOInterruptEventSource.cpp b/iokit/Kernel/IOInterruptEventSource.cpp index 72ff61937..bda259692 100644 --- a/iokit/Kernel/IOInterruptEventSource.cpp +++ b/iokit/Kernel/IOInterruptEventSource.cpp @@ -97,12 +97,12 @@ bool IOInterruptEventSource::init(OSObject *inOwner, autoDisable = (intType == kIOInterruptTypeLevel); if (autoDisable) { - intHandler = (IOInterruptAction) - &IOInterruptEventSource::disableInterruptOccurred; + intHandler = OSMemberFunctionCast(IOInterruptAction, + this, &IOInterruptEventSource::disableInterruptOccurred); } else - intHandler = (IOInterruptAction) - &IOInterruptEventSource::normalInterruptOccurred; + intHandler = OSMemberFunctionCast(IOInterruptAction, + this, &IOInterruptEventSource::normalInterruptOccurred); res = (kIOReturnSuccess == inProvider->registerInterrupt (inIntIndex, this, intHandler));