Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a64a54f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "coresight: tpdm: unregister tpdm when enable clk fails"

parents 0107813a cce7926a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -4377,9 +4377,10 @@ static int tpdm_probe(struct amba_device *adev, const struct amba_id *id)
		return PTR_ERR(drvdata->csdev);

	ret = coresight_enable_reg_clk(drvdata->csdev);
	if (ret)
	if (ret) {
		coresight_unregister(drvdata->csdev);
		return ret;

	}
	version = tpdm_readl(drvdata, CORESIGHT_PERIPHIDR2);
	drvdata->version = BMVAL(version, 4, 7);