]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] redundant declarations (#12_15)
authorThomas 'Dent' Mirlacher <dent@cosy.sbg.ac.at>
Mon, 15 Jul 2002 05:50:09 +0000 (22:50 -0700)
committerJames Morris <jmorris@intercode.com.au>
Mon, 15 Jul 2002 05:50:09 +0000 (22:50 -0700)
 this patch fixes redundant declarations in 2.5.24
 (same as sent yesterday, but this time automacially splitted
 into several mails)

kernel/platform.c

index 2d786dcb77c30087ef1b3ead4daa309290e4ac01..9848541526a6280626114afbe5227c91f09d5361 100644 (file)
@@ -6,10 +6,6 @@
 #include <linux/module.h>
 #include <linux/errno.h>
 
-static struct platform_t default_platform;
-
-struct platform_t * platform = &default_platform;
-static spinlock_t platform_lock = SPIN_LOCK_UNLOCKED;
 
 void default_reboot(char * cmd)
 {
@@ -36,6 +32,9 @@ static struct platform_t default_platform = {
        idle:           default_idle,
 };
 
+struct platform_t * platform = &default_platform;
+static spinlock_t platform_lock = SPIN_LOCK_UNLOCKED;
+
 /**
  * set_platform_driver - set the platform driver.
  * @pf:        driver to set it to