Skip to content

Commit

Permalink
net: smc91x: Build fixes for general sh boards.
Browse files Browse the repository at this point in the history
SH boards in general only wire this up in 8 or 16-bit mode, and
as we never had the wrappers for 32-bit mode defined, SMC_CAN_USE_32BIT
caused build failure for the non-Solution Engine boards. This gets it
building again.

Also kill off the straggling set_irq_type() definition, this is left
over cruft that was missed when the rest of it switched to IRQ flags.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

--

 drivers/net/smc91x.h |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Paul Mundt authored and Jeff Garzik committed Aug 7, 2007
1 parent 4a2a4df commit 092ed99
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/smc91x.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ SMC_outw(u16 val, void __iomem *ioaddr, int reg)

#define SMC_CAN_USE_8BIT 1
#define SMC_CAN_USE_16BIT 1
#define SMC_CAN_USE_32BIT 1
#define SMC_CAN_USE_32BIT 0

#define SMC_inb(a, r) inb((a) + (r))
#define SMC_inw(a, r) inw((a) + (r))
Expand All @@ -310,8 +310,6 @@ SMC_outw(u16 val, void __iomem *ioaddr, int reg)

#endif /* BOARDS */

#define set_irq_type(irq, type) do {} while (0)

#elif defined(CONFIG_M32R)

#define SMC_CAN_USE_8BIT 0
Expand Down

0 comments on commit 092ed99

Please sign in to comment.