Krzysztof Kozlowski eef2dc201d mfd: max77686: Fix regmap resource leak on driver remove
commit 74142ffc0b52cfe6f9d2f6f34a5f3eedbfe3ce51 upstream.

The regmap used by max77686 MFD driver was not freed with regmap_exit()
on driver exit. This lead to leak of resources.

Replace regmap_init_i2c() call in driver probe with initialization of
managed register map so the regmap will be properly freed by the device
management code.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-06 11:34:02 -08:00
..
2013-10-23 16:20:44 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-04-05 11:20:13 +02:00
2012-11-28 12:22:27 -08:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-08-20 03:16:00 +02:00
2013-08-20 03:16:00 +02:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-11-26 09:12:19 +00:00
2013-07-31 13:01:29 +01:00
2012-09-23 20:51:34 +02:00
2013-07-31 13:01:29 +01:00
2013-10-23 16:22:33 +01:00
2013-08-20 08:51:23 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2012-11-28 12:22:27 -08:00
2013-07-31 13:01:29 +01:00
2013-04-19 00:45:20 +02:00
2013-08-20 10:22:01 +02:00
2013-07-31 13:01:29 +01:00
2013-06-18 09:41:15 +02:00
2013-07-31 13:01:29 +01:00
2013-04-09 12:18:16 +02:00
2013-07-31 13:01:45 +01:00
2013-10-23 16:21:12 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-11-27 09:35:11 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-10-25 11:03:48 +02:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-10-25 11:03:48 +02:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2012-11-28 12:22:27 -08:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00