]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit414eb39ee8d0d68c7c84bc492d1ca2695e3bb334
tree2b7d9a4a0b84f7e296d99960c74736178ce0fd92
parent556565b0189d89c6b475bdfa1b7b46cf25e7c040
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