]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mmc: sh_mobile_sdhi: improve prerequisite for hw_reset
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 12 Dec 2016 19:51:21 +0000 (20:51 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:19:49 +0000 (13:19 +0100)
commit6ade9a2c2da855ff38e74c4298976400feca968e
tree2139d78521571d2bb03a51a414b95c3ed2b19388
parentdc9f1a8d790ee766c47eca163261225680691e64
mmc: sh_mobile_sdhi: improve prerequisite for hw_reset

We need a SCC unit for hw_reset. Those units can only be described in
of_data. So, of_data and a valid SCC offset are prerequisites for
enabling the hw_reset capability. Merge the two 'if' conditions into one
and add a check for an scc offset.

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