From: Niklas Söderlund Date: Sun, 22 Nov 2020 16:30:48 +0000 (+0100) Subject: media: adv748x: Only set i2c addresses once during probe X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4deff542d70aa8ffe83cf6de0e14b4e0cb24b95b;p=linux.git media: adv748x: Only set i2c addresses once during probe During probe the i2c slave addresses are set two times in a row, once in adv748x_initialise_clients() and once directly after in adv748x_reset(). Remove the call to adv748x_set_slave_addresses() in adv748x_initialise_clients() as it's only called during probe while adv748x_reset() is called during probe and normal operation. Signed-off-by: Niklas Söderlund Reviewed-by: Kieran Bingham Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/adv748x/adv748x-core.c b/drivers/media/i2c/adv748x/adv748x-core.c index ae8b7ebf3830a..00966fe104881 100644 --- a/drivers/media/i2c/adv748x/adv748x-core.c +++ b/drivers/media/i2c/adv748x/adv748x-core.c @@ -198,7 +198,7 @@ static int adv748x_initialise_clients(struct adv748x_state *state) return ret; } - return adv748x_set_slave_addresses(state); + return 0; } /**