summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/scanlog.c
diff options
context:
space:
mode:
authorJohn Rose <johnrose@austin.ibm.com>2006-06-15 17:32:15 -0500
committerPaul Mackerras <paulus@samba.org>2006-06-21 15:01:27 +1000
commit7932f0b82ff1db35a5ed8d5825d51cafe15fa6db (patch)
treedea2b59f7a485a858187d57f61334da9330e6d25 /arch/powerpc/platforms/pseries/scanlog.c
parent2ba73b1d6fa62ddaa235c3c5fdf6095cae6ba748 (diff)
downloadlinux-7932f0b82ff1db35a5ed8d5825d51cafe15fa6db.tar.gz
linux-7932f0b82ff1db35a5ed8d5825d51cafe15fa6db.tar.bz2
linux-7932f0b82ff1db35a5ed8d5825d51cafe15fa6db.zip
[POWERPC] RTAS delay, fix module build breaks
Export both news RTAS delay functions, and change the scanlog module to use the new delay functions. Signed-off-by: John Rose <johnrose@austin.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries/scanlog.c')
-rw-r--r--arch/powerpc/platforms/pseries/scanlog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/pseries/scanlog.c b/arch/powerpc/platforms/pseries/scanlog.c
index 50643496eb63..77a5bb1d9c30 100644
--- a/arch/powerpc/platforms/pseries/scanlog.c
+++ b/arch/powerpc/platforms/pseries/scanlog.c
@@ -107,9 +107,9 @@ static ssize_t scanlog_read(struct file *file, char __user *buf,
/* Break to sleep default time */
break;
default:
- if (status > 9900 && status <= 9905) {
- wait_time = rtas_extended_busy_delay_time(status);
- } else {
+ /* Assume extended busy */
+ wait_time = rtas_busy_delay_time(status);
+ if (!wait_time) {
printk(KERN_ERR "scanlog: unknown error from rtas: %d\n", status);
return -EIO;
}