lkml.org 
[lkml]   [2006]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] Driver core: Don't ignore bus_attach_device() retval
    On Mon, 9 Oct 2006, Cornelia Huck wrote:

    > From: Cornelia Huck <cornelia.huck@de.ibm.com>
    >
    > Check for return value of bus_attach_device() in device_add(). Add a
    > function bus_delete_device() that undos the effects of bus_add_device().
    > bus_remove_device() now undos the effects of bus_attach_device() only.
    > device_del() now calls bus_remove_device(), kobject_uevent(),
    > bus_delete_device() which makes it symmetric to the call sequence in
    > device_add().
    >
    > Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>

    This looks good to me.

    Alan Stern

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-10-09 16:13    [W:0.073 / U:28.956 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site