v1->v2:Add code to check device_get_match_data(), if it return a NULL ptr,then print an error message and return -ENODEV.