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
..
2010-08-06 09:25:50 -06:00
2009-09-15 17:18:13 +02:00
2009-09-15 17:18:13 +02:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09: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
2010-05-27 19:58:46 +02:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:26 +01:00
2010-05-25 08:07:07 -07:00
2010-06-03 11:33:58 +02:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2009-12-14 21:17:27 +01:00
2010-01-25 15:00:49 +01:00
2010-05-27 19:58:54 +02:00
2009-12-14 21:17:26 +01:00
2010-06-03 11:33:58 +02:00
2010-05-27 19:58:37 +02:00
2010-03-30 22:02:32 +09:00
2010-08-11 08:58:59 -07:00
2010-05-27 19:59:01 +02:00
2009-12-14 21:17:26 +01:00
2010-05-27 19:58:56 +02:00
2009-09-15 17:18:13 +02:00
2010-08-09 20:45:10 -07:00
2010-06-03 11:33:58 +02:00
2010-05-17 05:27:41 +02:00
2010-06-03 11:33:58 +02:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:26 +01:00
2010-08-09 20:45:10 -07:00
2010-05-11 17:33:42 -07:00
2009-09-15 17:18:11 +02:00
2009-06-15 18:39:50 +02:00
2010-06-20 09:22:31 +02:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-07-09 16:22:48 +02:00
2010-08-09 20:45:10 -07:00
2010-08-05 13:26:19 +01:00
2010-08-14 21:08:47 +02:00
2010-06-20 09:22:31 +02:00
2010-08-09 20:45:10 -07:00
2009-12-17 15:45:30 -08:00
2009-10-08 07:36:40 -07:00
2010-05-25 08:07:07 -07:00
2010-05-25 08:07:07 -07:00
2010-05-27 19:58:38 +02:00
2010-03-30 22:02:32 +09:00
2010-06-03 11:33:58 +02:00
2010-06-03 11:33:58 +02:00
2007-10-09 22:56:29 -04:00
2009-12-14 21:17:26 +01:00
2010-02-05 19:58:36 +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
2010-05-27 19:58:44 +02:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2010-06-03 11:33:58 +02:00
2009-10-04 22:53:42 +02:00
2010-05-27 19:59:02 +02:00
2010-08-09 20:45:10 -07:00
2010-03-30 22:02:32 +09:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2010-08-12 11:28:03 +02:00
2010-08-14 21:08:48 +02:00
2009-09-15 17:18:13 +02:00
2009-12-14 21:17:26 +01:00
2010-08-03 15:58:07 -07:00
2009-12-09 20:35:45 +01:00
2010-04-14 16:14:08 +02:00
2010-01-10 20:52:35 +01:00
2010-08-09 20:45:10 -07:00
2009-09-15 17:18:13 +02:00
2010-01-25 15:00:48 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:27 +01:00
2010-06-03 11:33:58 +02:00
2010-05-27 19:58:49 +02:00
2010-06-03 11:33:58 +02:00
2010-08-06 09:25:50 -06:00
2010-01-10 20:52:35 +01:00
2009-12-16 21:38:28 +01:00
2009-09-15 17:18:13 +02:00
2010-03-06 11:26:45 -08: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-16 21:38:29 +01:00
2010-06-03 11:33:58 +02:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2010-05-17 05:27:41 +02:00
2010-03-30 22:02:32 +09:00
2009-09-17 09:46:51 +02:00