Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b38bf410 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (7534): ivtv: the upd* modules have to be probed to properly autodetect some cards

parent faea4d2a
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -177,10 +177,16 @@ int ivtv_i2c_register(struct ivtv *itv, unsigned idx)
	}

	if (id != I2C_DRIVERID_TUNER) {
		if (id == I2C_DRIVERID_UPD64031A ||
		    id == I2C_DRIVERID_UPD64083) {
			unsigned short addrs[2] = { info.addr, I2C_CLIENT_END };

			c = i2c_new_probed_device(&itv->i2c_adap, &info, addrs);
		} else
			c = i2c_new_device(&itv->i2c_adap, &info);
		if (c->driver == NULL)
		if (c && c->driver == NULL)
			i2c_unregister_device(c);
		else
		else if (c)
			itv->i2c_clients[i] = c;
		return itv->i2c_clients[i] ? 0 : -ENODEV;
	}