[PATCH 6.0 0365/1073] regulator: core: use kfree_const() to free space conditionally