diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-21 11:16:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-21 11:16:14 -0400 |
commit | 81ca98036985559c49480007371af94aa6e85dc0 (patch) | |
tree | 1d4f400a40b573d1405ccd0a7d869e9859a30408 /arch | |
parent | 9a41fe3415bbef2c0c08ac232dc3a17add0dee58 (diff) | |
parent | 4db25d496c09fdf094d52d11a90ae51f9ee473c6 (diff) |
Merge branch 'sh/for-2.6.30' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* 'sh/for-2.6.30' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6:
sh: Fix mmap2 for handling differing PAGE_SIZEs.
sh: sh7723: Don't default enable the RTC clock.
sh: sh7722: Don't default enable the RTC clock.
rtc: rtc-sh: clock framework support.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7722.c | 1 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7723.c | 1 | ||||
-rw-r--r-- | arch/sh/kernel/sys_sh.c | 9 |
3 files changed, 9 insertions, 2 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c index 0e5d204bc792..406747f07dc0 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c | |||
@@ -256,7 +256,6 @@ static int __init sh7722_devices_setup(void) | |||
256 | { | 256 | { |
257 | clk_always_enable("uram0"); /* URAM */ | 257 | clk_always_enable("uram0"); /* URAM */ |
258 | clk_always_enable("xymem0"); /* XYMEM */ | 258 | clk_always_enable("xymem0"); /* XYMEM */ |
259 | clk_always_enable("rtc0"); /* RTC */ | ||
260 | clk_always_enable("veu0"); /* VEU */ | 259 | clk_always_enable("veu0"); /* VEU */ |
261 | clk_always_enable("vpu0"); /* VPU */ | 260 | clk_always_enable("vpu0"); /* VPU */ |
262 | clk_always_enable("jpu0"); /* JPU */ | 261 | clk_always_enable("jpu0"); /* JPU */ |
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c index 5338dacbcfba..a800466b938c 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c | |||
@@ -267,7 +267,6 @@ static struct platform_device *sh7723_devices[] __initdata = { | |||
267 | static int __init sh7723_devices_setup(void) | 267 | static int __init sh7723_devices_setup(void) |
268 | { | 268 | { |
269 | clk_always_enable("meram0"); /* MERAM */ | 269 | clk_always_enable("meram0"); /* MERAM */ |
270 | clk_always_enable("rtc0"); /* RTC */ | ||
271 | clk_always_enable("veu1"); /* VEU2H1 */ | 270 | clk_always_enable("veu1"); /* VEU2H1 */ |
272 | clk_always_enable("veu0"); /* VEU2H0 */ | 271 | clk_always_enable("veu0"); /* VEU2H0 */ |
273 | clk_always_enable("vpu0"); /* VPU */ | 272 | clk_always_enable("vpu0"); /* VPU */ |
diff --git a/arch/sh/kernel/sys_sh.c b/arch/sh/kernel/sys_sh.c index 58dfc02c7af1..e3a7e36639ef 100644 --- a/arch/sh/kernel/sys_sh.c +++ b/arch/sh/kernel/sys_sh.c | |||
@@ -63,6 +63,15 @@ asmlinkage long sys_mmap2(unsigned long addr, unsigned long len, | |||
63 | unsigned long prot, unsigned long flags, | 63 | unsigned long prot, unsigned long flags, |
64 | unsigned long fd, unsigned long pgoff) | 64 | unsigned long fd, unsigned long pgoff) |
65 | { | 65 | { |
66 | /* | ||
67 | * The shift for mmap2 is constant, regardless of PAGE_SIZE | ||
68 | * setting. | ||
69 | */ | ||
70 | if (pgoff & ((1 << (PAGE_SHIFT - 12)) - 1)) | ||
71 | return -EINVAL; | ||
72 | |||
73 | pgoff >>= PAGE_SHIFT - 12; | ||
74 | |||
66 | return do_mmap2(addr, len, prot, flags, fd, pgoff); | 75 | return do_mmap2(addr, len, prot, flags, fd, pgoff); |
67 | } | 76 | } |
68 | 77 | ||