Hello. Manuel Lauss wrote:
Move device registration out of common/platform.c into the individual boards' platform.c files. Every board should register the devices it wants to use (i.e. on one of my Au1200 systems UART1 is unused [pinmux problems] and its functionality is provided by an external device. This also results in a completely useless ttyS1 entry; I want this entry gone without having to add a lot more #ifdef <platform> lines to common/platform.c).
No #ifdef's would be needed at all if you check what devices are enabled before registering.
Signed-off-by: Manuel Lauss <mano@xxxxxxxxxxxxxxxxxxxxxxx>
NAK. WBR. Sergei