From: Guenter Roeck Date: Wed, 7 Mar 2012 11:58:55 +0000 (-0800) Subject: hwmon: (zl6100) Maintain delay parameter in driver instance data X-Git-Tag: v3.2.10~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=139e7860c91207f954a87149a8d64eddbbd73bd8;p=pandora-kernel.git hwmon: (zl6100) Maintain delay parameter in driver instance data commit 7ad6307ad6968ce25cecf209d4822d4c722be030 upstream. A global delay parameter has the side effect of being overwritten with 0 if a single ZL2004 or ZL6105 is instantiated. If other chips supported by the same driver are in the system, this will result in access errors for those chips. To solve the problem, keep a per-instance copy of the delay parameter, and do not change the original parameter. Signed-off-by: Guenter Roeck Acked-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed