summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorEmilio G. Cota <cota@braap.org>2010-11-12 11:14:27 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-16 11:40:14 -0800
commitdb6d8fc5596ef866e64e9a7eef96bacdc6e51e11 (patch)
tree37bf6af13f8122d6c4405b6def9fa939f05f9558 /drivers/staging
parentc0779fd01df76b3097cc77e3a404e8bb067e5628 (diff)
downloadtalos-obmc-linux-db6d8fc5596ef866e64e9a7eef96bacdc6e51e11.tar.gz
talos-obmc-linux-db6d8fc5596ef866e64e9a7eef96bacdc6e51e11.zip
staging: vme: fix bogus clearing of the bus number in vme_free_bus_num
Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/vme/vme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vme/vme.c b/drivers/staging/vme/vme.c
index 47e9d5ccf784..d9fc8644376e 100644
--- a/drivers/staging/vme/vme.c
+++ b/drivers/staging/vme/vme.c
@@ -1326,7 +1326,7 @@ static int vme_alloc_bus_num(void)
static void vme_free_bus_num(int bus)
{
mutex_lock(&vme_bus_num_mtx);
- vme_bus_numbers |= ~(0x1 << bus);
+ vme_bus_numbers &= ~(0x1 << bus);
mutex_unlock(&vme_bus_num_mtx);
}
OpenPOWER on IntegriCloud