diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-12-14 08:03:12 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-01-21 03:28:10 -0500 |
commit | db9ef449aaa550389008c2020fba02e4440ce24b (patch) | |
tree | af101d60af6701be60d1d7659248f509b99fa222 /drivers/mfd/mc13xxx.h | |
parent | e5a3da2143962edff6c8a66dec43654c2951804f (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.h | 6 |
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 | ||
46 | int mc13xxx_common_init(struct mc13xxx *mc13xxx, | 46 | int mc13xxx_common_init(struct device *dev); |
47 | struct mc13xxx_platform_data *pdata, int irq); | 47 | int mc13xxx_common_exit(struct device *dev); |
48 | |||
49 | void mc13xxx_common_cleanup(struct mc13xxx *mc13xxx); | ||
50 | 48 | ||
51 | #endif /* __DRIVERS_MFD_MC13XXX_H */ | 49 | #endif /* __DRIVERS_MFD_MC13XXX_H */ |