[Cbe-oss-dev] [PATCH 03/38] powerpc: cell: add missing put_device call
Levente Kurusa
levex at linux.com
Fri Dec 20 02:04:11 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/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
More information about the cbe-oss-dev
mailing list