mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 23:23:55 +08:00
fm10k: don't initialize fm10k_workqueue at global level
Cleans up checkpatch GLOBAL_INITIALIZERS error Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
076ef44070
commit
07146e2ea8
@ -42,7 +42,7 @@ MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
|
||||
/* single workqueue for entire fm10k driver */
|
||||
struct workqueue_struct *fm10k_workqueue = NULL;
|
||||
struct workqueue_struct *fm10k_workqueue;
|
||||
|
||||
/**
|
||||
* fm10k_init_module - Driver Registration Routine
|
||||
@ -56,8 +56,7 @@ static int __init fm10k_init_module(void)
|
||||
pr_info("%s\n", fm10k_copyright);
|
||||
|
||||
/* create driver workqueue */
|
||||
if (!fm10k_workqueue)
|
||||
fm10k_workqueue = create_workqueue("fm10k");
|
||||
fm10k_workqueue = create_workqueue("fm10k");
|
||||
|
||||
fm10k_dbg_init();
|
||||
|
||||
@ -80,7 +79,6 @@ static void __exit fm10k_exit_module(void)
|
||||
/* destroy driver workqueue */
|
||||
flush_workqueue(fm10k_workqueue);
|
||||
destroy_workqueue(fm10k_workqueue);
|
||||
fm10k_workqueue = NULL;
|
||||
}
|
||||
module_exit(fm10k_exit_module);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user