mmc: sh_mobile_sdhi: simplify accessing DT data
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 12 Dec 2016 19:51:20 +0000 (20:51 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:19:48 +0000 (13:19 +0100)
commitdc9f1a8d790ee766c47eca163261225680691e64
tree1e9f48e53e9be16a7539fdc0a51bd196d9dab058
parentc51ff6c6180e76a1ba96aef799a9c41aa80fcc95
mmc: sh_mobile_sdhi: simplify accessing DT data

By using the helper of_device_get_match_data(), we can skip some
checking and make the code simpler.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sh_mobile_sdhi.c