[COMMON] thermal: not allowed manually bind/ unbind device from the driver
authorChungwoo Park <cww.park2@samsung.com>
Wed, 26 Apr 2017 09:04:44 +0000 (18:04 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:18:45 +0000 (17:18 +0900)
Change-Id: Icbe8d8e48ea7e0da78007b7f153f3832fb76303b
Signed-off-by: Chungwoo Park <cww.park2@samsung.com>
drivers/thermal/samsung/exynos_tmu.c

index 479f5fbff22a5f72a2e2d7d62272d2329c0e326f..eeade32ab9b8f1a9e0aa1f4268bbdd4806a00c5c 100644 (file)
@@ -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,