arm: convert realview platform to use smsc911x

Previous thread: md: never clear bit from the write-intent bitmap when the array is degraded. by Linux Kernel Mailing List on Friday, April 3, 2009 - 11:00 am. (1 message)

Next thread: [ARM] 5440/1: Fix VFP state corruption due to preemption during VFP exceptions by Linux Kernel Mailing List on Friday, April 3, 2009 - 10:59 am. (1 message)
From: Linux Kernel Mailing List
Date: Friday, April 3, 2009 - 10:59 am

Gitweb:     http://git.kernel.org/linus/c5142e84f3a39c6396ce2ddde01b1e420a67464a
Commit:     c5142e84f3a39c6396ce2ddde01b1e420a67464a
Parent:     4353318ed5fe95debb8a80f289ebf1c03244cf9c
Author:     Steve Glendinning <steve.glendinning@smsc.com>
AuthorDate: Tue Jan 20 13:23:30 2009 +0000
Committer:  Steve Glendinning <steve.glendinning@smsc.com>
CommitDate: Thu Apr 2 18:22:50 2009 +0100

    arm: convert realview platform to use smsc911x
    
    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 d676668..9ab947c 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 <linux/ata_platform.h>
 
 #include <asm/clkdev.h>
@@ -128,14 +128,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_HIGH,
+	.irq_type	= SMSC911X_IRQ_TYPE_PUSH_PULL,
+	.phy_interface	= PHY_INTERFACE_MODE_MII,
 };
 
 static struct platform_device realview_eth_device = {
-	.name		= "smc911x",
+	.name		= "smsc911x",
 	.id		= 0,
 	.num_resources	= 2,
 };
@@ -145,8 +146,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 ...
Previous thread: md: never clear bit from the write-intent bitmap when the array is degraded. by Linux Kernel Mailing List on Friday, April 3, 2009 - 11:00 am. (1 message)

Next thread: [ARM] 5440/1: Fix VFP state corruption due to preemption during VFP exceptions by Linux Kernel Mailing List on Friday, April 3, 2009 - 10:59 am. (1 message)