serial_stub.c 627 B

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