dmaengine: sh: shdmac: don't open code of_device_get_match_data()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 1 Mar 2016 16:37:07 +0000 (17:37 +0100)
committerVinod Koul <vinod.koul@intel.com>
Thu, 3 Mar 2016 16:02:45 +0000 (21:32 +0530)
commit6fb5629987239c6a8438fab8fd324b7724e49453
tree67930f43533b87a465c9c44e854e40184b7532e1
parent5c229d00a58df469550dbc1f4e3a360eb8958661
dmaengine: sh: shdmac: 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: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/shdmac.c