media: ir-kbd-i2c: convert to i2c_new_dummy_device()
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 8 Aug 2019 15:53:28 +0000 (12:53 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 14 Aug 2019 08:05:10 +0000 (05:05 -0300)
commit1b09a2afa4dca452b28da31d0a6628f1d633807b
tree0b329f4422f706e64ad8921f4a356d160c7c2901
parent92ffdb61f65d5d27bc750b6249c381c89767aaba
media: ir-kbd-i2c: convert to i2c_new_dummy_device()

Convert this driver to use the new i2c_new_dummy_device() call and bail
out if the dummy device cannot be registered to make failure more
visible to the user.

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+samsung@kernel.org>
drivers/media/i2c/ir-kbd-i2c.c