commit | 929980ab1b90b5a5c93db9b9b7d58cc6e93049c8 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@gmail.com> | Tue Aug 24 13:47:22 2010 +0800 |
committer | Samuel Ortiz <sameo@linux.intel.com> | Fri Oct 29 00:28:59 2010 +0200 |
tree | 99eeed3baf78f5ec197efa124ab0df82a4ae70d6 | |
parent | 09ff21e0f670a71ea43765cedaab9246fd81540e [diff] |
mfd: Fix tps6586x_add_subdevs error path 1. return -ENOMEM if platform_device_alloc() fail. 2. call platform_device_put() if platform_device_add() fail. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Mike Rapoport <mike@compulab.co.il> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>