diff options
author | Suman Anna <s-anna@ti.com> | 2019-05-31 05:13:21 +0300 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2019-06-29 21:40:06 +0300 |
commit | d4d98bba3ea58e80b9f500cbd98b38b98e8167f2 (patch) | |
tree | cb4a14a9a436654844e726e7a8a5b5b38d06c623 /drivers/hwspinlock/omap_hwspinlock.c | |
parent | 6fa154e282f9c86ff3e2f8df478f1df92881a6e2 (diff) | |
download | linux-d4d98bba3ea58e80b9f500cbd98b38b98e8167f2.tar.xz |
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 <s-anna@ti.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/hwspinlock/omap_hwspinlock.c')
-rw-r--r-- | drivers/hwspinlock/omap_hwspinlock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hwspinlock/omap_hwspinlock.c b/drivers/hwspinlock/omap_hwspinlock.c index a4d7a7bc863a..14e1a532ebb5 100644 --- a/drivers/hwspinlock/omap_hwspinlock.c +++ b/drivers/hwspinlock/omap_hwspinlock.c @@ -140,6 +140,9 @@ static int omap_hwspinlock_probe(struct platform_device *pdev) if (ret) goto reg_fail; + dev_dbg(&pdev->dev, "Registered %d locks with HwSpinlock core\n", + num_locks); + return 0; reg_fail: |