[PATCH linux dev-4.13 02/16] hwmon (p9_sbe): Initialise device spin lock
Andrew Jeffery
andrew at aj.id.au
Tue Feb 20 15:18:30 AEDT 2018
Signed-off-by: Andrew Jeffery <andrew at aj.id.au>
---
drivers/hwmon/occ/p9_sbe.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/hwmon/occ/p9_sbe.c b/drivers/hwmon/occ/p9_sbe.c
index 7dbe4d5bcd61..cda29f47f8ff 100644
--- a/drivers/hwmon/occ/p9_sbe.c
+++ b/drivers/hwmon/occ/p9_sbe.c
@@ -116,6 +116,7 @@ static int p9_sbe_occ_probe(struct platform_device *pdev)
if (!p9_sbe_occ)
return -ENOMEM;
+ spin_lock_init(&p9_sbe_occ->lock);
p9_sbe_occ->sbe = pdev->dev.parent;
occ = &p9_sbe_occ->occ;
occ->bus_dev = &pdev->dev;
--
2.14.1
More information about the openbmc
mailing list