On Wed, Mar 10, 2010 at 5:48 PM, Ralf Baechle <ralf@xxxxxxxxxxxxxx> wrote: > On Tue, Mar 09, 2010 at 01:03:51PM +0100, Manuel Lauss wrote: > >> And on a personal note, that file just bothers me. It's messy, can >> cause merge conflicts, > > Eye cancer. > >> it references structures defined inside board-specific code. In short, >> it just plain annoys >> my sense of aesthetics. > > Indeed - and I don't think Sergej disagrees with that. I agree with him > that device registration code should primarily be done in the SOC code - For things like fixed internal interrupts, sure. But for pieces that depend on where the (and which) chip is used, not so much. By this logic there should be tons of ifdefs in the interrupt tables for every in-tree board. > but you'll need to somehow get that code to communicate with the platform > code about what really needs to be done then register the remainder of > the truely platform-specific platform devices. Something like that. I prefer a simpler solution. Manuel