Start to rewrite resume_init_module()

Signed-off-by: Pavel Gromov <pagrom23@gmail.com>