From: Sachin Kamat Date: Wed, 19 Dec 2012 08:50:58 +0000 (+0530) Subject: thermal: db8500: Use of_match_ptr() macro in db8500_thermal.c X-Git-Tag: v3.9-rc1~38^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c313637641c3e33388903e16cfde97b2e67adb9e;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Reviewed-by: Hongbo Zhang Signed-off-by: Zhang Rui --- diff --git a/drivers/thermal/db8500_thermal.c b/drivers/thermal/db8500_thermal.c index ec71ade..61ce60a 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[] = { { .compatible = "stericsson,db8500-thermal" }, {}, }; -#else -#define db8500_thermal_match NULL #endif static struct platform_driver db8500_thermal_driver = { .driver = { .owner = THIS_MODULE, .name = "db8500-thermal", - .of_match_table = db8500_thermal_match, + .of_match_table = of_match_ptr(db8500_thermal_match), }, .probe = db8500_thermal_probe, .suspend = db8500_thermal_suspend,