treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / powerpc / include / asm / eeh_event.h
blobdadde7d52f46a8454250f8c5062546ae06ac30f8
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
4 * Copyright (c) 2005 Linas Vepstas <linas@linas.org>
5 */
7 #ifndef ASM_POWERPC_EEH_EVENT_H
8 #define ASM_POWERPC_EEH_EVENT_H
9 #ifdef __KERNEL__
12 * structure holding pci controller data that describes a
13 * change in the isolation status of a PCI slot. A pointer
14 * to this struct is passed as the data pointer in a notify
15 * callback.
17 struct eeh_event {
18 struct list_head list; /* to form event queue */
19 struct eeh_pe *pe; /* EEH PE */
22 int eeh_event_init(void);
23 int eeh_send_failure_event(struct eeh_pe *pe);
24 int __eeh_send_failure_event(struct eeh_pe *pe);
25 void eeh_remove_event(struct eeh_pe *pe, bool force);
26 void eeh_handle_normal_event(struct eeh_pe *pe);
27 void eeh_handle_special_event(void);
29 #endif /* __KERNEL__ */
30 #endif /* ASM_POWERPC_EEH_EVENT_H */