V4L/DVB (11673): v4l2-device: unregister i2c_clients when unregistering the v4l2_device.
[deliverable/linux.git] / drivers / media / video / v4l2-common.c
index e32de9e9b0f3120f6f0febe35613d44fc25c0f3d..f96475626da78949079318fe4372edf0ae7dd37e 100644 (file)
@@ -746,6 +746,7 @@ void v4l2_i2c_subdev_init(struct v4l2_subdev *sd, struct i2c_client *client,
                const struct v4l2_subdev_ops *ops)
 {
        v4l2_subdev_init(sd, ops);
+       sd->flags |= V4L2_SUBDEV_FL_IS_I2C;
        /* the owner is the same as the i2c_client's driver owner */
        sd->owner = client->driver->driver.owner;
        /* i2c_client and v4l2_subdev point to one another */
This page took 0.024625 seconds and 5 git commands to generate.