]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: sunxi: Use devm_reset_control_get_optional() for reset control
authorChen-Yu Tsai <wens@csie.org>
Tue, 3 Mar 2015 01:44:40 +0000 (09:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:03:43 +0000 (22:03 +0200)
commit85895968a9444e810f96cc951c6b5fc7dd183296
treee9a3826c21e8fe4a6152fa37e1a926db570f9415
parent7df0c5a403d2e9a1698a6ebdcf6e37a0639aad85
mmc: sunxi: Use devm_reset_control_get_optional() for reset control

commit 9e71c589e44ddf2b86f361c81e360c6b0d0354b1 upstream.

The reset control for the sunxi mmc controller is optional. Some
newer platforms (sun6i, sun8i, sun9i) have it, while older ones
(sun4i, sun5i, sun7i) don't.

Use the properly stubbed _optional version so the driver does not
fail to compile when RESET_CONTROLLER=n.

This patch also adds a check for deferred probing on the reset
control.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: David Lanzendörfer <david.lanzendoerfer@o2s.ch>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sunxi-mmc.c