]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhi: do not install dummy callbacks
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 20 Jun 2012 17:10:34 +0000 (19:10 +0200)
committerChris Ball <cjb@laptop.org>
Sat, 21 Jul 2012 04:02:11 +0000 (00:02 -0400)
commite8dc3295b1d57c9e819adb0ee72db9ce1e4760b0
tree5c6ce3cc09ae36c3f5f8e33c6de75ea8673ad009
parent3941cb7453f50cf6869ec0b2e21fbb52ccc2e8bc
mmc: sdhi: do not install dummy callbacks

Currently the SDHI glue for the TMIO MMC driver installs dummy .get_cd() and
.set_pwr() callbacks even if the platform didn't supply them. This is not
necessary, since the TMIO MMC driver itself checks for NULL callbacks. This
is also dubious if the platform provides a regulator for SD-card power
switching. It is better to only install those callbacks, if they are really
provided by the platform.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mobile_sdhi.c