Skip to content
Snippets Groups Projects
  • Stefan Roese's avatar
    3e3c026e
    devices: Use list_add_tail() instead of list_add() to register a device · 3e3c026e
    Stefan Roese authored
    
    This patch fixes a problem spotted on Glacier/Canyonlands (and most
    likely lots of other board ports), that no serial output was seen
    after console initialization in console_init_r(). This is because the
    last added console device was used instead of the first added.
    
    This patch fixes this problem by using list_add_tail() instead of
    list_add() to register a device. This way the first added console
    is used again.
    
    Signed-off-by: default avatarStefan Roese <sr@denx.de>
    3e3c026e
    History
    devices: Use list_add_tail() instead of list_add() to register a device
    Stefan Roese authored
    
    This patch fixes a problem spotted on Glacier/Canyonlands (and most
    likely lots of other board ports), that no serial output was seen
    after console initialization in console_init_r(). This is because the
    last added console device was used instead of the first added.
    
    This patch fixes this problem by using list_add_tail() instead of
    list_add() to register a device. This way the first added console
    is used again.
    
    Signed-off-by: default avatarStefan Roese <sr@denx.de>