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