drm/nouveau/i2c: remove parent deref hack
authorBen Skeggs <bskeggs@redhat.com>
Wed, 24 Apr 2013 07:36:57 +0000 (17:36 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 26 Apr 2013 05:37:58 +0000 (15:37 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c

index 2e98e8a3f1aa33c8ccf9673334d7fd3e73dab708..8ae2625415e155b22b3c97459c54e3f3d939fd22 100644 (file)
@@ -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;
 }