diff options
author | David Kershner <david.kershner@unisys.com> | 2016-09-19 21:09:37 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-20 11:28:17 (GMT) |
commit | 51319662d6ac5729a1950579d70808d94e4fa8e6 (patch) | |
tree | 22fee2626d82a1b16cd3bb979eacb470fa878340 /drivers | |
parent | 7a0ee694889694c49d4ebe99dce30e699f832396 (diff) | |
download | linux-51319662d6ac5729a1950579d70808d94e4fa8e6.tar.xz |
staging: unisys: visorbus: move parahotplug_request_list and related lock
parahotplug_request_list and parahotplug_request_list_lock should be
defined closer to where we are actually using them.
Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/unisys/visorbus/visorchipset.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c index 5603bb6..39e8aca 100644 --- a/drivers/staging/unisys/visorbus/visorchipset.c +++ b/drivers/staging/unisys/visorbus/visorchipset.c @@ -177,9 +177,6 @@ struct parahotplug_request { struct controlvm_message msg; }; -static LIST_HEAD(parahotplug_request_list); -static DEFINE_SPINLOCK(parahotplug_request_list_lock); /* lock for above */ - /* info for /dev/visorchipset */ static dev_t major_dev = -1; /*< indicates major num for device */ @@ -1208,6 +1205,9 @@ parahotplug_request_destroy(struct parahotplug_request *req) kfree(req); } +static LIST_HEAD(parahotplug_request_list); +static DEFINE_SPINLOCK(parahotplug_request_list_lock); /* lock for above */ + /** * parahotplug_request_complete() - mark request as complete * @id: the id of the request |