Browse Source

drm/nouveau/i2c: remove parent deref hack

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Ben Skeggs 12 years ago
parent
commit
d395f1e4c5
1 changed files with 1 additions and 5 deletions
  1. 1 5
      drivers/gpu/drm/nouveau/core/subdev/i2c/base.c

+ 1 - 5
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c

@@ -140,12 +140,8 @@ nouveau_i2c_port_create_(struct nouveau_object *parent,
 	}
 
 	/* drop port's i2c subdev refcount, i2c handles this itself */
-	if (ret == 0) {
+	if (ret == 0)
 		list_add_tail(&port->head, &i2c->ports);
-		atomic_dec(&parent->refcount);
-		atomic_dec(&engine->refcount);
-	}
-
 	return ret;
 }