Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 124a1ce in mainline


Ignore:
Timestamp:
2013-02-16T14:56:58Z (9 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
3acd1bb
Parents:
92d047e
Message:

Fix build when CONFIG_AM335X_UART is disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/drivers/am335x/uart.h

    r92d047e r124a1ce  
    7070} am335x_uart_t;
    7171
     72#ifdef CONFIG_AM335X_UART
     73extern bool am335x_uart_init(am335x_uart_t *uart, inr_t interrupt,
     74    uintptr_t addr, size_t size);
    7275
    73 bool am335x_uart_init(am335x_uart_t *, inr_t, uintptr_t, size_t);
    74 void am335x_uart_input_wire(am335x_uart_t *, indev_t *);
     76extern void am335x_uart_input_wire(am335x_uart_t *uart, indev_t *indev);
     77#else
     78static bool am335x_uart_init(am335x_uart_t *uart, inr_t interrupt,
     79    uintptr_t addr, size_t size)
     80{ return true; }
     81
     82static void am335x_uart_input_wire(am335x_uart_t *uart, indev_t *indev) {}
     83#endif
    7584
    7685#endif
Note: See TracChangeset for help on using the changeset viewer.