Loading...
--- xnu/xnu-517.3.7/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
@@ -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));