serial_stub.c 586 B

123456789101112131415161718192021
  1. /*
  2. * This is a few stub routines to make the boot code cleaner looking when
  3. * there is no serial port support doesn't need to be closed, for example.
  4. *
  5. * Author: Tom Rini <trini@mvista.com>
  6. *
  7. * 2003 (c) MontaVista, Software, Inc. This file is licensed under the terms
  8. * of the GNU General Public License version 2. This program is licensed "as
  9. * is" without any warranty of any kind, whether express or implied.
  10. */
  11. unsigned long __attribute__ ((weak))
  12. serial_init(int chan, void *ignored)
  13. {
  14. return 0;
  15. }
  16. void __attribute__ ((weak))
  17. serial_close(unsigned long com_port)
  18. {
  19. }