Loading...
--- xnu/xnu-344.49/iokit/Kernel/IOInterruptEventSource.cpp
+++ xnu/xnu-792.6.56/iokit/Kernel/IOInterruptEventSource.cpp
@@ -2,8 +2,6 @@
* Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
- *
- * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
@@ -75,9 +73,9 @@
OSMetaClassDefineReservedUnused(IOInterruptEventSource, 7);
bool IOInterruptEventSource::init(OSObject *inOwner,
- Action inAction = 0,
- IOService *inProvider = 0,
- int inIntIndex = 0)
+ Action inAction,
+ IOService *inProvider,
+ int inIntIndex)
{
bool res = true;
@@ -100,12 +98,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));
@@ -126,7 +124,7 @@
IOInterruptEventSource *me = new IOInterruptEventSource;
if (me && !me->init(inOwner, inAction, inProvider, inIntIndex)) {
- me->free();
+ me->release();
return 0;
}