From 09ff21e0f670a71ea43765cedaab9246fd81540e Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Tue, 24 Aug 2010 13:45:49 +0800 Subject: [PATCH] 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-format-patch failed