[PATCH 4/6] arm: convert realview platform to use smsc911x

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steve Glendinning
Date: Tuesday, January 20, 2009 - 6:28 am

Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
---
 arch/arm/mach-realview/core.c |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c
index bd2aa4f..820ec25 100644
--- a/arch/arm/mach-realview/core.c
+++ b/arch/arm/mach-realview/core.c
@@ -28,7 +28,7 @@
 #include <linux/clocksource.h>
 #include <linux/clockchips.h>
 #include <linux/io.h>
-#include <linux/smc911x.h>
+#include <linux/smsc911x.h>
 
 #include <asm/clkdev.h>
 #include <asm/system.h>
@@ -127,14 +127,15 @@ int realview_flash_register(struct resource *res, u32 num)
 	return platform_device_register(&realview_flash_device);
 }
 
-static struct smc911x_platdata realview_smc911x_platdata = {
-	.flags		= SMC911X_USE_32BIT,
-	.irq_flags	= IRQF_SHARED,
-	.irq_polarity	= 1,
+static struct smsc911x_platform_config smsc911x_config = {
+	.flags		= SMSC911X_USE_32BIT,
+	.irq_polarity	= SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
+	.irq_type	= SMSC911X_IRQ_TYPE_OPEN_DRAIN,
+	.phy_interface	= PHY_INTERFACE_MODE_MII,
 };
 
 static struct platform_device realview_eth_device = {
-	.name		= "smc911x",
+	.name		= "smsc911x",
 	.id		= 0,
 	.num_resources	= 2,
 };
@@ -144,8 +145,8 @@ int realview_eth_register(const char *name, struct resource *res)
 	if (name)
 		realview_eth_device.name = name;
 	realview_eth_device.resource = res;
-	if (strcmp(realview_eth_device.name, "smc911x") == 0)
-		realview_eth_device.dev.platform_data = &realview_smc911x_platdata;
+	if (strcmp(realview_eth_device.name, "smsc911x") == 0)
+		realview_eth_device.dev.platform_data = &smsc911x_config;
 
 	return platform_device_register(&realview_eth_device);
 }
-- 
1.6.0.6

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH REPOST 0/6] convert arm platforms to smsc911x, Steve Glendinning, (Tue Jan 20, 6:28 am)
[PATCH 1/6] smsc911x: add support for platform-specific ir ..., Steve Glendinning, (Tue Jan 20, 6:28 am)
[PATCH 2/6] smsc911x: register isr as IRQF_SHARED, Steve Glendinning, (Tue Jan 20, 6:28 am)
[PATCH 3/6] arm: convert pcm037 platform to use smsc911x, Steve Glendinning, (Tue Jan 20, 6:28 am)
[PATCH 4/6] arm: convert realview platform to use smsc911x, Steve Glendinning, (Tue Jan 20, 6:28 am)
[PATCH 5/6] arm: update pcm037 defconfig to use smsc911x, Steve Glendinning, (Tue Jan 20, 6:28 am)
Re: [PATCH 1/6] smsc911x: add support for platform-specifi ..., Steve.Glendinning, (Wed Jan 21, 8:54 am)
Re: [PATCH 7/8] arm: convert omap ldp platform to use smsc911x, Russell King - ARM Linux, (Thu Jan 22, 3:58 am)
Re: [PATCH 7/8] arm: convert omap ldp platform to use smsc911x, Steve.Glendinning, (Fri Jan 23, 10:07 am)
Re: [PATCH 1/6] smsc911x: add support for platform-specifi ..., Steve.Glendinning, (Mon Jan 26, 1:45 am)