Loading...
iokit/Kernel/IOInterruptEventSource.cpp xnu-517.9.4 xnu-792
--- xnu/xnu-517.9.4/iokit/Kernel/IOInterruptEventSource.cpp
+++ xnu/xnu-792/iokit/Kernel/IOInterruptEventSource.cpp
@@ -97,12 +97,12 @@
 
             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));