aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/mc13xxx.h
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2013-12-14 08:03:12 -0500
committerLee Jones <lee.jones@linaro.org>2014-01-21 03:28:10 -0500
commitdb9ef449aaa550389008c2020fba02e4440ce24b (patch)
treeaf101d60af6701be60d1d7659248f509b99fa222 /drivers/mfd/mc13xxx.h
parente5a3da2143962edff6c8a66dec43654c2951804f (diff)
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.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mfd/mc13xxx.h b/drivers/mfd/mc13xxx.h
index 460ec5c7b18c..ae7f1659f5d1 100644
--- a/drivers/mfd/mc13xxx.h
+++ b/drivers/mfd/mc13xxx.h
@@ -43,9 +43,7 @@ struct mc13xxx {
43 int adcflags; 43 int adcflags;
44}; 44};
45 45
46int mc13xxx_common_init(struct mc13xxx *mc13xxx, 46int mc13xxx_common_init(struct device *dev);
47 struct mc13xxx_platform_data *pdata, int irq); 47int mc13xxx_common_exit(struct device *dev);
48
49void mc13xxx_common_cleanup(struct mc13xxx *mc13xxx);
50 48
51#endif /* __DRIVERS_MFD_MC13XXX_H */ 49#endif /* __DRIVERS_MFD_MC13XXX_H */