Skip to content

Commit ceb6560

Browse files
sudipm-mukherjeedavem330
authored andcommitted
net/irda: bfin_sir: remove duplicate defines
The defconfig build of blackfin is failing with the error: arch/blackfin/include/asm/bfin_serial.h:269:0: warning: "port_membase" redefined drivers/net/irda/bfin_sir.h:85:0: note: this is the location of the previous definition arch/blackfin/include/asm/bfin_serial.h:382:0: warning: "get_lsr_cache" redefined drivers/net/irda/bfin_sir.h:86:0: note: this is the location of the previous definition arch/blackfin/include/asm/bfin_serial.h:383:0: warning: "put_lsr_cache" redefined drivers/net/irda/bfin_sir.h:87:0: note: this is the location of the previous definition port_membase, get_lsr_cache, put_lsr_cache are already defined in the architecture files, no need to define them again in the driver. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8034e1e commit ceb6560

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/net/irda/bfin_sir.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ struct bfin_sir_self {
8282

8383
#define DRIVER_NAME "bfin_sir"
8484

85-
#define port_membase(port) (((struct bfin_sir_port *)(port))->membase)
86-
#define get_lsr_cache(port) (((struct bfin_sir_port *)(port))->lsr)
87-
#define put_lsr_cache(port, v) (((struct bfin_sir_port *)(port))->lsr = (v))
8885
#include <asm/bfin_serial.h>
8986

9087
static const unsigned short per[][4] = {

0 commit comments

Comments
 (0)