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

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

diff -r 10955bb2f031 drivers/char/snsc.c
--- a/drivers/char/snsc.c	Tue May 06 10:17:33 2008 +1000
+++ b/drivers/char/snsc.c	Tue May 06 10:30:47 2008 +1000
@@ -161,7 +161,7 @@ scdrv_read(struct file *file, char __use
 	struct subch_data_s *sd = (struct subch_data_s *) file->private_data;
 
 	/* try to get control of the read buffer */
-	if (down_trylock(&sd->sd_rbs)) {
+	if (!down_try(&sd->sd_rbs)) {
 		/* somebody else has it now;
 		 * if we're non-blocking, then exit...
 		 */
@@ -253,7 +253,7 @@ scdrv_write(struct file *file, const cha
 	struct subch_data_s *sd = (struct subch_data_s *) file->private_data;
 
 	/* try to get control of the write buffer */
-	if (down_trylock(&sd->sd_wbs)) {
+	if (!down_try(&sd->sd_wbs)) {
 		/* somebody else has it now;
 		 * if we're non-blocking, then exit...
 		 */
