down_trylock -> down_try in drivers/char/viotape.c

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 drivers/char/viotape.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -r 960ff58cd378 drivers/char/viotape.c
--- a/drivers/char/viotape.c	Tue May 06 10:17:33 2008 +1000
+++ b/drivers/char/viotape.c	Tue May 06 10:30:32 2008 +1000
@@ -361,7 +361,7 @@ static ssize_t viotap_write(struct file 
 	 * semaphore
 	 */
 	if (noblock) {
-		if (down_trylock(&reqSem)) {
+		if (!down_try(&reqSem)) {
 			ret = -EWOULDBLOCK;
 			goto free_op;
 		}
@@ -451,7 +451,7 @@ static ssize_t viotap_read(struct file *
 	 * semaphore
 	 */
 	if (noblock) {
-		if (down_trylock(&reqSem)) {
+		if (!down_try(&reqSem)) {
 			ret = -EWOULDBLOCK;
 			goto free_op;
 		}
