pinctrl: sh-pfc: core: don't open code of_device_get_match_data()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 1 Mar 2016 16:38:46 +0000 (17:38 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 9 Mar 2016 03:46:50 +0000 (10:46 +0700)
commit331207af11964954f51ec44689b93977ac0c6843
tree3ca439940f60ec303e40ba07f4c566aa33564013
parent1233a1fbb0e0efab91458bfdf744dcef6bf0f615
pinctrl: sh-pfc: core: 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.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sh-pfc/core.c