]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Avoid calling platform_device_put() twice in ucb1400 probe error path
authorAxel Lin <axel.lin@gmail.com>
Tue, 3 Aug 2010 08:34:13 +0000 (16:34 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 12 Aug 2010 09:28:06 +0000 (11:28 +0200)
commit824dd6bb7830ae36fac2fad0aff58eb498ae05ea
tree0af2380fa30cb20b99b43b42df61ae52cfd779bc
parent6e0623290ba31be4a55821f0fadf6b224da2d451
mfd: Avoid calling platform_device_put() twice in ucb1400 probe error path

In the case of goto err2, what we want is to call
platform_device_del() instead of platform_device_unregister().
Otherwise, we call platform_device_put() twice.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ucb1400_core.c