Index: kernel/genarch/include/drivers/am335x/uart.h
===================================================================
--- kernel/genarch/include/drivers/am335x/uart.h	(revision 92d047ecd5a013571eaedd97a44979657986fd6a)
+++ kernel/genarch/include/drivers/am335x/uart.h	(revision 3acd1bbbc798671d0d42673c2e902088d0f5ecd8)
@@ -70,7 +70,16 @@
 } am335x_uart_t;
 
+#ifdef CONFIG_AM335X_UART
+extern bool am335x_uart_init(am335x_uart_t *uart, inr_t interrupt,
+    uintptr_t addr, size_t size);
 
-bool am335x_uart_init(am335x_uart_t *, inr_t, uintptr_t, size_t);
-void am335x_uart_input_wire(am335x_uart_t *, indev_t *);
+extern void am335x_uart_input_wire(am335x_uart_t *uart, indev_t *indev);
+#else
+static bool am335x_uart_init(am335x_uart_t *uart, inr_t interrupt,
+    uintptr_t addr, size_t size)
+{ return true; }
+
+static void am335x_uart_input_wire(am335x_uart_t *uart, indev_t *indev) {}
+#endif
 
 #endif
