From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx> Now that we have a resource managed version of i2c_new_dummy_device(), use it in at24. v1 -> v2: - i2c_new_dummy_device() returns ERR_PTR(), not NULL so check the value correctly - remove the no longer needed i2c_unregister_device() in error path Bartosz Golaszewski (2): eeprom: at24: use devm_i2c_new_dummy_device() eeprom: at24: drop unnecessary label drivers/misc/eeprom/at24.c | 75 ++++++++++++-------------------------- 1 file changed, 24 insertions(+), 51 deletions(-) -- 2.21.0