Commit aa4ce5f7 authored by Frank Schaefer's avatar Frank Schaefer Committed by Mauro Carvalho Chehab
Browse files

[media] em28xx: remove the i2c_set_adapdata() call in em28xx_i2c_register()



It is no longer needed since nobody is calling i2c_get_adapdata() anymore.

Signed-off-by: default avatarFrank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 707b7f80
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -939,7 +939,6 @@ int em28xx_i2c_register(struct em28xx *dev, unsigned bus,
	dev->i2c_bus[bus].algo_type = algo_type;
	dev->i2c_bus[bus].dev = dev;
	dev->i2c_adap[bus].algo_data = &dev->i2c_bus[bus];
	i2c_set_adapdata(&dev->i2c_adap[bus], &dev->v4l2_dev);

	retval = i2c_add_adapter(&dev->i2c_adap[bus]);
	if (retval < 0) {