From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: Strange location and name for platform devices when device-tree is used. Date: Sun, 03 Nov 2013 07:22:10 +1100 Message-ID: <1383423730.4776.16.camel@pasglop> References: <20131101145925.66e22f73@notabene.brown> <1383279744.28909.26.camel@pasglop> <1383280054.28909.30.camel@pasglop> <20131101160329.37f3707b@notabene.brown> <1383282516.28909.36.camel@pasglop> <20131101204749.GA19662@kroah.com> <1383347399.28909.46.camel@pasglop> <20131102155824.GG23938@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20131102155824.GG23938-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Greg Kroah-Hartman Cc: NeilBrown , Grant Likely , Rob Herring , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, lkml List-Id: devicetree@vger.kernel.org On Sat, 2013-11-02 at 08:58 -0700, Greg Kroah-Hartman wrote: > Just loop through all the platform devices before registering it to > determine if you need to do this, the platform code can do this just > fine. If you try to register a duplicate name with the driver core, > odds are it will complain loudly, so don't do that. But that loop + registration is racy ... oh well, we might do something better with Neil's idea of labels instead. Ben. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html