]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: Set asic3 DS1WM clock_rate
authorPaul Parsons <lost.distance@yahoo.com>
Mon, 9 Apr 2012 12:18:31 +0000 (13:18 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 16 Apr 2012 16:00:18 +0000 (18:00 +0200)
commitfe6b68d80a93bd50e77e1697a6cf2c6ebd9cc73f
treec34e3abc95dbcebe896e8f32891723c985708bbb
parentc165315107208c31d0013e9f24f9188e69a28747
mfd: Set asic3 DS1WM clock_rate

The mfd/asic3 driver does not set the ds1wm_driver_data clock_rate field
before passing the structure to the DS1WM w1 busmaster driver.
This was not noticed before commit 26a6afb, because ds1wm_find_divisor()
unintentionally returned the correct divisor when a zero clock_rate was
passed in. However after that commit DS1WM fails a zero clock_rate:

ds1wm ds1wm: no suitable divisor for 0Hz clock

This patch sets the ds1wm_driver_data clock_rate field.

Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
Acked-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/asic3.c
include/linux/mfd/asic3.h