aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing/coresight/coresight-etb10.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwtracing/coresight/coresight-etb10.c')
-rw-r--r--drivers/hwtracing/coresight/coresight-etb10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/coresight/coresight-etb10.c b/drivers/hwtracing/coresight/coresight-etb10.c
index 46eb9f88a29f..2a77d83130e6 100644
--- a/drivers/hwtracing/coresight/coresight-etb10.c
+++ b/drivers/hwtracing/coresight/coresight-etb10.c
@@ -457,7 +457,7 @@ static int etb_probe(struct amba_device *adev, const struct amba_id *id)
457 drvdata->buffer_depth = etb_get_buffer_depth(drvdata); 457 drvdata->buffer_depth = etb_get_buffer_depth(drvdata);
458 clk_disable_unprepare(drvdata->clk); 458 clk_disable_unprepare(drvdata->clk);
459 459
460 if (drvdata->buffer_depth < 0) 460 if (drvdata->buffer_depth & 0x80000000)
461 return -EINVAL; 461 return -EINVAL;
462 462
463 drvdata->buf = devm_kzalloc(dev, 463 drvdata->buf = devm_kzalloc(dev,