Some time ago I submitted a patch for introducing a device-managed version of i2c_new_dummy [1]. It was not applied yet because a use case was missing. Recent changes to the at24 driver now allow to make use of devm_i2c_new_dummy. [1] https://patchwork.ozlabs.org/patch/804276/ Heiner Kallweit (1): eeprom: at24: switch to device-managed version of i2c_new_dummy drivers/misc/eeprom/at24.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) -- 2.15.1