Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3136376 authored by Sachin Kamat's avatar Sachin Kamat Committed by Zhang Rui
Browse files

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: default avatarSachin Kamat <sachin.kamat@linaro.org>
Reviewed-by: default avatarHongbo Zhang <hongbo.zhang@stericsson.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent caa5cbd5
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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,