drm/nouveau/i2c: remove unnecessary i2c_set_adapdata()
authorBen Skeggs <bskeggs@redhat.com>
Wed, 7 May 2014 02:41:29 +0000 (12:41 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 11 Jun 2014 06:09:15 +0000 (16:09 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c

index 378e05b88e6f0c4562637d00e21aed7285c5b69f..30529fd3b0d23e3d6f952cdcd8da6cc6fd69b1f3 100644 (file)
@@ -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;