From: Axel Lin Date: Tue, 24 Aug 2010 05:47:22 +0000 (+0800) Subject: mfd: Fix tps6586x_add_subdevs error path X-Git-Tag: v2.6.37-rc1~52^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=929980ab1b90b5a5c93db9b9b7d58cc6e93049c8;p=pandora-kernel.git 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 Acked-by: Mike Rapoport Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed