Hi Qiuxu.
Thank you for your help and guidance. Here is the updated patch set to fix
segmentation fault and to add polling support.
Patch 1: Avoid segmentation fault during rmmod
Patch 2: Initialize edac_op_state according to the configuration data
Patch 3: Add polling support
Please let me know if you would like me to change or improve anything.