ASoC: sh: rcar: rsrc-card: don't open code of_device_get_match_data()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 1 Mar 2016 16:39:20 +0000 (17:39 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 2 Mar 2016 11:02:48 +0000 (20:02 +0900)
commit6a16c1765120abc8f58b2c5f275c95a33bb25572
tree39360a0897c8d1cf21ced4e72ec6a2ff74ed10ae
parent6d8044b4ff305238503edca7d75f3ab7410396ba
ASoC: sh: rcar: rsrc-card: 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: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/rsrc-card.c