linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 02/38] powerpc: qe_lib: add missing put_device call
       [not found] <1387465429-3568-2-git-send-email-levex@linux.com>
@ 2013-12-19 15:03 ` Levente Kurusa
  2013-12-19 15:03 ` [PATCH 03/38] powerpc: cell: " Levente Kurusa
  2013-12-19 15:03 ` [PATCH 04/38] powerpc: kernel: " Levente Kurusa
  2 siblings, 0 replies; 3+ messages in thread
From: Levente Kurusa @ 2013-12-19 15:03 UTC (permalink / raw)
  To: LKML; +Cc: Levente Kurusa, Paul Mackerras, linuxppc-dev

This is required so that we give up the last reference to the device.

Signed-off-by: Levente Kurusa <levex@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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 03/38] powerpc: cell: add missing put_device call
       [not found] <1387465429-3568-2-git-send-email-levex@linux.com>
  2013-12-19 15:03 ` [PATCH 02/38] powerpc: qe_lib: add missing put_device call Levente Kurusa
@ 2013-12-19 15:03 ` Levente Kurusa
  2013-12-19 15:03 ` [PATCH 04/38] powerpc: kernel: " Levente Kurusa
  2 siblings, 0 replies; 3+ messages in thread
From: Levente Kurusa @ 2013-12-19 15:03 UTC (permalink / raw)
  To: LKML
  Cc: cbe-oss-dev, Levente Kurusa, Arnd Bergmann, Paul Mackerras,
	linuxppc-dev

This is required so that we give up the last reference to the device.

Signed-off-by: Levente Kurusa <levex@linux.com>
---
 arch/powerpc/platforms/cell/spu_base.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c
index f85db3a..f7fb0d9 100644
--- a/arch/powerpc/platforms/cell/spu_base.c
+++ b/arch/powerpc/platforms/cell/spu_base.c
@@ -597,6 +597,7 @@ static int spu_create_dev(struct spu *spu)
 	if (ret) {
 		printk(KERN_ERR "Can't register SPU %d with sysfs\n",
 				spu->number);
+		put_device(&spu->dev);
 		return ret;
 	}
 
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 04/38] powerpc: kernel: add missing put_device call
       [not found] <1387465429-3568-2-git-send-email-levex@linux.com>
  2013-12-19 15:03 ` [PATCH 02/38] powerpc: qe_lib: add missing put_device call Levente Kurusa
  2013-12-19 15:03 ` [PATCH 03/38] powerpc: cell: " Levente Kurusa
@ 2013-12-19 15:03 ` Levente Kurusa
  2 siblings, 0 replies; 3+ messages in thread
From: Levente Kurusa @ 2013-12-19 15:03 UTC (permalink / raw)
  To: LKML
  Cc: Prarit Bhargava, Levente Kurusa, Paul Mackerras, Anton Blanchard,
	Greg Kroah-Hartman, linuxppc-dev

This is required so that we give up the last reference to the device.

Signed-off-by: Levente Kurusa <levex@linux.com>
---
 arch/powerpc/kernel/vio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c
index e7d0c88f..e8ed87e 100644
--- a/arch/powerpc/kernel/vio.c
+++ b/arch/powerpc/kernel/vio.c
@@ -1494,6 +1494,7 @@ static int __init vio_bus_init(void)
 	if (err) {
 		printk(KERN_WARNING "%s: device_register returned %i\n",
 				__func__, err);
+		put_device(&vio_bus_device.dev);
 		return err;
 	}
 
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-19 15:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1387465429-3568-2-git-send-email-levex@linux.com>
2013-12-19 15:03 ` [PATCH 02/38] powerpc: qe_lib: add missing put_device call Levente Kurusa
2013-12-19 15:03 ` [PATCH 03/38] powerpc: cell: " Levente Kurusa
2013-12-19 15:03 ` [PATCH 04/38] powerpc: kernel: " Levente Kurusa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).