From: Levente Kurusa <levex@linux.com>
Date: Thu, 19 Dec 2013 15:06:52 +0000 (+0100)
Subject: bcma: add missing put_device call
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=08f336b808cea6f776f918f21ad05fe433362987;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

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>
---

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;