> dev_get_regmap() return NULL and never return ERR_PTR(). call can return a null pointer. It will not return error pointers. > check NULL to fix it. Thus apply a null pointer check instead. Regards, Markus