aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-12-19 03:50:58 -0500
committerZhang Rui <rui.zhang@intel.com>2013-01-04 02:39:32 -0500
commitc313637641c3e33388903e16cfde97b2e67adb9e (patch)
treea6ab318ea221ccf9f4035d0c721118a1ed5b0c62
parentcaa5cbd5a18a72bb6f5a5211ddeade71fdb2282d (diff)
thermal: db8500: Use of_match_ptr() macro in db8500_thermal.c
This eliminates having an #ifdef returning NULL for the case when OF is disabled. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Reviewed-by: Hongbo Zhang <hongbo.zhang@stericsson.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-rw-r--r--drivers/thermal/db8500_thermal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/thermal/db8500_thermal.c b/drivers/thermal/db8500_thermal.c
index ec71ade3e317..61ce60a35921 100644
--- a/drivers/thermal/db8500_thermal.c
+++ b/drivers/thermal/db8500_thermal.c
@@ -508,15 +508,13 @@ static const struct of_device_id db8500_thermal_match[] = {
508 { .compatible = "stericsson,db8500-thermal" }, 508 { .compatible = "stericsson,db8500-thermal" },
509 {}, 509 {},
510}; 510};
511#else
512#define db8500_thermal_match NULL
513#endif 511#endif
514 512
515static struct platform_driver db8500_thermal_driver = { 513static struct platform_driver db8500_thermal_driver = {
516 .driver = { 514 .driver = {
517 .owner = THIS_MODULE, 515 .owner = THIS_MODULE,
518 .name = "db8500-thermal", 516 .name = "db8500-thermal",
519 .of_match_table = db8500_thermal_match, 517 .of_match_table = of_match_ptr(db8500_thermal_match),
520 }, 518 },
521 .probe = db8500_thermal_probe, 519 .probe = db8500_thermal_probe,
522 .suspend = db8500_thermal_suspend, 520 .suspend = db8500_thermal_suspend,