diff options
Diffstat (limited to 'arch/cris/arch-v10')
-rw-r--r-- | arch/cris/arch-v10/drivers/pcf8563.c | 4 | ||||
-rw-r--r-- | arch/cris/arch-v10/kernel/ptrace.c | 21 |
2 files changed, 4 insertions, 21 deletions
diff --git a/arch/cris/arch-v10/drivers/pcf8563.c b/arch/cris/arch-v10/drivers/pcf8563.c index d47cfbf98d6e..1de0026bb94e 100644 --- a/arch/cris/arch-v10/drivers/pcf8563.c +++ b/arch/cris/arch-v10/drivers/pcf8563.c | |||
@@ -180,9 +180,7 @@ err: | |||
180 | void __exit | 180 | void __exit |
181 | pcf8563_exit(void) | 181 | pcf8563_exit(void) |
182 | { | 182 | { |
183 | if (unregister_chrdev(PCF8563_MAJOR, DEVICE_NAME) < 0) { | 183 | unregister_chrdev(PCF8563_MAJOR, DEVICE_NAME); |
184 | printk(KERN_INFO "%s: Unable to unregister device.\n", PCF8563_NAME); | ||
185 | } | ||
186 | } | 184 | } |
187 | 185 | ||
188 | /* | 186 | /* |
diff --git a/arch/cris/arch-v10/kernel/ptrace.c b/arch/cris/arch-v10/kernel/ptrace.c index fd2129a04586..f4f9db698b44 100644 --- a/arch/cris/arch-v10/kernel/ptrace.c +++ b/arch/cris/arch-v10/kernel/ptrace.c | |||
@@ -83,19 +83,9 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
83 | switch (request) { | 83 | switch (request) { |
84 | /* Read word at location address. */ | 84 | /* Read word at location address. */ |
85 | case PTRACE_PEEKTEXT: | 85 | case PTRACE_PEEKTEXT: |
86 | case PTRACE_PEEKDATA: { | 86 | case PTRACE_PEEKDATA: |
87 | unsigned long tmp; | 87 | ret = generic_ptrace_peekdata(child, addr, data); |
88 | int copied; | ||
89 | |||
90 | copied = access_process_vm(child, addr, &tmp, sizeof(tmp), 0); | ||
91 | ret = -EIO; | ||
92 | |||
93 | if (copied != sizeof(tmp)) | ||
94 | break; | ||
95 | |||
96 | ret = put_user(tmp,datap); | ||
97 | break; | 88 | break; |
98 | } | ||
99 | 89 | ||
100 | /* Read the word at location address in the USER area. */ | 90 | /* Read the word at location address in the USER area. */ |
101 | case PTRACE_PEEKUSR: { | 91 | case PTRACE_PEEKUSR: { |
@@ -113,12 +103,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
113 | /* Write the word at location address. */ | 103 | /* Write the word at location address. */ |
114 | case PTRACE_POKETEXT: | 104 | case PTRACE_POKETEXT: |
115 | case PTRACE_POKEDATA: | 105 | case PTRACE_POKEDATA: |
116 | ret = 0; | 106 | ret = generic_ptrace_pokedata(child, addr, data); |
117 | |||
118 | if (access_process_vm(child, addr, &data, sizeof(data), 1) == sizeof(data)) | ||
119 | break; | ||
120 | |||
121 | ret = -EIO; | ||
122 | break; | 107 | break; |
123 | 108 | ||
124 | /* Write the word at location address in the USER area. */ | 109 | /* Write the word at location address in the USER area. */ |