Commit 8f1947ac authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: fix CamelCase semaphore NotifierLock

Rename the semaphore
NotifierLock => notifier_lock

Update all references to use the new name.
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent da021f02
...@@ -67,7 +67,7 @@ static u8 chipset_events[MAX_CHIPSET_EVENTS] = { 0, 0 }; ...@@ -67,7 +67,7 @@ static u8 chipset_events[MAX_CHIPSET_EVENTS] = { 0, 0 };
static struct delayed_work periodic_controlvm_work; static struct delayed_work periodic_controlvm_work;
static struct workqueue_struct *periodic_controlvm_workqueue; static struct workqueue_struct *periodic_controlvm_workqueue;
static DEFINE_SEMAPHORE(NotifierLock); static DEFINE_SEMAPHORE(notifier_lock);
static struct controlvm_message_header g_diag_msg_hdr; static struct controlvm_message_header g_diag_msg_hdr;
static struct controlvm_message_header g_chipset_msg_hdr; static struct controlvm_message_header g_chipset_msg_hdr;
...@@ -587,7 +587,7 @@ visorchipset_register_busdev_server( ...@@ -587,7 +587,7 @@ visorchipset_register_busdev_server(
struct visorchipset_busdev_responders *responders, struct visorchipset_busdev_responders *responders,
struct ultra_vbus_deviceinfo *driver_info) struct ultra_vbus_deviceinfo *driver_info)
{ {
down(&NotifierLock); down(&notifier_lock);
if (notifiers == NULL) { if (notifiers == NULL) {
memset(&BusDev_Server_Notifiers, 0, memset(&BusDev_Server_Notifiers, 0,
sizeof(BusDev_Server_Notifiers)); sizeof(BusDev_Server_Notifiers));
...@@ -602,7 +602,7 @@ visorchipset_register_busdev_server( ...@@ -602,7 +602,7 @@ visorchipset_register_busdev_server(
bus_device_info_init(driver_info, "chipset", "visorchipset", bus_device_info_init(driver_info, "chipset", "visorchipset",
VERSION, NULL); VERSION, NULL);
up(&NotifierLock); up(&notifier_lock);
} }
EXPORT_SYMBOL_GPL(visorchipset_register_busdev_server); EXPORT_SYMBOL_GPL(visorchipset_register_busdev_server);
...@@ -612,7 +612,7 @@ visorchipset_register_busdev_client( ...@@ -612,7 +612,7 @@ visorchipset_register_busdev_client(
struct visorchipset_busdev_responders *responders, struct visorchipset_busdev_responders *responders,
struct ultra_vbus_deviceinfo *driver_info) struct ultra_vbus_deviceinfo *driver_info)
{ {
down(&NotifierLock); down(&notifier_lock);
if (notifiers == NULL) { if (notifiers == NULL) {
memset(&BusDev_Client_Notifiers, 0, memset(&BusDev_Client_Notifiers, 0,
sizeof(BusDev_Client_Notifiers)); sizeof(BusDev_Client_Notifiers));
...@@ -626,7 +626,7 @@ visorchipset_register_busdev_client( ...@@ -626,7 +626,7 @@ visorchipset_register_busdev_client(
if (driver_info) if (driver_info)
bus_device_info_init(driver_info, "chipset(bolts)", bus_device_info_init(driver_info, "chipset(bolts)",
"visorchipset", VERSION, NULL); "visorchipset", VERSION, NULL);
up(&NotifierLock); up(&notifier_lock);
} }
EXPORT_SYMBOL_GPL(visorchipset_register_busdev_client); EXPORT_SYMBOL_GPL(visorchipset_register_busdev_client);
...@@ -915,7 +915,7 @@ bus_epilog(u32 busNo, ...@@ -915,7 +915,7 @@ bus_epilog(u32 busNo,
} else } else
pBusInfo->pending_msg_hdr.id = CONTROLVM_INVALID; pBusInfo->pending_msg_hdr.id = CONTROLVM_INVALID;
down(&NotifierLock); down(&notifier_lock);
if (response == CONTROLVM_RESP_SUCCESS) { if (response == CONTROLVM_RESP_SUCCESS) {
switch (cmd) { switch (cmd) {
case CONTROLVM_BUS_CREATE: case CONTROLVM_BUS_CREATE:
...@@ -960,7 +960,7 @@ bus_epilog(u32 busNo, ...@@ -960,7 +960,7 @@ bus_epilog(u32 busNo,
; ;
else else
bus_responder(cmd, busNo, response); bus_responder(cmd, busNo, response);
up(&NotifierLock); up(&notifier_lock);
} }
static void static void
...@@ -991,7 +991,7 @@ device_epilog(u32 busNo, u32 devNo, struct spar_segment_state state, u32 cmd, ...@@ -991,7 +991,7 @@ device_epilog(u32 busNo, u32 devNo, struct spar_segment_state state, u32 cmd,
} else } else
pDevInfo->pending_msg_hdr.id = CONTROLVM_INVALID; pDevInfo->pending_msg_hdr.id = CONTROLVM_INVALID;
down(&NotifierLock); down(&notifier_lock);
if (response >= 0) { if (response >= 0) {
switch (cmd) { switch (cmd) {
case CONTROLVM_DEVICE_CREATE: case CONTROLVM_DEVICE_CREATE:
...@@ -1056,7 +1056,7 @@ device_epilog(u32 busNo, u32 devNo, struct spar_segment_state state, u32 cmd, ...@@ -1056,7 +1056,7 @@ device_epilog(u32 busNo, u32 devNo, struct spar_segment_state state, u32 cmd,
; ;
else else
device_responder(cmd, busNo, devNo, response); device_responder(cmd, busNo, devNo, response);
up(&NotifierLock); up(&notifier_lock);
} }
static void static void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment