From: Jean Delvare Date: Sat, 14 Aug 2010 19:08:48 +0000 (+0200) Subject: hwmon: (pc87360) Fix device resource declaration X-Git-Tag: v2.6.36-rc1~14^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9783dcebe952bf73449fe70a19ee4814adc81a0;p=pandora-kernel.git hwmon: (pc87360) Fix device resource declaration It's not OK to call platform_device_add_resources() multiple times in a row. Despite its name, this functions sets the resources, it doesn't add them. So we have to prepare an array with all the resources, and then call platform_device_add_resources() once. Before this fix, only the last I/O resource would be actually registered. The other I/O resources were leaked. Signed-off-by: Jean Delvare Cc: Jim Cromie Cc: stable@kernel.org --- Reading git-diff-tree failed