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

Commit 80aa2312 authored by Siva Kumar Akkireddi's avatar Siva Kumar Akkireddi
Browse files

thermal: tsens: Suppress bind/unbind attributes



TSENS driver does not support manual bind/unbind operations
through sysfs. Suppress the bind/unbind nodes. Also, remove the
tsens device struct from the global list when driver remove
function is called.

Change-Id: I97d4cc739adecfb6555786d7cef6c9556f5f8eff
Signed-off-by: default avatarSiva Kumar Akkireddi <sivaa@codeaurora.org>
parent 97e676e1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -220,6 +220,10 @@ static int tsens_thermal_zone_register(struct tsens_device *tmdev)

static int tsens_tm_remove(struct platform_device *pdev)
{
	struct tsens_device *tmdev = platform_get_drvdata(pdev);

	if (tmdev)
		list_del(&tmdev->list);
	platform_set_drvdata(pdev, NULL);

	return 0;
@@ -278,6 +282,7 @@ static struct platform_driver tsens_tm_driver = {
		.name = "msm-tsens",
		.owner = THIS_MODULE,
		.of_match_table = tsens_table,
		.suppress_bind_attrs = true,
	},
};