i2c: core: improve return value handling of i2c_new_device and i2c_new_dummy