[PATCH 4.18 146/228] regulator: fix crash caused by null driver data