]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Blackfin: convert simple headers to asm-generic
authorMike Frysinger <vapier@gentoo.org>
Sat, 13 Jun 2009 14:54:56 +0000 (10:54 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 19 Jun 2009 01:41:13 +0000 (21:41 -0400)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
20 files changed:
arch/blackfin/include/asm/auxvec.h
arch/blackfin/include/asm/bugs.h
arch/blackfin/include/asm/cputime.h
arch/blackfin/include/asm/current.h
arch/blackfin/include/asm/device.h
arch/blackfin/include/asm/emergency-restart.h
arch/blackfin/include/asm/errno.h
arch/blackfin/include/asm/fb.h
arch/blackfin/include/asm/futex.h
arch/blackfin/include/asm/hw_irq.h
arch/blackfin/include/asm/kmap_types.h
arch/blackfin/include/asm/local.h
arch/blackfin/include/asm/param.h
arch/blackfin/include/asm/percpu.h
arch/blackfin/include/asm/pgalloc.h
arch/blackfin/include/asm/resource.h
arch/blackfin/include/asm/serial.h
arch/blackfin/include/asm/setup.h
arch/blackfin/include/asm/statfs.h
arch/blackfin/include/asm/topology.h

index 215506cd87b75ebba638db7d87109ec4f5d30da0..41fa68b71287ca4aedcb319df3d722a955ad7b52 100644 (file)
@@ -1,4 +1 @@
-#ifndef __ASMBFIN_AUXVEC_H
-#define __ASMBFIN_AUXVEC_H
-
-#endif
+#include <asm-generic/auxvec.h>
index 9093c9c1fb81af02ea502b149cca24817cb49fa4..61791e1ad9f55cba48fafdf065e6fd05d9e95600 100644 (file)
@@ -1,16 +1 @@
-/*
- *  include/asm-blackfin/bugs.h
- *
- *  Copyright (C) 1994  Linus Torvalds
- */
-
-/*
- * This is included by init/main.c to check for architecture-dependent bugs.
- *
- * Needs:
- *     void check_bugs(void);
- */
-
-static void check_bugs(void)
-{
-}
+#include <asm-generic/bugs.h>
index 2b19705f9885107dbd041ca6b536af1f5e915716..6d68ad7e0ea3f41f0f5eb4eaf9895b77e87c659d 100644 (file)
@@ -1,6 +1 @@
-#ifndef __BLACKFIN_CPUTIME_H
-#define __BLACKFIN_CPUTIME_H
-
 #include <asm-generic/cputime.h>
-
-#endif                         /* __BLACKFIN_CPUTIME_H */
index 31918d29122c9f0e1b70f9a4e8660a979180c906..4c51401b5537c20d6f37923cfaa2e564bc54de4d 100644 (file)
@@ -1,23 +1 @@
-#ifndef _BLACKFIN_CURRENT_H
-#define _BLACKFIN_CURRENT_H
-/*
- *     current.h
- *     (C) Copyright 2000, Lineo, David McCullough <davidm@lineo.com>
- *
- *     rather than dedicate a register (as the m68k source does), we
- *     just keep a global,  we should probably just change it all to be
- *     current and lose _current_task.
- */
-#include <linux/thread_info.h>
-
-struct task_struct;
-
-static inline struct task_struct *get_current(void) __attribute__ ((__const__));
-static inline struct task_struct *get_current(void)
-{
-       return (current_thread_info()->task);
-}
-
-#define        current (get_current())
-
-#endif                         /* _BLACKFIN_CURRENT_H */
+#include <asm-generic/current.h>
index d8f9872b0e2dc3587a9e658adc957f093b7906fb..f0a4c256403b290db050d936d1e8eb7e40d34d7b 100644 (file)
@@ -1,7 +1 @@
-/*
- * Arch specific extensions to struct device
- *
- * This file is released under the GPLv2
- */
 #include <asm-generic/device.h>
-
index 27f6c785d1030a474fe9cc5cb62e5de8afc465b2..3711bd9d50bda1e6b835895be2fc56b3f92327a6 100644 (file)
@@ -1,6 +1 @@
-#ifndef _ASM_EMERGENCY_RESTART_H
-#define _ASM_EMERGENCY_RESTART_H
-
 #include <asm-generic/emergency-restart.h>
-
-#endif                         /* _ASM_EMERGENCY_RESTART_H */
index 164e4f39bb5756e43b8a5920d9a0c80a7a42ec87..4c82b503d92ffabcc6eb558a50ae5d6dba8a5f7c 100644 (file)
@@ -1,6 +1 @@
-#ifndef _BFIN_ERRNO_H
-#define _BFIN_ERRNO_H
-
-#include<asm-generic/errno.h>
-
-#endif                         /* _BFIN_ERRNO_H */
+#include <asm-generic/errno.h>
index c7df3803099200c9e3a9a6721138d0fe8b26ae92..3a4988e8df456702e4ce51fc7540fc6baac50da1 100644 (file)
@@ -1,12 +1 @@
-#ifndef _ASM_FB_H_
-#define _ASM_FB_H_
-#include <linux/fb.h>
-
-#define fb_pgprotect(...) do {} while (0)
-
-static inline int fb_is_primary_device(struct fb_info *info)
-{
-       return 0;
-}
-
-#endif /* _ASM_FB_H_ */
+#include <asm-generic/fb.h>
index 6a332a9f099c2eafbf78ee5f79056a349d41a775..0b745828f42bc9be46ded49786b887c9ad35df2d 100644 (file)
@@ -1,6 +1 @@
-#ifndef _ASM_FUTEX_H
-#define _ASM_FUTEX_H
-
 #include <asm-generic/futex.h>
-
-#endif
index 5b51eaec012c9ab772a8efbd679be4381a57fb8a..1f5ef7da0045428c6afc4bbf1793a918024ff089 100644 (file)
@@ -1,6 +1 @@
-#ifndef __ASM_BFIN_HW_IRQ_H
-#define __ASM_BFIN_HW_IRQ_H
-
-/* Dummy include. */
-
-#endif
+#include <asm-generic/hw_irq.h>
index 0a88622339ee363d0663d53390a2106e26e51038..3575c64af42a99c41bb2cba5515583ec70cde35c 100644 (file)
@@ -1,6 +1 @@
-#ifndef _ASM_KMAP_TYPES_H
-#define _ASM_KMAP_TYPES_H
-
 #include <asm-generic/kmap_types.h>
-
-#endif
index 75afffbc64216b0e5e7998bc1e88c1372098bad8..c11c530f74d02877738b3b6edb5d59102a9bf01c 100644 (file)
@@ -1,6 +1 @@
-#ifndef __BLACKFIN_LOCAL_H
-#define __BLACKFIN_LOCAL_H
-
 #include <asm-generic/local.h>
-
-#endif                         /* __BLACKFIN_LOCAL_H */
index 41564a6347f8a4224417ce7516732b4e5e8b67da..965d45427975907ae67efb45e20c8f500fd1ad3a 100644 (file)
@@ -1,22 +1 @@
-#ifndef _BLACKFIN_PARAM_H
-#define _BLACKFIN_PARAM_H
-
-#ifdef __KERNEL__
-#define HZ             CONFIG_HZ
-#define        USER_HZ         100
-#define        CLOCKS_PER_SEC  (USER_HZ)
-#endif
-
-#ifndef HZ
-#define HZ 100
-#endif
-
-#define EXEC_PAGESIZE  4096
-
-#ifndef NOGROUP
-#define NOGROUP                (-1)
-#endif
-
-#define MAXHOSTNAMELEN 64      /* max length of hostname */
-
-#endif                         /* _BLACKFIN_PARAM_H */
+#include <asm-generic/param.h>
index c94c7bc88c71865312352e7e32e2fd6ea0f4ae50..06a959d67234789754963cbb40d1f7e6e4c25188 100644 (file)
@@ -1,6 +1 @@
-#ifndef __ARCH_BLACKFIN_PERCPU__
-#define __ARCH_BLACKFIN_PERCPU__
-
 #include <asm-generic/percpu.h>
-
-#endif /* __ARCH_BLACKFIN_PERCPU__ */
index c686e0542fd03174d1087d171aae470e807d2a36..f261cb7dda06dbe3ba3b2fac5fa480555a83df5c 100644 (file)
@@ -1,8 +1 @@
-#ifndef _BLACKFIN_PGALLOC_H
-#define _BLACKFIN_PGALLOC_H
-
-#include <asm/setup.h>
-
-#define check_pgt_cache()      do { } while (0)
-
-#endif                         /* _BLACKFIN_PGALLOC_H */
+#include <asm-generic/pgalloc.h>
index 091355ab3495d03fc0fcb831e7eff7db5500119b..04bc4db8921b257e1bab8fbc1316222c7be9fdf5 100644 (file)
@@ -1,6 +1 @@
-#ifndef _BFIN_RESOURCE_H
-#define _BFIN_RESOURCE_H
-
 #include <asm-generic/resource.h>
-
-#endif                         /* _BFIN_RESOURCE_H */
index 3a47606c858b890a8b0db00678d7536c1f2b6a2a..94a4a12e3bf2c8ccbc54066c9af77a4058af3b22 100644 (file)
@@ -1,6 +1,2 @@
-/*
- * include/asm-blackfin/serial.h
- */
-
+#include <asm-generic/serial.h>
 #define SERIAL_EXTRA_IRQ_FLAGS IRQF_TRIGGER_HIGH
-#define BASE_BAUD (1843200 / 16)
index 01c8c6cbe6fccb37350f3b79da30de43ee45672c..552df83f1a49627ddd1d49e1ba982c743a5bfefe 100644 (file)
@@ -1,17 +1 @@
-/*
-** asm/setup.h -- Definition of the Linux/bfin setup information
-**
-** This file is subject to the terms and conditions of the GNU General Public
-** License.  See the file COPYING in the main directory of this archive
-** for more details.
-**
-** Copyright Lineo, Inc 2001          Tony Kou
-**
-*/
-
-#ifndef _BFIN_SETUP_H
-#define _BFIN_SETUP_H
-
-#define COMMAND_LINE_SIZE      512
-
-#endif                         /* _BFIN_SETUP_H */
+#include <asm-generic/setup.h>
index 350672091ba38c0c6476820da507b183599a3b09..0b91fe198c2014fcd38ee24fa929e5cecfe0b8f0 100644 (file)
@@ -1,6 +1 @@
-#ifndef _BFIN_STATFS_H
-#define _BFIN_STATFS_H
-
 #include <asm-generic/statfs.h>
-
-#endif                         /* _BFIN_STATFS_H */
index acee2398789730667c8e49625397da7b6399491f..5428f333a02c701e9faba668173dda95181544db 100644 (file)
@@ -1,6 +1 @@
-#ifndef _ASM_BLACKFIN_TOPOLOGY_H
-#define _ASM_BLACKFIN_TOPOLOGY_H
-
 #include <asm-generic/topology.h>
-
-#endif                         /* _ASM_BLACKFIN_TOPOLOGY_H */