lkml.org 
[lkml]   [2014]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] of: Add of_device_destroy_children() function
    On Thu, May 08, 2014 at 06:37:49PM +0200, Sylwester Nawrocki wrote:
    > This patch adds a helper function to unregister devices which
    > were created by an of_platform_populate() call. The pattern
    > used here can already be found in multiple drivers. This helper
    > can now be used instead of repeating similar code in drivers.

    I have a driver that does this as well, and what I found is that the
    remove must be in reverse order from the create or things explode, and
    that assumes the DT is topologically sorted according to dependency
    (so no deferred probe).

    AFAIK, there is no analog to deferred probe for removal, and
    attempting to remove, say, a GPIO driver while an I2C bit bang is using
    it just fails.

    Jason


    \
     
     \ /
      Last update: 2014-05-08 23:21    [W:3.956 / U:0.728 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site