diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-11-16 16:32:55 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-11-16 16:32:55 +0000 |
commit | a4c205011b62f45e116eb26c974fa3bd771ce194 (patch) | |
tree | 123b05cb192785d0fc45c1f0acd0e6f8cba68144 /target/linux/leon/patches-2.6.36/025-greth_bootloader_disable_device_node.patch | |
parent | 974b9f5c9a7322424d5127dbe45236a0658c69ba (diff) | |
download | upstream-a4c205011b62f45e116eb26c974fa3bd771ce194.tar.gz upstream-a4c205011b62f45e116eb26c974fa3bd771ce194.tar.bz2 upstream-a4c205011b62f45e116eb26c974fa3bd771ce194.zip |
move patches to patches-2.6.36
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 34220
Diffstat (limited to 'target/linux/leon/patches-2.6.36/025-greth_bootloader_disable_device_node.patch')
-rw-r--r-- | target/linux/leon/patches-2.6.36/025-greth_bootloader_disable_device_node.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/leon/patches-2.6.36/025-greth_bootloader_disable_device_node.patch b/target/linux/leon/patches-2.6.36/025-greth_bootloader_disable_device_node.patch new file mode 100644 index 0000000000..836bab1fa4 --- /dev/null +++ b/target/linux/leon/patches-2.6.36/025-greth_bootloader_disable_device_node.patch @@ -0,0 +1,25 @@ +From 66d5b37cc6d32291419bf99161e83e2946ea5f25 Mon Sep 17 00:00:00 2001 +From: Daniel Hellstrom <daniel@gaisler.com> +Date: Wed, 1 Dec 2010 12:11:03 +0100 +Subject: [PATCH] GRETH: added option to disable a device node from bootloader. + +Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> +--- + drivers/net/greth.c | 6 ++++++ + 1 files changed, 6 insertions(+), 0 deletions(-) + +--- a/drivers/net/greth.c ++++ b/drivers/net/greth.c +@@ -1428,6 +1428,12 @@ static int __devinit greth_of_probe(stru + int err; + int tmp; + unsigned long timeout; ++ int *ampopts; ++ ++ /* Skip device if used by another OS instance */ ++ ampopts = (int *) of_get_property(ofdev->dev.of_node, "ampopts", NULL); ++ if (ampopts && (*ampopts == 0)) ++ return -EIO; + + dev = alloc_etherdev(sizeof(struct greth_private)); + |