From: Suman Anna Date: Fri, 31 May 2019 02:13:21 +0000 (-0500) Subject: hwspinlock/omap: Add a trace during probe X-Git-Tag: v5.3-rc1~54^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d4d98bba3ea58e80b9f500cbd98b38b98e8167f2;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Bjorn Andersson --- diff --git a/drivers/hwspinlock/omap_hwspinlock.c b/drivers/hwspinlock/omap_hwspinlock.c index a4d7a7bc863ad..14e1a532ebb56 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: