aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/ppc/syslib/ocp.c2
-rw-r--r--include/asm-powerpc/rwsem.h4
-rw-r--r--include/asm-ppc/ocp.h2
3 files changed, 6 insertions, 2 deletions
diff --git a/arch/ppc/syslib/ocp.c b/arch/ppc/syslib/ocp.c
index 491fe9a57229..3f5be2c5ce99 100644
--- a/arch/ppc/syslib/ocp.c
+++ b/arch/ppc/syslib/ocp.c
@@ -44,11 +44,11 @@
44#include <linux/pm.h> 44#include <linux/pm.h>
45#include <linux/bootmem.h> 45#include <linux/bootmem.h>
46#include <linux/device.h> 46#include <linux/device.h>
47#include <linux/rwsem.h>
47 48
48#include <asm/io.h> 49#include <asm/io.h>
49#include <asm/ocp.h> 50#include <asm/ocp.h>
50#include <asm/errno.h> 51#include <asm/errno.h>
51#include <asm/rwsem.h>
52#include <asm/semaphore.h> 52#include <asm/semaphore.h>
53 53
54//#define DBG(x) printk x 54//#define DBG(x) printk x
diff --git a/include/asm-powerpc/rwsem.h b/include/asm-powerpc/rwsem.h
index e929145e1e46..cefc14728cc5 100644
--- a/include/asm-powerpc/rwsem.h
+++ b/include/asm-powerpc/rwsem.h
@@ -1,6 +1,10 @@
1#ifndef _ASM_POWERPC_RWSEM_H 1#ifndef _ASM_POWERPC_RWSEM_H
2#define _ASM_POWERPC_RWSEM_H 2#define _ASM_POWERPC_RWSEM_H
3 3
4#ifndef _LINUX_RWSEM_H
5#error "Please don't include <asm/rwsem.h> directly, use <linux/rwsem.h> instead."
6#endif
7
4#ifdef __KERNEL__ 8#ifdef __KERNEL__
5 9
6/* 10/*
diff --git a/include/asm-ppc/ocp.h b/include/asm-ppc/ocp.h
index 16dbc7d17450..1379a4f76de3 100644
--- a/include/asm-ppc/ocp.h
+++ b/include/asm-ppc/ocp.h
@@ -27,10 +27,10 @@
27#include <linux/init.h> 27#include <linux/init.h>
28#include <linux/list.h> 28#include <linux/list.h>
29#include <linux/device.h> 29#include <linux/device.h>
30#include <linux/rwsem.h>
30 31
31#include <asm/mmu.h> 32#include <asm/mmu.h>
32#include <asm/ocp_ids.h> 33#include <asm/ocp_ids.h>
33#include <asm/rwsem.h>
34#include <asm/semaphore.h> 34#include <asm/semaphore.h>
35 35
36#ifdef CONFIG_PPC_OCP 36#ifdef CONFIG_PPC_OCP