> diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c > index b80c768..55dce43 100644 > --- a/drivers/i2c/busses/i2c-mpc.c > +++ b/drivers/i2c/busses/i2c-mpc.c > @@ -106,7 +106,12 @@ static irqreturn_t mpc_i2c_isr(int irq, void *dev_id) > static void mpc_i2c_fixup(struct mpc_i2c *i2c) > { > int k; > - u32 delay_val = 1000000 / i2c->real_clk + 1; > + u32 delay_val; > +#ifdef CONFIG_PPC_85xx > + delay_val = 65536 / (fsl_get_sys_freq() / 2000000); /* 64K cycle */ > +#else > + delay_val = 1000000 / i2c->real_clk + 1; > +#endif
Please, no unnecessary #ifdefs in code. We have 'struct mpc_i2c_data' already.
signature.asc
Description: Digital signature