Skip to content

Commit d4d98bb

Browse files
sumanannaandersson
authored andcommitted
hwspinlock/omap: Add a trace during probe
Add a debug level trace statement in the OMAP HwSpinlock driver probe function to print the number of hwlocks on a successful registration. Signed-off-by: Suman Anna <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 6fa154e commit d4d98bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/hwspinlock/omap_hwspinlock.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ static int omap_hwspinlock_probe(struct platform_device *pdev)
140140
if (ret)
141141
goto reg_fail;
142142

143+
dev_dbg(&pdev->dev, "Registered %d locks with HwSpinlock core\n",
144+
num_locks);
145+
143146
return 0;
144147

145148
reg_fail:

0 commit comments

Comments
 (0)