Skip to content

Commit

Permalink
smc91x: SMC_IO_SHIFT platform data support for default case
Browse files Browse the repository at this point in the history
Commit 1591988 added SMC_IO_SHIFT
platform data support. After that ARM board support was added.

The default case is still missing though, so on SuperH SMC_IO_SHIFT
is constantly zero regardless of what you pass as platform data.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Test-by: Luca Santini <luca.santini@spesonline.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Magnus Damm authored and Jeff Garzik committed Sep 24, 2008
1 parent d6bc372 commit d1c5ea3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/smc91x.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,8 @@ static inline void LPD7_SMC_outsw (unsigned char* a, int r,
#define SMC_CAN_USE_32BIT 1
#define SMC_NOWAIT 1

#define SMC_IO_SHIFT (lp->io_shift)

#define SMC_inb(a, r) readb((a) + (r))
#define SMC_inw(a, r) readw((a) + (r))
#define SMC_inl(a, r) readl((a) + (r))
Expand Down

0 comments on commit d1c5ea3

Please sign in to comment.