aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ixp4xx/patches/153-nslu2_mtd_load_mac.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2008-07-12 02:02:58 +0000
committerImre Kaloz <kaloz@openwrt.org>2008-07-12 02:02:58 +0000
commit9ba31e3b0819f306c121e4404873bda4da655203 (patch)
tree6870fa2b5548592459151c5a5d25ceef5e45892d /target/linux/ixp4xx/patches/153-nslu2_mtd_load_mac.patch
parent0ef986bbe27767ff3937b53a93db84b966569e73 (diff)
downloadupstream-9ba31e3b0819f306c121e4404873bda4da655203.tar.gz
upstream-9ba31e3b0819f306c121e4404873bda4da655203.tar.bz2
upstream-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/153-nslu2_mtd_load_mac.patch')
-rw-r--r--target/linux/ixp4xx/patches/153-nslu2_mtd_load_mac.patch56
1 files changed, 0 insertions, 56 deletions
diff --git a/target/linux/ixp4xx/patches/153-nslu2_mtd_load_mac.patch b/target/linux/ixp4xx/patches/153-nslu2_mtd_load_mac.patch
deleted file mode 100644
index a290cf6709..0000000000
--- a/target/linux/ixp4xx/patches/153-nslu2_mtd_load_mac.patch
+++ /dev/null
@@ -1,56 +0,0 @@
----
- arch/arm/mach-ixp4xx/nslu2-setup.c | 27 +++++++++++++++++++++++++++
- 1 file changed, 27 insertions(+)
-
-Index: linux-2.6.21.7/arch/arm/mach-ixp4xx/nslu2-setup.c
-===================================================================
---- linux-2.6.21.7.orig/arch/arm/mach-ixp4xx/nslu2-setup.c
-+++ linux-2.6.21.7/arch/arm/mach-ixp4xx/nslu2-setup.c
-@@ -18,6 +18,7 @@
- #include <linux/serial.h>
- #include <linux/serial_8250.h>
- #include <linux/leds.h>
-+#include <linux/mtd/mtd.h>
-
- #include <asm/mach-types.h>
- #include <asm/mach/arch.h>
-@@ -182,6 +183,30 @@ static struct platform_device *nslu2_dev
- &nslu2_npe_ucode,
- };
-
-+static void nslu2_flash_add(struct mtd_info *mtd)
-+{
-+ if (strcmp(mtd->name, "RedBoot") == 0) {
-+ size_t retlen;
-+ u_char mac[6];
-+
-+ if (mtd->read(mtd, 0x3FFB0, 6, &retlen, mac) == 0 && retlen == 6) {
-+ printk(KERN_INFO "nslu2 mac: %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n",
-+ mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
-+ memcpy(plat_mac0.hwaddr, mac, 6);
-+ } else {
-+ printk(KERN_ERR "nslu2 mac: read failed\n");
-+ }
-+ }
-+}
-+
-+static void nslu2_flash_remove(struct mtd_info *mtd) {
-+}
-+
-+static struct mtd_notifier nslu2_flash_notifier = {
-+ .add = nslu2_flash_add,
-+ .remove = nslu2_flash_remove,
-+};
-+
- static void nslu2_power_off(void)
- {
- /* This causes the box to drop the power and go dead. */
-@@ -224,6 +249,8 @@ static void __init nslu2_init(void)
- (void)platform_device_register(&nslu2_uart);
-
- platform_add_devices(nslu2_devices, ARRAY_SIZE(nslu2_devices));
-+
-+ register_mtd_user(&nslu2_flash_notifier);
- }
-
- MACHINE_START(NSLU2, "Linksys NSLU2")