Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d395f1e4 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau/i2c: remove parent deref hack



Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent db91d68c
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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;
}