media: platform: sti: c8sectpfe: c8sectpfe-dvb: convert to use i2c_new_client_device()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 16 Dec 2019 15:51:36 +0000 (16:51 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 9 Jan 2020 15:03:20 +0000 (16:03 +0100)
commita7070891f9707cd46e761e32b13795e4583796b4
tree2efdc61247d370d6716352c3b66921f0ec4d296a
parent32dc63f6915d7a3b80fbe7f2c93582ec12a7ae61
media: platform: sti: c8sectpfe: c8sectpfe-dvb: convert to use i2c_new_client_device()

Use the newer API returning an ERRPTR and use the new helper to bail
out.

Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/sti/c8sectpfe/c8sectpfe-dvb.c