Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Blackfin: bfin_serial.h: turn default port wrappers into stubs

Any consumer that needs to access the MMRs has to provide these helpers,
so make the default into useless stubs.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

+3 -3
+3 -3
arch/blackfin/include/asm/bfin_serial.h
··· 184 184 #undef __BFP 185 185 186 186 #ifndef port_membase 187 - # define port_membase(p) (((struct bfin_serial_port *)(p))->port.membase) 187 + # define port_membase(p) 0 188 188 #endif 189 189 190 190 #define UART_GET_CHAR(p) bfin_read16(port_membase(p) + OFFSET_RBR) ··· 235 235 #define UART_SET_DLAB(p) do { UART_PUT_LCR(p, UART_GET_LCR(p) | DLAB); SSYNC(); } while (0) 236 236 237 237 #ifndef put_lsr_cache 238 - # define put_lsr_cache(p, v) (((struct bfin_serial_port *)(p))->lsr = (v)) 238 + # define put_lsr_cache(p, v) 239 239 #endif 240 240 #ifndef get_lsr_cache 241 - # define get_lsr_cache(p) (((struct bfin_serial_port *)(p))->lsr) 241 + # define get_lsr_cache(p) 0 242 242 #endif 243 243 244 244 /* The hardware clears the LSR bits upon read, so we need to cache