diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-08-03 04:34:13 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-08-12 05:28:06 -0400 |
commit | ef256176c7ede53741ad8c0231db0cc46c0cfce5 (patch) | |
tree | 0af2380fa30cb20b99b43b42df61ae52cfd779bc /drivers/mfd | |
parent | 288129f35aae3987b8afd308e63274a270532b09 (diff) |
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/ucb1400_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/ucb1400_core.c b/drivers/mfd/ucb1400_core.c index dbe280153f9e..d73f84ba0f08 100644 --- a/drivers/mfd/ucb1400_core.c +++ b/drivers/mfd/ucb1400_core.c | |||
@@ -114,7 +114,7 @@ static int ucb1400_core_probe(struct device *dev) | |||
114 | err3: | 114 | err3: |
115 | platform_device_put(ucb->ucb1400_ts); | 115 | platform_device_put(ucb->ucb1400_ts); |
116 | err2: | 116 | err2: |
117 | platform_device_unregister(ucb->ucb1400_gpio); | 117 | platform_device_del(ucb->ucb1400_gpio); |
118 | err1: | 118 | err1: |
119 | platform_device_put(ucb->ucb1400_gpio); | 119 | platform_device_put(ucb->ucb1400_gpio); |
120 | err0: | 120 | err0: |