Loading...
--- xnu/xnu-792.6.76/iokit/Kernel/IOInterruptEventSource.cpp
+++ xnu/xnu-344.2/iokit/Kernel/IOInterruptEventSource.cpp
@@ -72,9 +72,9 @@
OSMetaClassDefineReservedUnused(IOInterruptEventSource, 7);
bool IOInterruptEventSource::init(OSObject *inOwner,
- Action inAction,
- IOService *inProvider,
- int inIntIndex)
+ Action inAction = 0,
+ IOService *inProvider = 0,
+ int inIntIndex = 0)
{
bool res = true;
@@ -97,12 +97,12 @@
autoDisable = (intType == kIOInterruptTypeLevel);
if (autoDisable) {
- intHandler = OSMemberFunctionCast(IOInterruptAction,
- this, &IOInterruptEventSource::disableInterruptOccurred);
+ intHandler = (IOInterruptAction)
+ &IOInterruptEventSource::disableInterruptOccurred;
}
else
- intHandler = OSMemberFunctionCast(IOInterruptAction,
- this, &IOInterruptEventSource::normalInterruptOccurred);
+ intHandler = (IOInterruptAction)
+ &IOInterruptEventSource::normalInterruptOccurred;
res = (kIOReturnSuccess == inProvider->registerInterrupt
(inIntIndex, this, intHandler));
@@ -123,7 +123,7 @@
IOInterruptEventSource *me = new IOInterruptEventSource;
if (me && !me->init(inOwner, inAction, inProvider, inIntIndex)) {
- me->release();
+ me->free();
return 0;
}