lkml.org 
[lkml]   [2013]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 10/38] arm: exynos: add missing put_device call
Date
This is required so that we give up the last reference to the device.

Signed-off-by: Levente Kurusa <levex@linux.com>
---
arch/arm/mach-exynos/common.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c
index 61d2906..8b58829 100644
--- a/arch/arm/mach-exynos/common.c
+++ b/arch/arm/mach-exynos/common.c
@@ -407,7 +407,13 @@ early_initcall(exynos4_l2x0_cache_init);

static int __init exynos_init(void)
{
+ int rc = 0;
+
printk(KERN_INFO "EXYNOS: Initializing architecture\n");

- return device_register(&exynos4_dev);
+ rc = device_register(&exynos4_dev);
+ if (rc)
+ put_device(&exynos4_dev);
+
+ return rc;
}
--
1.8.3.1


\
 
 \ /
  Last update: 2013-12-21 18:21    [W:0.685 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site