Re: [PATCH] power: max17042: divide by 0 Crash because r_sns inittoo late

From: Anton Vorontsov
Date: Fri Aug 19 2011 - 12:49:49 EST


On Tue, Aug 16, 2011 at 06:10:13AM +0000, MyungJoo Ham wrote:
> Philip Rakity<prakity@xxxxxxxxxxx> Date : 2011-08-13 13:18 (GMT+09:00)
> > On MMP2 brownstone divide by 0 error since probe sets r_sns
> > after calling power_supply_register.
> >
> > Move the code up a few lines. r_sns comes from the platform
> > data.
> >
> > PROP_CURRENT_AVG and PROP_CURRENT divide the result by r_sns.
> >
> > Signed-off-by: Philip Rakity
>
> Acked-by: MyungJoo Ham <myungjoo.ham@xxxxxxxxxxx>

Applied, thanks.

--
Anton Vorontsov
Email: cbouatmailru@xxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/