Jean Delvare b9783dcebe 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
2010-08-14 21:08:48 +02:00
..
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:27 +01:00
2010-01-25 15:00:49 +01:00
2009-12-14 21:17:26 +01:00
2010-05-27 19:59:01 +02:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:26 +01:00
2010-07-09 16:22:48 +02:00
2010-08-05 13:26:19 +01:00
2010-05-25 08:07:07 -07:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2009-09-15 17:18:13 +02:00
2009-12-14 21:17:26 +01:00
2009-12-09 20:35:45 +01:00
2010-01-10 20:52:35 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:27 +01:00
2010-01-10 20:52:35 +01:00
2009-09-15 17:18:13 +02:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2009-12-15 08:53:35 -08:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00