[PATCH 1/3] reg: Allow the 'reg_data' pointer to be NULL