]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
platform/x86: i2c-multi-instantiate: Simplify with dev_err_probe()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 5 Nov 2020 11:05:28 +0000 (13:05 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 24 Nov 2020 10:25:19 +0000 (11:25 +0100)
commita9d1c25004820b1fa7dcd99626ad5c73e023fb6d
treef35032fbe6de68a7662998c90dd92d4b3bd0dcec
parent6c328c347ac3dae3c89c2610bc3d0a3ac8574e07
platform/x86: i2c-multi-instantiate: Simplify with dev_err_probe()

Common pattern of handling deferred probe can be simplified with
dev_err_probe(). Less code and the error value gets printed.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20201105110530.27888-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/i2c-multi-instantiate.c