aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/patches-3.8/040-MIPS-ath79-use-dynamically-allocated-watchdog-device.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-03-04 12:08:28 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-03-04 12:08:28 +0000
commit7de535d0a3b056d1eeb4da5f31e6559bca7fc60f (patch)
treef99a6edbfc763faa39b0ce287fa93f5cd4d57608 /target/linux/ar71xx/patches-3.8/040-MIPS-ath79-use-dynamically-allocated-watchdog-device.patch
parent0d7167f0dbdb887e23ccc91305fc1e20d985d8db (diff)
downloadupstream-7de535d0a3b056d1eeb4da5f31e6559bca7fc60f.tar.gz
upstream-7de535d0a3b056d1eeb4da5f31e6559bca7fc60f.tar.bz2
upstream-7de535d0a3b056d1eeb4da5f31e6559bca7fc60f.zip
ar71xx: add backported watchdog patches
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35879 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/patches-3.8/040-MIPS-ath79-use-dynamically-allocated-watchdog-device.patch')
-rw-r--r--target/linux/ar71xx/patches-3.8/040-MIPS-ath79-use-dynamically-allocated-watchdog-device.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/target/linux/ar71xx/patches-3.8/040-MIPS-ath79-use-dynamically-allocated-watchdog-device.patch b/target/linux/ar71xx/patches-3.8/040-MIPS-ath79-use-dynamically-allocated-watchdog-device.patch
new file mode 100644
index 0000000000..082195f31a
--- /dev/null
+++ b/target/linux/ar71xx/patches-3.8/040-MIPS-ath79-use-dynamically-allocated-watchdog-device.patch
@@ -0,0 +1,35 @@
+From 5e25d5207d21e65b5a2e58b64aba6804653e95b8 Mon Sep 17 00:00:00 2001
+From: Gabor Juhos <juhosg@openwrt.org>
+Date: Thu, 27 Dec 2012 15:38:25 +0100
+Subject: [PATCH] MIPS: ath79: use dynamically allocated watchdog device
+
+commit 0f2ad9ed7c6fecb008372e8a709595a2a21059aa upstream.
+
+Remove the static watchdog device variable and use
+the 'platform_device_register_simple' helper to
+allocate and register the device in one step.
+
+This allows us to save a few bytes in the kernel image.
+
+Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
+Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
+---
+ arch/mips/ath79/dev-common.c | 7 +------
+ 1 file changed, 1 insertion(+), 6 deletions(-)
+
+--- a/arch/mips/ath79/dev-common.c
++++ b/arch/mips/ath79/dev-common.c
+@@ -102,12 +102,7 @@ void __init ath79_register_uart(void)
+ }
+ }
+
+-static struct platform_device ath79_wdt_device = {
+- .name = "ath79-wdt",
+- .id = -1,
+-};
+-
+ void __init ath79_register_wdt(void)
+ {
+- platform_device_register(&ath79_wdt_device);
++ platform_device_register_simple("ath79-wdt", -1, NULL, 0);
+ }