Re: Move of_node_to_nid to generic location

Arnd Bergmann
2009-06-29T16:37:14Z

On Monday 29 June 2009, Grant Likely wrote:
> On Mon, Jun 29, 2009 at 3:09 AM, Michal Simek<monstr@monstr.eu> wrote:
> > Hi All,
> >
> > I have on my list one task which needs to be discuss with you.
> > I look at of_node_to_nid for non NUMA systems. I think we should
> > move this function to asm-generic/topology.h.
>
> I'm in the process of moving a bunch of stuff out of the various
> prom.c files and into drivers/of/*.c. If this is a common function,
> then I think it should go there.

I agree, it fits better into one of the 'of' headers than the topology
header. Maybe include/linux/of_device.h or include/linux/of.h?