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

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

Merge "ARM: dts: msm: Add hwevent node for Kona"

parents d60df0d3 2c698fc0
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3436,4 +3436,13 @@
			};
		};
	};

	hwevent {
		compatible = "qcom,coresight-hwevent";

		coresight-name = "coresight-hwevent";
		coresight-csr = <&csr>;
		clocks = <&clock_aop QDSS_CLK>;
		clock-names = "apb_pclk";
	};
};
+4 −5
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2017, 2019, The Linux Foundation. All rights reserved.
 */

#include <linux/kernel.h>
@@ -170,8 +170,8 @@ static int hwevent_init_hmux(struct hwevent_drvdata *drvdata,
	drvdata->nr_hmux = of_property_count_strings(node,
						     "reg-names");

	if (!drvdata->nr_hmux)
		return -ENODEV;
	if (drvdata->nr_hmux < 0)
		drvdata->nr_hmux = 0;

	if (drvdata->nr_hmux > 0) {
		drvdata->hmux = devm_kzalloc(drvdata->dev, drvdata->nr_hmux *
@@ -191,9 +191,8 @@ static int hwevent_init_hmux(struct hwevent_drvdata *drvdata,
				return -ENODEV;
			drvdata->hmux[i].start = res->start;
			drvdata->hmux[i].end = res->end;

		}
	} else {
		return drvdata->nr_hmux;
	}

	return 0;