Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Thermal: spear: Remove redundant use of of_match_ptr

'spear_thermal_id_table' is always compiled in and the driver
is dependent on OF. Hence use of of_match_ptr is unnecessary.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Vincenzo Frascino <vincenzo.frascino@st.com>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>

authored by

Sachin Kamat and committed by
Zhang Rui
5454f211 90c3194e

+1 -1
+1 -1
drivers/thermal/spear_thermal.c
··· 198 198 .name = "spear_thermal", 199 199 .owner = THIS_MODULE, 200 200 .pm = &spear_thermal_pm_ops, 201 - .of_match_table = of_match_ptr(spear_thermal_id_table), 201 + .of_match_table = spear_thermal_id_table, 202 202 }, 203 203 }; 204 204