power_spi.c: Rewrite pmic_reg function
authorTom Rini <trini@ti.com>
Sat, 25 Oct 2014 11:38:31 +0000 (07:38 -0400)
committerTom Rini <trini@ti.com>
Fri, 7 Nov 2014 21:27:05 +0000 (16:27 -0500)
commit5b471dee99a9dab381110060054e6b52e87f210a
treeb1be708f353b253883b70286f80fa760f79d31f7
parentc6150aaf2f2745141a7c2ceded58d7efbfeace7d
power_spi.c: Rewrite pmic_reg function

The pmic_spi_free function isn't ever used, and as the frameworks stand
today, cannot be, so remove it.  Integrate the probe function into
pmic_reg as it's not really a "probe" today.  Finally, add an err label
for the common failure cases.

Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Stefano Babic <sbabic@denx.de>
Signed-off-by: Tom Rini <trini@ti.com>
Acked-by: Stefano Babic <sbabic@denx.de>
drivers/power/power_spi.c