lkml.org 
[lkml]   [2006]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [03/12] driver core fixes: fixup platform_device_register_simple()
    Date
    Hi,

    On Wednesday 13 September 2006 12:38, Cornelia Huck wrote:
    > From: Cornelia Huck <cornelia.huck@de.ibm.com>
    >
    > Remember to remove allocated resources if platform_device_add() fails.
    > Introduce a helper function platform_device_del_resources() for this,
    > which can also be used by platform_device_del().
    >

    platform_device_add() already releases all resources in case of failure.
    Memory allocated for resource structures is released by
    platform_device_release(). I do not think this patch is needed.

    As fas as platform_device_register_somple() goes it should just die and
    users should be converted to platofrm_device_alloc/add.

    --
    Dmitry
    -
    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-09-14 04:33    [W:3.516 / U:0.708 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site