summaryrefslogtreecommitdiff
path: root/drivers/bcma/main.c
diff options
context:
space:
mode:
authorLevente Kurusa <levex@linux.com>2013-12-19 19:06:52 +0400
committerJohn W. Linville <linville@tuxdriver.com>2013-12-19 23:40:29 +0400
commit08f336b808cea6f776f918f21ad05fe433362987 (patch)
tree84d4a45009381bbf398cd41603e057e1d72baa1c /drivers/bcma/main.c
parentd7df7a55cbac30acf8edade8f06458d35900ebfa (diff)
downloadlinux-08f336b808cea6f776f918f21ad05fe433362987.tar.xz
bcma: add missing put_device call
This is required so that we give up the last reference to the device. Signed-off-by: Levente Kurusa <levex@linux.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma/main.c')
-rw-r--r--drivers/bcma/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c
index e15430a82e90..5a9f6bdc88f1 100644
--- a/drivers/bcma/main.c
+++ b/drivers/bcma/main.c
@@ -176,6 +176,7 @@ static int bcma_register_cores(struct bcma_bus *bus)
bcma_err(bus,
"Could not register dev for core 0x%03X\n",
core->id.id);
+ put_device(&core->dev);
continue;
}
core->dev_registered = true;