cpufreq: ppc-corenet-cpu-freq: do_div use quotient
authorEd Swarthout <Ed.Swarthout@freescale.com>
Thu, 5 Jun 2014 23:56:17 +0000 (18:56 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 6 Jun 2014 20:50:43 +0000 (22:50 +0200)
commit906fe033145aab7d65a428bfda2cf19c75720894
tree125ced3640d52f61faa26f07f31df6e0b66e4863
parent57aa5ea0eea267f90be5e69def4e877ce2c81677
cpufreq: ppc-corenet-cpu-freq: do_div use quotient

Commit 6712d2931933 (cpufreq: ppc-corenet-cpufreq: Fix __udivdi3 modpost
error) used the remainder from do_div instead of the quotient.  Fix that
and add one to ensure minimum is met.

Fixes: 6712d2931933 (cpufreq: ppc-corenet-cpufreq: Fix __udivdi3 modpost error)
Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Cc: 3.15+ <stable@vger.kernel.org> # 3.15+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/ppc-corenet-cpufreq.c