[PATCH 02/38] powerpc: qe_lib: add missing put_device call
Levente Kurusa
levex at linux.com
Fri Dec 20 02:03:13 EST 2013
This is required so that we give up the last reference to the device.
Signed-off-by: Levente Kurusa <levex at linux.com>
---
arch/powerpc/sysdev/qe_lib/qe_ic.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/sysdev/qe_lib/qe_ic.c b/arch/powerpc/sysdev/qe_lib/qe_ic.c
index b2b87c3..2e15262 100644
--- a/arch/powerpc/sysdev/qe_lib/qe_ic.c
+++ b/arch/powerpc/sysdev/qe_lib/qe_ic.c
@@ -493,6 +493,7 @@ static int __init init_qe_ic_sysfs(void)
rc = device_register(&device_qe_ic);
if (rc) {
printk(KERN_ERR "Failed registering qe_ic sys device\n");
+ put_device(&device_qe_ic);
return -ENODEV;
}
return 0;
--
1.8.3.1
More information about the Linuxppc-dev
mailing list