modularize part  of msm crypto device driver