Blackfin: serial: convert to bfin_{read,write} helpers

Since the serial struct declares the sizes for us, no need to hardcode
them in the accessor functions.  Let the bfin_{read,write} helpers do
it for us.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger
2011-06-06 16:47:31 -04:00
parent 4150cec335
commit b1e574d95b
3 changed files with 19 additions and 17 deletions

View File

@@ -19,6 +19,8 @@
#include <asm/mach-common/bits/pll.h>
#include <asm/mach-common/bits/uart.h>
#define BUG() while (1) { asm volatile("emuexcpt;"); }
#include "serial.h"
__attribute__((always_inline))