From c8e2d7f53871b52ee0f543025ee7dbc0ec58f453 Mon Sep 17 00:00:00 2001 From: Chungwoo Park Date: Wed, 26 Apr 2017 18:04:44 +0900 Subject: [PATCH] [COMMON] thermal: not allowed manually bind/ unbind device from the driver Change-Id: Icbe8d8e48ea7e0da78007b7f153f3832fb76303b Signed-off-by: Chungwoo Park --- drivers/thermal/samsung/exynos_tmu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 479f5fbff22a..eeade32ab9b8 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -1894,6 +1894,7 @@ static int exynos_tmu_remove(struct platform_device *pdev) list_for_each_entry(devnode, &dtm_dev_list, node) { if (devnode->id == data->id) { list_del(&devnode->node); + break; } } mutex_unlock(&data->lock); @@ -1931,6 +1932,7 @@ static struct platform_driver exynos_tmu_driver = { .name = "exynos-tmu", .pm = EXYNOS_TMU_PM, .of_match_table = exynos_tmu_match, + .suppress_bind_attrs = true, }, .probe = exynos_tmu_probe, .remove = exynos_tmu_remove, -- 2.20.1