summaryrefslogtreecommitdiff
path: root/include/linux/i2c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2010-08-14 19:08:48 (GMT)
committerJean Delvare <khali@linux-fr.org>2010-08-14 19:08:48 (GMT)
commitb9783dcebe952bf73449fe70a19ee4814adc81a0 (patch)
tree0941a77358b59095e6d136cbd46221c1767ff748 /include/linux/i2c
parentdf149d02ea8ee49cd14c6609cc7ef980d62dce80 (diff)
downloadlinux-fsl-qoriq-b9783dcebe952bf73449fe70a19ee4814adc81a0.tar.xz
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 <khali@linux-fr.org> Cc: Jim Cromie <jim.cromie@gmail.com> Cc: stable@kernel.org
Diffstat (limited to 'include/linux/i2c')
0 files changed, 0 insertions, 0 deletions