summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-05-07 12:41:29 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-06-11 16:09:15 +1000
commit0bac98798473bbce57e35e30df1c35f2f57257de (patch)
tree9e3b00c11b45ad2023ef0b6e96234873a31cb6ba /drivers/gpu
parent842c2953fc360f9661d7b8bdd90303d4c946f1ef (diff)
drm/nouveau/i2c: remove unnecessary i2c_set_adapdata()
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/i2c/base.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c b/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
index 378e05b88e6f..30529fd3b0d2 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
@@ -114,7 +114,6 @@ nouveau_i2c_port_create_(struct nouveau_object *parent,
port->adapter.dev.parent = nv_device_base(device);
port->index = index;
port->func = func;
- i2c_set_adapdata(&port->adapter, i2c);
if ( algo == &nouveau_i2c_bit_algo &&
!nouveau_boolopt(device->cfgopt, "NvI2C", CSTMSEL)) {
@@ -141,7 +140,6 @@ nouveau_i2c_port_create_(struct nouveau_object *parent,
ret = i2c_add_adapter(&port->adapter);
}
- /* drop port's i2c subdev refcount, i2c handles this itself */
if (ret == 0)
list_add_tail(&port->head, &i2c->ports);
return ret;