workqueue: Make worker_attach/detach_pool() update worker->pool
[linux/fpc-iii.git] / drivers / misc / ocxl / main.c
blob7210d9e059beed46ccd73630d7568ca4e06a7b74
1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright 2017 IBM Corp.
3 #include <linux/module.h>
4 #include <linux/pci.h>
5 #include "ocxl_internal.h"
7 static int __init init_ocxl(void)
9 int rc = 0;
11 rc = ocxl_file_init();
12 if (rc)
13 return rc;
15 rc = pci_register_driver(&ocxl_pci_driver);
16 if (rc) {
17 ocxl_file_exit();
18 return rc;
20 return 0;
23 static void exit_ocxl(void)
25 pci_unregister_driver(&ocxl_pci_driver);
26 ocxl_file_exit();
29 module_init(init_ocxl);
30 module_exit(exit_ocxl);
32 MODULE_DESCRIPTION("Open Coherent Accelerator");
33 MODULE_LICENSE("GPL");