lkml.org 
[lkml]   [2013]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] platform: Fix platform device resource linking
On Fri, Jan 04, 2013 at 12:31:10AM +0200, Pantelis Antoniou wrote:
> Platform device removal uncovered a number of problems with
> the way resources are handled in the core platform code.
>
> Resources now form child/parent linkages and this requires
> proper linking of the resources. On top of that the OF core
> directly creates it's own platform devices. Simplify things
> by providing helper functions that manage the linking properly.
>
> Two functions are provided:
>
> platform_device_link_resources(), which links all the
> linkable resources (if not already linked).
>
> and platform_device_unlink_resources(), which unlinks all the
> resources.

Who would call these functions, and why?

And why have we never seen problems with removing platform devices
previously?

thanks,

greg k-h


\
 
 \ /
  Last update: 2013-01-04 03:21    [W:0.078 / U:0.648 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site