diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-12-14 17:03:12 +0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-01-21 08:28:10 +0000 |
commit | db9ef449aaa550389008c2020fba02e4440ce24b (patch) | |
tree | af101d60af6701be60d1d7659248f509b99fa222 /drivers/mfd/mc13xxx.h | |
parent | e5a3da2143962edff6c8a66dec43654c2951804f (diff) | |
download | op-kernel-dev-db9ef449aaa550389008c2020fba02e4440ce24b.zip op-kernel-dev-db9ef449aaa550389008c2020fba02e4440ce24b.tar.gz |
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>
Diffstat (limited to 'drivers/mfd/mc13xxx.h')
-rw-r--r-- | drivers/mfd/mc13xxx.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mfd/mc13xxx.h b/drivers/mfd/mc13xxx.h index 460ec5c..ae7f165 100644 --- a/drivers/mfd/mc13xxx.h +++ b/drivers/mfd/mc13xxx.h @@ -43,9 +43,7 @@ struct mc13xxx { int adcflags; }; -int mc13xxx_common_init(struct mc13xxx *mc13xxx, - struct mc13xxx_platform_data *pdata, int irq); - -void mc13xxx_common_cleanup(struct mc13xxx *mc13xxx); +int mc13xxx_common_init(struct device *dev); +int mc13xxx_common_exit(struct device *dev); #endif /* __DRIVERS_MFD_MC13XXX_H */ |