X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fpowerpc%2Fplatforms%2Fpseries%2Fhvconsole.c;fp=arch%2Fpowerpc%2Fplatforms%2Fpseries%2Fhvconsole.c;h=138e128a3886b851d43c50fe1747aaadd6a57172;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=a72a987f1d4d4364b7b512a62821ab39dc4d7d9f;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/arch/powerpc/platforms/pseries/hvconsole.c b/arch/powerpc/platforms/pseries/hvconsole.c index a72a987f1..138e128a3 100644 --- a/arch/powerpc/platforms/pseries/hvconsole.c +++ b/arch/powerpc/platforms/pseries/hvconsole.c @@ -41,7 +41,7 @@ int hvc_get_chars(uint32_t vtermno, char *buf, int count) unsigned long got; if (plpar_hcall(H_GET_TERM_CHAR, vtermno, 0, 0, 0, &got, - (unsigned long *)buf, (unsigned long *)buf+1) == H_SUCCESS) + (unsigned long *)buf, (unsigned long *)buf+1) == H_Success) return got; return 0; } @@ -62,16 +62,11 @@ int hvc_put_chars(uint32_t vtermno, const char *buf, int count) unsigned long *lbuf = (unsigned long *) buf; long ret; - - /* hcall will ret H_PARAMETER if 'count' exceeds firmware max.*/ - if (count > MAX_VIO_PUT_CHARS) - count = MAX_VIO_PUT_CHARS; - ret = plpar_hcall_norets(H_PUT_TERM_CHAR, vtermno, count, lbuf[0], lbuf[1]); - if (ret == H_SUCCESS) + if (ret == H_Success) return count; - if (ret == H_BUSY) + if (ret == H_Busy) return 0; return -EIO; }