• D
    i2c-remove-redundant-i2c_client-list.patch · 86ec5ec8
    David Brownell 提交于
    This goes on top of the patch removing most i2c_adapter.clients usage,
    updating i2c_attach_client:
    
     - Don't call device_register() while holding clist_lock.  This
       removes a self-deadlock when on the i2c_driver.probe() path,
       for drivers that need to attach new devices (e.g. dummies).
    
     - Remove a redundant address check.  The driver model core does
       this as a consequence of guaranteeing unique names.
    
     - Move the "device registered" diagnostic so that it never lies;
       previously, on error paths it would falsely report success.
    Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: NJean Delvare <khali@linux-fr.org>
    86ec5ec8
i2c-core.c 41.9 KB