From: Srinivas Kandagatla Date: Mon, 14 Jan 2019 13:44:49 +0000 (+0000) Subject: slimbus: core: add missing spin_lock_init on txn_lock X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8147760d86e4c8938dfc44ef199837bbbb02f2f3;p=openwrt%2Fstaging%2Fblogic.git slimbus: core: add missing spin_lock_init on txn_lock Add missing spin lock intialization this also fixes the spinlock bad magic warning. Signed-off-by: Srinivas Kandagatla Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/slimbus/core.c b/drivers/slimbus/core.c index 8ffdc9876223..b2f07d2043eb 100644 --- a/drivers/slimbus/core.c +++ b/drivers/slimbus/core.c @@ -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);