I think I sent an email previously regarding this to you, but I forgot to attach the patch that fixes the memory errors in 3.1-rc1 that prevent compiling. In the link below, there should be a zip folder, apply the first 2 patches (0002 and 0003) in it to 3.1-rc1 sources. The other 2 patches are ones from early on between 3.0 and 3.1 that cause the issue. I think the issue is within the mikep7 patch as the SDHC mainline driver seems correct.
3.1-rc1 Patch Download Link: http://ubuntuone.com/7Krd3vfULuRP3RROo5gTOp
3.1-rc1 Patch Download Link: http://ubuntuone.com/7Krd3vfULuRP3RROo5gTOp