[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1387465429-3568-9-git-send-email-levex@linux.com>
Date: Thu, 19 Dec 2013 16:03:19 +0100
From: Levente Kurusa <levex@...ux.com>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Levente Kurusa <levex@...ux.com>,
Russell King <linux@....linux.org.uk>,
linux-arm-kernel@...ts.infradead.org
Subject: [PATCH 08/38] arm: mach-rpc: 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@...ux.com>
---
arch/arm/mach-rpc/ecard.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-rpc/ecard.c b/arch/arm/mach-rpc/ecard.c
index fcb1d59..1c5f7cb 100644
--- a/arch/arm/mach-rpc/ecard.c
+++ b/arch/arm/mach-rpc/ecard.c
@@ -961,8 +961,10 @@ static int __init ecard_probe(int slot, unsigned irq, card_type_t type)
slot_to_expcard[slot] = ec;
rc = device_register(&ec->dev);
- if (rc)
+ if (rc) {
+ put_device(&ec->dev);
goto nodev;
+ }
return 0;
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists