commit | 09ff21e0f670a71ea43765cedaab9246fd81540e | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@gmail.com> | Tue Aug 24 13:45:49 2010 +0800 |
committer | Samuel Ortiz <sameo@linux.intel.com> | Fri Oct 29 00:28:58 2010 +0200 |
tree | 01b470a4d2d5849fcf8cee5175fcb946bd40c065 | |
parent | b59cedeffaef54dd091baf01fd5e276ac50a3176 [diff] |
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 <axel.lin@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>