media: pci: smipcie: smipcie-main: convert to use i2c_new_client_device()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 16 Dec 2019 15:51:35 +0000 (16:51 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 9 Jan 2020 15:02:14 +0000 (16:02 +0100)
commit32dc63f6915d7a3b80fbe7f2c93582ec12a7ae61
treef92c1dd3422aefe7f7d65c875b8234e6f63cb4b4
parentd442c2e99d99be9b4462819ecf599dbd5b4bf08d
media: pci: smipcie: smipcie-main: convert to use i2c_new_client_device()

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

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/pci/smipcie/smipcie-main.c