carl9170 firmware: fix CONFIG_CARL9170FW_DEBUG_UART compile error
[carl9170fw.git] / carlfw / src / uart.c
index cf6058e578569fa180f595bac658fce389efbeb1..919e6835de633b6ae9ce70b96f93cfa6d239cde3 100644 (file)
@@ -6,7 +6,7 @@
  * Copyright (c) 2000-2005 ZyDAS Technology Corporation
  * Copyright (c) 2007-2009 Atheros Communications, Inc.
  * Copyright   2009    Johannes Berg <johannes@sipsolutions.net>
- * Copyright 2009, 2010 Christian Lamparter <chunkeey@googlemail.com>
+ * Copyright 2009-2011 Christian Lamparter <chunkeey@googlemail.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -33,7 +33,7 @@ void uart_putc(const char c)
        set(AR9170_UART_REG_TX_HOLDING, c);
 
        while (get(AR9170_UART_REG_LINE_STATUS) &
-              AR9170_UART_LINE_STS_TX_FIFO_ALMOST_EMPTY) {
+              AR9170_UART_LINE_STS_TX_FIFO_NEAR_EMPTY) {
                /*
                 * wait until the byte has made it
                 */