thermal: rcar_thermal: don't open code of_device_get_match_data()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 1 Mar 2016 16:38:31 +0000 (17:38 +0100)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 8 Mar 2016 19:53:12 +0000 (11:53 -0800)
commit67bc3f4226c1d29ee820eff98fcaf8a9283938fe
tree2b7d9a4a0b84f7e296d99960c74736178ce0fd92
parent527860fe4684bf69281d7479c5034243dd6c36c4
thermal: rcar_thermal: don't open code of_device_get_match_data()

This change will also make Coverity happy by avoiding a theoretical NULL
pointer dereference; yet another reason is to use the above helper function
to tighten the code and make it more readable.

Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/rcar_thermal.c