Merged sdcard code, thanks to RovG from http://wiki.cyanogenmod.org/w/EMMC_Bugs#MAG2GA_TRIM_bug