Remove unneded mc13xxx_get_revision function
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
8aabd88416
commit
f2215e9241
|
@ -173,7 +173,7 @@ static void babbage_power_init(void)
|
|||
mc13xxx_reg_write(mc13xxx, MC13892_REG_SW_2, val);
|
||||
}
|
||||
|
||||
if (mc13xxx_get_revision(mc13xxx) < MC13892_REVISION_2_0) {
|
||||
if (mc13xxx->revision < MC13892_REVISION_2_0) {
|
||||
/* Set switchers in PWM mode for Atlas 2.0 and lower */
|
||||
/* Setup the switcher mode for SW1 & SW2*/
|
||||
mc13xxx_reg_read(mc13xxx, MC13892_REG_SW_4, &val);
|
||||
|
|
|
@ -109,9 +109,4 @@ extern int mc13xxx_reg_read(struct mc13xxx *mc13xxx, u8 reg, u32 *val);
|
|||
extern int mc13xxx_reg_write(struct mc13xxx *mc13xxx, u8 reg, u32 val);
|
||||
extern int mc13xxx_set_bits(struct mc13xxx *mc13xxx, u8 reg, u32 mask, u32 val);
|
||||
|
||||
static inline int mc13xxx_get_revision(struct mc13xxx *mc13xxx)
|
||||
{
|
||||
return mc13xxx->revision;
|
||||
}
|
||||
|
||||
#endif /* __MFD_MC13XXX_H */
|
||||
|
|
Loading…
Reference in New Issue