mtd: nand: sh_flctl: Use of_device_get_match_data() helper

Use the of_device_get_match_data() helper instead of open coding.
While at it, make config const so the cast can be dropped.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
This commit is contained in:
Geert Uytterhoeven 2017-10-04 14:19:03 +02:00 • committed by Boris Brezillon
commit b8640c5b8b