提交 d395f1e4 编写于 作者: B Ben Skeggs

drm/nouveau/i2c: remove parent deref hack

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 db91d68c
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册