diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2013-04-24 07:36:57 (GMT) |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-04-26 05:37:58 (GMT) |
commit | d395f1e4c500f2cc5a30e837c63382b6af5c1d84 (patch) | |
tree | 3aed08a25987723fd0e9e61a7847a44b0a22b36f /drivers/gpu/drm/nouveau/core/subdev | |
parent | db91d68c9b5ca22e1fa25569bbde4895ade9dac0 (diff) | |
download | linux-fsl-qoriq-d395f1e4c500f2cc5a30e837c63382b6af5c1d84.tar.xz |
drm/nouveau/i2c: remove parent deref hack
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/subdev')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/subdev/i2c/base.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c b/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c index 2e98e8a..8ae2625 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c +++ b/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; } |