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