From: Chungwoo Park Date: Wed, 26 Apr 2017 09:04:44 +0000 (+0900) Subject: [COMMON] thermal: not allowed manually bind/ unbind device from the driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c8e2d7f53871b52ee0f543025ee7dbc0ec58f453;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] thermal: not allowed manually bind/ unbind device from the driver Change-Id: Icbe8d8e48ea7e0da78007b7f153f3832fb76303b Signed-off-by: Chungwoo Park --- 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,