mfd: mc13xxx: Simplify probe() & remove()
authorAlexander Shiyan <shc_work@mail.ru>
Sat, 14 Dec 2013 13:03:12 +0000 (17:03 +0400)
committerLee Jones <lee.jones@linaro.org>
Tue, 21 Jan 2014 08:28:10 +0000 (08:28 +0000)
commitdb9ef449aaa550389008c2020fba02e4440ce24b
treeaf101d60af6701be60d1d7659248f509b99fa222
parente5a3da2143962edff6c8a66dec43654c2951804f
mfd: mc13xxx: Simplify probe() & remove()

This patch simplifies probe() and remove() functions by moving
some initialisation code out from the I2C/SPI init() and exit()
functions and into the core driver.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/mc13xxx-core.c
drivers/mfd/mc13xxx-i2c.c
drivers/mfd/mc13xxx-spi.c
drivers/mfd/mc13xxx.h