summaryrefslogtreecommitdiff
path: root/packages/linux/ixp4xx-kernel/2.6.15/92-nslu2-maclist.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/linux/ixp4xx-kernel/2.6.15/92-nslu2-maclist.patch')
-rw-r--r--packages/linux/ixp4xx-kernel/2.6.15/92-nslu2-maclist.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/linux/ixp4xx-kernel/2.6.15/92-nslu2-maclist.patch b/packages/linux/ixp4xx-kernel/2.6.15/92-nslu2-maclist.patch
index c8b8a9bede..1b7e611690 100644
--- a/packages/linux/ixp4xx-kernel/2.6.15/92-nslu2-maclist.patch
+++ b/packages/linux/ixp4xx-kernel/2.6.15/92-nslu2-maclist.patch
@@ -36,7 +36,7 @@
+ * When the RedBoot partition is added the MAC address is read from
+ * it.
+ */
-+void flash_add(struct mtd_info *mtd) {
++static void nslu2_flash_add(struct mtd_info *mtd) {
+ if (strcmp(mtd->name, "RedBoot") == 0) {
+ size_t retlen;
+ u_char mac[6];
@@ -55,12 +55,12 @@
+/*
+ * Nothing to do on remove at present.
+ */
-+void flash_remove(struct mtd_info *mtd) {
++static void nslu2_flash_remove(struct mtd_info *mtd) {
+}
+
-+struct mtd_notifier flash_notifier = {
-+ .add = flash_add,
-+ .remove = flash_remove,
++static struct mtd_notifier nslu2_flash_notifier = {
++ .add = nslu2_flash_add,
++ .remove = nslu2_flash_remove,
+};
+
static void __init nslu2_init(void)
@@ -73,7 +73,7 @@
+ /* The flash has an ethernet MAC embedded in it which we need,
+ * that is all this notifier does.
+ */
-+ register_mtd_user(&flash_notifier);
++ register_mtd_user(&nslu2_flash_notifier);
+
ixp4xx_sys_init();