diff options
| author | Gustavo Sousa <gustavo.sousa@intel.com> | 2023-05-11 22:48:22 +0300 |
|---|---|---|
| committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 02:33:51 +0300 |
| commit | 9afd4b2d2a8df9023849ddd25d5e064b6555ee34 (patch) | |
| tree | 4b80ab3af99b7ae0ab4d63fd71756a74b2d59806 /include/linux/start_kernel.h | |
| parent | a029aecaa42018a9ebc90fbf6e2920acfc4c6b3f (diff) | |
| download | linux-9afd4b2d2a8df9023849ddd25d5e064b6555ee34.tar.xz | |
drm/xe: Call exit functions when xe_register_pci_driver() fails
Move xe_register_pci_driver() and xe_unregister_pci_driver() to
init_funcs to make sure that exit functions are also called when
xe_register_pci_driver() fails.
Note that this also allows adding init functions to be run after
xe_register_pci_driver().
v2:
- Move functions to init_funcs instead of having a special case for
xe_register_pci_driver(). (Jani)
Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Matt Atwood <matthew.s.atwood@intel.com>
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'include/linux/start_kernel.h')
0 files changed, 0 insertions, 0 deletions
