u_boot_register_console uses the wrong filedescriptors for in and out the are swapped. This patch fixes this problem and uses fileno instead. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>