[PATCH 6.1 0378/1146] regulator: core: use kfree_const() to free space conditionally