diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-12-12 05:24:24 -0500 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2013-01-04 02:38:55 -0500 |
commit | caa5cbd5a18a72bb6f5a5211ddeade71fdb2282d (patch) | |
tree | 54f1c72b722e4128fd2b5d0300874950882ac8dd /drivers/thermal | |
parent | 03b79bda8d061d80a6106e257c072a2754141bab (diff) |
thermal: exynos: Use of_match_ptr() macro
This eliminates having an #ifdef returning NULL for the case
when OF is disabled.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/exynos_thermal.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/thermal/exynos_thermal.c b/drivers/thermal/exynos_thermal.c index e2ef8a3531ac..327102a4596a 100644 --- a/drivers/thermal/exynos_thermal.c +++ b/drivers/thermal/exynos_thermal.c | |||
@@ -808,8 +808,6 @@ static const struct of_device_id exynos_tmu_match[] = { | |||
808 | {}, | 808 | {}, |
809 | }; | 809 | }; |
810 | MODULE_DEVICE_TABLE(of, exynos_tmu_match); | 810 | MODULE_DEVICE_TABLE(of, exynos_tmu_match); |
811 | #else | ||
812 | #define exynos_tmu_match NULL | ||
813 | #endif | 811 | #endif |
814 | 812 | ||
815 | static struct platform_device_id exynos_tmu_driver_ids[] = { | 813 | static struct platform_device_id exynos_tmu_driver_ids[] = { |
@@ -1085,7 +1083,7 @@ static struct platform_driver exynos_tmu_driver = { | |||
1085 | .name = "exynos-tmu", | 1083 | .name = "exynos-tmu", |
1086 | .owner = THIS_MODULE, | 1084 | .owner = THIS_MODULE, |
1087 | .pm = EXYNOS_TMU_PM, | 1085 | .pm = EXYNOS_TMU_PM, |
1088 | .of_match_table = exynos_tmu_match, | 1086 | .of_match_table = of_match_ptr(exynos_tmu_match), |
1089 | }, | 1087 | }, |
1090 | .probe = exynos_tmu_probe, | 1088 | .probe = exynos_tmu_probe, |
1091 | .remove = __devexit_p(exynos_tmu_remove), | 1089 | .remove = __devexit_p(exynos_tmu_remove), |