diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2008-02-22 05:55:24 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-03-17 07:49:27 -0400 |
commit | 8a214c125a06e974b6fba7c38fb06297ab449d3a (patch) | |
tree | 3923a959fc92294c25e7f61176bed4cc55955f63 /drivers | |
parent | 3e94794355724f77dc6cbb5ad956f7c72d8313a4 (diff) |
smc91x: add insw/outsw to default config V2
This patch makes sure SMC_insw()/SMC_outsw() are defined for the
default configuration. Without this change BUG()s will be triggered
when using 16-bit only platform data and the default configuration.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/smc91x.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/smc91x.h b/drivers/net/smc91x.h index e044b4de1397..c4f2f469cd63 100644 --- a/drivers/net/smc91x.h +++ b/drivers/net/smc91x.h | |||
@@ -476,6 +476,8 @@ static inline void LPD7_SMC_outsw (unsigned char* a, int r, | |||
476 | #define SMC_outb(v, a, r) writeb(v, (a) + (r)) | 476 | #define SMC_outb(v, a, r) writeb(v, (a) + (r)) |
477 | #define SMC_outw(v, a, r) writew(v, (a) + (r)) | 477 | #define SMC_outw(v, a, r) writew(v, (a) + (r)) |
478 | #define SMC_outl(v, a, r) writel(v, (a) + (r)) | 478 | #define SMC_outl(v, a, r) writel(v, (a) + (r)) |
479 | #define SMC_insw(a, r, p, l) readsw((a) + (r), p, l) | ||
480 | #define SMC_outsw(a, r, p, l) writesw((a) + (r), p, l) | ||
479 | #define SMC_insl(a, r, p, l) readsl((a) + (r), p, l) | 481 | #define SMC_insl(a, r, p, l) readsl((a) + (r), p, l) |
480 | #define SMC_outsl(a, r, p, l) writesl((a) + (r), p, l) | 482 | #define SMC_outsl(a, r, p, l) writesl((a) + (r), p, l) |
481 | 483 | ||