misc/regulator: fix compiling problems

Change-Id: Ie51163759e94a7f0248125dfad1542d06706889e
Signed-off-by: Alberto96 <albertoguanti@gmail.com>