From: Ben Skeggs Date: Wed, 24 Apr 2013 07:36:57 +0000 (+1000) Subject: drm/nouveau/i2c: remove parent deref hack X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d395f1e4c500f2cc5a30e837c63382b6af5c1d84;p=openwrt%2Fstaging%2Fblogic.git drm/nouveau/i2c: remove parent deref hack Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c b/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c index 2e98e8a3f1aa..8ae2625415e1 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; }