slimbus: core: add missing spin_lock_init on txn_lock
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 14 Jan 2019 13:44:49 +0000 (13:44 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 12:34:35 +0000 (13:34 +0100)
Add missing spin lock intialization this also fixes the spinlock bad magic
warning.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/slimbus/core.c

index 8ffdc9876223480073aca1c3392f979d5a911ff1..b2f07d2043eb3f56dec182f6494740e1b33766de 100644 (file)
@@ -274,6 +274,7 @@ int slim_register_controller(struct slim_controller *ctrl)
        mutex_init(&ctrl->lock);
        mutex_init(&ctrl->sched.m_reconf);
        init_completion(&ctrl->sched.pause_comp);
+       spin_lock_init(&ctrl->txn_lock);
 
        dev_dbg(ctrl->dev, "Bus [%s] registered:dev:%p\n",
                ctrl->name, ctrl->dev);