[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110819164939.GH22761@oksana.dev.rtsoft.ru>
Date: Fri, 19 Aug 2011 20:49:39 +0400
From: Anton Vorontsov <cbouatmailru@...il.com>
To: MyungJoo Ham <myungjoo.ham@...sung.com>
Cc: Philip Rakity <prakity@...vell.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
박경민 <kyungmin.park@...sung.com>
Subject: Re: [PATCH] power: max17042: divide by 0 Crash because r_sns init
too late
On Tue, Aug 16, 2011 at 06:10:13AM +0000, MyungJoo Ham wrote:
> Philip Rakity<prakity@...vell.com> 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@...sung.com>
Applied, thanks.
--
Anton Vorontsov
Email: cbouatmailru@...il.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists