|
@@ -457,7 +457,7 @@ static int etb_probe(struct amba_device *adev, const struct amba_id *id)
|
|
drvdata->buffer_depth = etb_get_buffer_depth(drvdata);
|
|
drvdata->buffer_depth = etb_get_buffer_depth(drvdata);
|
|
clk_disable_unprepare(drvdata->clk);
|
|
clk_disable_unprepare(drvdata->clk);
|
|
|
|
|
|
- if (drvdata->buffer_depth < 0)
|
|
|
|
|
|
+ if (drvdata->buffer_depth & 0x80000000)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
drvdata->buf = devm_kzalloc(dev,
|
|
drvdata->buf = devm_kzalloc(dev,
|