power: pm8921-bms: fix warnings

'row1' and 'row2' might be used uninitialized in
interpolate_scalingfactor_pc.

There would be a memory leak in the probe function if battery
data is bad. Free the chip memory before returning.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
1 file changed