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>
(cherry picked from commit b8640c5b8bef7e24fe54d2713f4c91b563a65c55)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
1 file changed