Skip to content
Snippets Groups Projects
Commit 415ef273 authored by Manohar Vanga's avatar Manohar Vanga
Browse files

simulation: move list_lock initialization to init()


Signed-off-by: default avatarManohar Vanga <manohar.vanga@cern.ch>
parent 17eafc3e
Branches
Tags
No related merge requests found
......@@ -49,8 +49,6 @@ static int fake_wbbus_probe(struct device *dev)
struct wb_device *wbdev, *next;
const struct firmware *wb_fw;
mutex_init(&list_lock);
/*
* load firmware with wishbone address map. In the real driver,
* we would first load the bitstream into the fpga and then read
......@@ -135,6 +133,8 @@ static int __init fake_wb_bus_init(void)
{
int ret;
mutex_init(&list_lock);
ret = device_register(&fake_wbbus_device);
if (ret) {
pr_err(KBUILD_MODNAME "failed to register fake"
......
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