aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLevente Kurusa <levex@linux.com>2013-12-19 10:06:52 -0500
committerJohn W. Linville <linville@tuxdriver.com>2013-12-19 14:40:29 -0500
commit08f336b808cea6f776f918f21ad05fe433362987 (patch)
tree84d4a45009381bbf398cd41603e057e1d72baa1c
parentd7df7a55cbac30acf8edade8f06458d35900ebfa (diff)
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>
-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)
176 bcma_err(bus, 176 bcma_err(bus,
177 "Could not register dev for core 0x%03X\n", 177 "Could not register dev for core 0x%03X\n",
178 core->id.id); 178 core->id.id);
179 put_device(&core->dev);
179 continue; 180 continue;
180 } 181 }
181 core->dev_registered = true; 182 core->dev_registered = true;