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

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

Merge "coresight: tpdm: fix tpdm probe fail issue"

parents 6f8824e9 190e0783
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2014-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2020, The Linux Foundation. All rights reserved.
 */

#include <linux/kernel.h>
@@ -4333,8 +4333,10 @@ static int tpdm_probe(struct amba_device *adev, const struct amba_id *id)
	u32 scm_ret = 0;

	pdata = of_get_coresight_platform_data(dev, adev->dev.of_node);
	if (IS_ERR(pdata))
		return PTR_ERR(pdata);
	if (IS_ERR(pdata)) {
		dev_dbg(dev, "failed to get pdata, defer probe\n");
		return -EPROBE_DEFER;
	}
	adev->dev.platform_data = pdata;

	if (of_property_read_bool(adev->dev.of_node, "qcom,hw-enable-check")) {