diff options
Diffstat (limited to 'drivers/s390/cio/device.c')
-rw-r--r-- | drivers/s390/cio/device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index 85908cacc3b8..0590cffe62aa 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * drivers/s390/cio/device.c | 2 | * drivers/s390/cio/device.c |
3 | * bus driver for ccw devices | 3 | * bus driver for ccw devices |
4 | * $Revision: 1.131 $ | 4 | * $Revision: 1.137 $ |
5 | * | 5 | * |
6 | * Copyright (C) 2002 IBM Deutschland Entwicklung GmbH, | 6 | * Copyright (C) 2002 IBM Deutschland Entwicklung GmbH, |
7 | * IBM Corporation | 7 | * IBM Corporation |
@@ -374,7 +374,7 @@ online_store (struct device *dev, struct device_attribute *attr, const char *buf | |||
374 | int i, force, ret; | 374 | int i, force, ret; |
375 | char *tmp; | 375 | char *tmp; |
376 | 376 | ||
377 | if (atomic_compare_and_swap(0, 1, &cdev->private->onoff)) | 377 | if (atomic_cmpxchg(&cdev->private->onoff, 0, 1) != 0) |
378 | return -EAGAIN; | 378 | return -EAGAIN; |
379 | 379 | ||
380 | if (cdev->drv && !try_module_get(cdev->drv->owner)) { | 380 | if (cdev->drv && !try_module_get(cdev->drv->owner)) { |