diff options
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/boards/landisk/gio.c | 10 | ||||
-rw-r--r-- | arch/sh/configs/landisk_defconfig | 1 | ||||
-rw-r--r-- | arch/sh/configs/lboxre2_defconfig | 1 | ||||
-rw-r--r-- | arch/sh/configs/se7705_defconfig | 1 | ||||
-rw-r--r-- | arch/sh/configs/se7712_defconfig | 1 | ||||
-rw-r--r-- | arch/sh/configs/se7750_defconfig | 1 | ||||
-rw-r--r-- | arch/sh/kernel/vmlinux_32.lds.S | 1 | ||||
-rw-r--r-- | arch/sh/kernel/vmlinux_64.lds.S | 1 |
8 files changed, 7 insertions, 10 deletions
diff --git a/arch/sh/boards/landisk/gio.c b/arch/sh/boards/landisk/gio.c index 17025080db35..0c15b0a50b99 100644 --- a/arch/sh/boards/landisk/gio.c +++ b/arch/sh/boards/landisk/gio.c | |||
@@ -14,6 +14,7 @@ | |||
14 | */ | 14 | */ |
15 | #include <linux/module.h> | 15 | #include <linux/module.h> |
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/smp_lock.h> | ||
17 | #include <linux/kdev_t.h> | 18 | #include <linux/kdev_t.h> |
18 | #include <linux/cdev.h> | 19 | #include <linux/cdev.h> |
19 | #include <linux/fs.h> | 20 | #include <linux/fs.h> |
@@ -32,17 +33,20 @@ static int openCnt; | |||
32 | static int gio_open(struct inode *inode, struct file *filp) | 33 | static int gio_open(struct inode *inode, struct file *filp) |
33 | { | 34 | { |
34 | int minor; | 35 | int minor; |
36 | int ret = -ENOENT; | ||
35 | 37 | ||
38 | lock_kernel(); | ||
36 | minor = MINOR(inode->i_rdev); | 39 | minor = MINOR(inode->i_rdev); |
37 | if (minor < DEVCOUNT) { | 40 | if (minor < DEVCOUNT) { |
38 | if (openCnt > 0) { | 41 | if (openCnt > 0) { |
39 | return -EALREADY; | 42 | ret = -EALREADY; |
40 | } else { | 43 | } else { |
41 | openCnt++; | 44 | openCnt++; |
42 | return 0; | 45 | ret = 0; |
43 | } | 46 | } |
44 | } | 47 | } |
45 | return -ENOENT; | 48 | unlock_kernel(); |
49 | return ret; | ||
46 | } | 50 | } |
47 | 51 | ||
48 | static int gio_close(struct inode *inode, struct file *filp) | 52 | static int gio_close(struct inode *inode, struct file *filp) |
diff --git a/arch/sh/configs/landisk_defconfig b/arch/sh/configs/landisk_defconfig index f52db125432f..38f934ab50c7 100644 --- a/arch/sh/configs/landisk_defconfig +++ b/arch/sh/configs/landisk_defconfig | |||
@@ -226,7 +226,6 @@ CONFIG_CPU_HAS_PTEA=y | |||
226 | # | 226 | # |
227 | CONFIG_SH_TMU=y | 227 | CONFIG_SH_TMU=y |
228 | CONFIG_SH_TIMER_IRQ=16 | 228 | CONFIG_SH_TIMER_IRQ=16 |
229 | # CONFIG_NO_IDLE_HZ is not set | ||
230 | CONFIG_SH_PCLK_FREQ=33333333 | 229 | CONFIG_SH_PCLK_FREQ=33333333 |
231 | 230 | ||
232 | # | 231 | # |
diff --git a/arch/sh/configs/lboxre2_defconfig b/arch/sh/configs/lboxre2_defconfig index 9fa66d92a4e7..b68b6cdbb78f 100644 --- a/arch/sh/configs/lboxre2_defconfig +++ b/arch/sh/configs/lboxre2_defconfig | |||
@@ -231,7 +231,6 @@ CONFIG_CPU_HAS_PTEA=y | |||
231 | # | 231 | # |
232 | CONFIG_SH_TMU=y | 232 | CONFIG_SH_TMU=y |
233 | CONFIG_SH_TIMER_IRQ=16 | 233 | CONFIG_SH_TIMER_IRQ=16 |
234 | # CONFIG_NO_IDLE_HZ is not set | ||
235 | CONFIG_SH_PCLK_FREQ=40000000 | 234 | CONFIG_SH_PCLK_FREQ=40000000 |
236 | 235 | ||
237 | # | 236 | # |
diff --git a/arch/sh/configs/se7705_defconfig b/arch/sh/configs/se7705_defconfig index 84717d854867..490dcbc2ce33 100644 --- a/arch/sh/configs/se7705_defconfig +++ b/arch/sh/configs/se7705_defconfig | |||
@@ -239,7 +239,6 @@ CONFIG_CPU_HAS_SR_RB=y | |||
239 | # | 239 | # |
240 | CONFIG_SH_TMU=y | 240 | CONFIG_SH_TMU=y |
241 | CONFIG_SH_TIMER_IRQ=16 | 241 | CONFIG_SH_TIMER_IRQ=16 |
242 | # CONFIG_NO_IDLE_HZ is not set | ||
243 | CONFIG_SH_PCLK_FREQ=33333333 | 242 | CONFIG_SH_PCLK_FREQ=33333333 |
244 | 243 | ||
245 | # | 244 | # |
diff --git a/arch/sh/configs/se7712_defconfig b/arch/sh/configs/se7712_defconfig index 240a1cef69aa..2dd83af988f0 100644 --- a/arch/sh/configs/se7712_defconfig +++ b/arch/sh/configs/se7712_defconfig | |||
@@ -236,7 +236,6 @@ CONFIG_CPU_HAS_SR_RB=y | |||
236 | # | 236 | # |
237 | CONFIG_SH_TMU=y | 237 | CONFIG_SH_TMU=y |
238 | CONFIG_SH_TIMER_IRQ=16 | 238 | CONFIG_SH_TIMER_IRQ=16 |
239 | # CONFIG_NO_IDLE_HZ is not set | ||
240 | CONFIG_SH_PCLK_FREQ=66666666 | 239 | CONFIG_SH_PCLK_FREQ=66666666 |
241 | 240 | ||
242 | # | 241 | # |
diff --git a/arch/sh/configs/se7750_defconfig b/arch/sh/configs/se7750_defconfig index c60b6fd4fc42..167786f9a9bd 100644 --- a/arch/sh/configs/se7750_defconfig +++ b/arch/sh/configs/se7750_defconfig | |||
@@ -235,7 +235,6 @@ CONFIG_CPU_HAS_PTEA=y | |||
235 | # | 235 | # |
236 | CONFIG_SH_TMU=y | 236 | CONFIG_SH_TMU=y |
237 | CONFIG_SH_TIMER_IRQ=16 | 237 | CONFIG_SH_TIMER_IRQ=16 |
238 | # CONFIG_NO_IDLE_HZ is not set | ||
239 | CONFIG_SH_PCLK_FREQ=33333333 | 238 | CONFIG_SH_PCLK_FREQ=33333333 |
240 | 239 | ||
241 | # | 240 | # |
diff --git a/arch/sh/kernel/vmlinux_32.lds.S b/arch/sh/kernel/vmlinux_32.lds.S index c7113786ecd4..7b4b82bd1156 100644 --- a/arch/sh/kernel/vmlinux_32.lds.S +++ b/arch/sh/kernel/vmlinux_32.lds.S | |||
@@ -44,7 +44,6 @@ SECTIONS | |||
44 | 44 | ||
45 | _etext = .; /* End of text section */ | 45 | _etext = .; /* End of text section */ |
46 | 46 | ||
47 | BUG_TABLE | ||
48 | NOTES | 47 | NOTES |
49 | RO_DATA(PAGE_SIZE) | 48 | RO_DATA(PAGE_SIZE) |
50 | 49 | ||
diff --git a/arch/sh/kernel/vmlinux_64.lds.S b/arch/sh/kernel/vmlinux_64.lds.S index d1e177009a41..33fa46451406 100644 --- a/arch/sh/kernel/vmlinux_64.lds.S +++ b/arch/sh/kernel/vmlinux_64.lds.S | |||
@@ -65,7 +65,6 @@ SECTIONS | |||
65 | 65 | ||
66 | _etext = .; /* End of text section */ | 66 | _etext = .; /* End of text section */ |
67 | 67 | ||
68 | BUG_TABLE | ||
69 | NOTES | 68 | NOTES |
70 | RO_DATA(PAGE_SIZE) | 69 | RO_DATA(PAGE_SIZE) |
71 | 70 | ||