diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2008-07-12 02:02:58 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2008-07-12 02:02:58 +0000 |
commit | 9ba31e3b0819f306c121e4404873bda4da655203 (patch) | |
tree | 6870fa2b5548592459151c5a5d25ceef5e45892d /target/linux/ixp4xx/patches/740-avila_loft_mac_platform.patch | |
parent | 0ef986bbe27767ff3937b53a93db84b966569e73 (diff) | |
download | master-187ad058-9ba31e3b0819f306c121e4404873bda4da655203.tar.gz master-187ad058-9ba31e3b0819f306c121e4404873bda4da655203.tar.bz2 master-187ad058-9ba31e3b0819f306c121e4404873bda4da655203.zip |
nuke most of the old ixp4xx patchsets
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11778 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ixp4xx/patches/740-avila_loft_mac_platform.patch')
-rw-r--r-- | target/linux/ixp4xx/patches/740-avila_loft_mac_platform.patch | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/target/linux/ixp4xx/patches/740-avila_loft_mac_platform.patch b/target/linux/ixp4xx/patches/740-avila_loft_mac_platform.patch deleted file mode 100644 index 87d0892ec8..0000000000 --- a/target/linux/ixp4xx/patches/740-avila_loft_mac_platform.patch +++ /dev/null @@ -1,50 +0,0 @@ -Index: linux-2.6.21.7/arch/arm/mach-ixp4xx/avila-setup.c -=================================================================== ---- linux-2.6.21.7.orig/arch/arm/mach-ixp4xx/avila-setup.c -+++ linux-2.6.21.7/arch/arm/mach-ixp4xx/avila-setup.c -@@ -18,6 +18,10 @@ - #include <linux/tty.h> - #include <linux/serial_8250.h> - #include <linux/slab.h> -+#ifdef CONFIG_SENSORS_EEPROM -+#include <linux/i2c.h> -+#include <linux/eeprom.h> -+#endif - - #include <asm/types.h> - #include <asm/setup.h> -@@ -188,9 +192,34 @@ static struct platform_device *avila_dev - - }; - -+#ifdef CONFIG_SENSORS_EEPROM -+static int loft_eeprom_do(struct notifier_block *self, unsigned long event, void *t) -+{ -+ struct eeprom_data *data = t; -+ -+ char macs[12]; -+ -+ /* The MACs are the first 12 bytes in the eeprom at address 0x51 */ -+ if (event == EEPROM_REGISTER && data->client.addr == 0x51) { -+ data->attr->read(&data->client.dev.kobj, macs, 0, 12); -+ memcpy(&plat_mac0.hwaddr, macs, 6); -+ memcpy(&plat_mac1.hwaddr, macs + 6, 6); -+ } -+ -+ return NOTIFY_DONE; -+} -+ -+static struct notifier_block loft_eeprom_notifier = { -+ .notifier_call = loft_eeprom_do -+}; -+#endif -+ - static void __init avila_init(void) - { - ixp4xx_sys_init(); -+#ifdef CONFIG_SENSORS_EEPROM -+ register_eeprom_notifier(&loft_eeprom_notifier); -+#endif - - avila_flash_resource.start = IXP4XX_EXP_BUS_BASE(0); - avila_flash_resource.end = |