소스 검색

[media] adv7180: Free control handler on remove()

Make sure to free the control handler when the device is removed.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Lars-Peter Clausen 11 년 전
부모
커밋
b13f4af25c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      drivers/media/i2c/adv7180.c

+ 1 - 0
drivers/media/i2c/adv7180.c

@@ -641,6 +641,7 @@ static int adv7180_remove(struct i2c_client *client)
 	}
 
 	v4l2_device_unregister_subdev(sd);
+	adv7180_exit_controls(state);
 	mutex_destroy(&state->mutex);
 	return 0;
 }