aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/tx4938/toshiba_rbtx4938
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2007-04-30 11:27:58 -0400
committerJeff Garzik <jeff@garzik.org>2007-05-08 01:23:09 -0400
commit57e386ce9d136261bc60a5223f39b179a3c11046 (patch)
treeec7c47c0bbe8e60b589dc5055732f1d097202cdd /arch/mips/tx4938/toshiba_rbtx4938
parent1c08bf10658921dafae8d66be0effc915a209ab0 (diff)
ne: MIPS: Use platform_driver for ne on RBTX49XX
This patch lets RBTX49XX boards use generic platform_driver interface for the ne driver. * Use platform_device to pass ioaddr and irq to the ne driver. * Remove unnecessary ifdefs for RBTX49XX from the ne driver. * Make the ne driver selectable on these boards regardless of CONFIG_ISA Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'arch/mips/tx4938/toshiba_rbtx4938')
-rw-r--r--arch/mips/tx4938/toshiba_rbtx4938/setup.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/mips/tx4938/toshiba_rbtx4938/setup.c b/arch/mips/tx4938/toshiba_rbtx4938/setup.c
index 66163ba452c8..f5d1ce739fcc 100644
--- a/arch/mips/tx4938/toshiba_rbtx4938/setup.c
+++ b/arch/mips/tx4938/toshiba_rbtx4938/setup.c
@@ -20,6 +20,7 @@
20#include <linux/console.h> 20#include <linux/console.h>
21#include <linux/pci.h> 21#include <linux/pci.h>
22#include <linux/pm.h> 22#include <linux/pm.h>
23#include <linux/platform_device.h>
23 24
24#include <asm/wbflush.h> 25#include <asm/wbflush.h>
25#include <asm/reboot.h> 26#include <asm/reboot.h>
@@ -1037,3 +1038,22 @@ static int __init tx4938_spi_proc_setup(void)
1037 1038
1038__initcall(tx4938_spi_proc_setup); 1039__initcall(tx4938_spi_proc_setup);
1039#endif 1040#endif
1041
1042static int __init rbtx4938_ne_init(void)
1043{
1044 struct resource res[] = {
1045 {
1046 .start = RBTX4938_RTL_8019_BASE,
1047 .end = RBTX4938_RTL_8019_BASE + 0x20 - 1,
1048 .flags = IORESOURCE_IO,
1049 }, {
1050 .start = RBTX4938_RTL_8019_IRQ,
1051 .flags = IORESOURCE_IRQ,
1052 }
1053 };
1054 struct platform_device *dev =
1055 platform_device_register_simple("ne", -1,
1056 res, ARRAY_SIZE(res));
1057 return IS_ERR(dev) ? PTR_ERR(dev) : 0;
1058}
1059device_initcall(rbtx4938_ne_init);