]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0a6297fb9c2c2fb9553c31714caf52cc70640ae1
treeaf101d60af6701be60d1d7659248f509b99fa222
parentcd57b740353acc7ecc11abb718785cdb54df5c97
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