From: Erik Arfvidson <erik.arfvidson@xxxxxxxxxx> This patch changes serverdown variable to int instead of bool Signed-off-by: Erik Arfvidson <erik.arfvidson@xxxxxxxxxx> Signed-off-by: Benjamin Romer <benjamin.romer@xxxxxxxxxx> --- drivers/staging/unisys/virthba/virthba.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/unisys/virthba/virthba.c b/drivers/staging/unisys/virthba/virthba.c index e6ecea5..481fb57 100644 --- a/drivers/staging/unisys/virthba/virthba.c +++ b/drivers/staging/unisys/virthba/virthba.c @@ -183,7 +183,7 @@ struct virthba_info { unsigned int nextinsert; /* Start search for next pending free slot here */ spinlock_t privlock; - bool serverdown; + int serverdown; bool serverchangingstate; unsigned long long acquire_failed_cnt; unsigned long long interrupts_rcvd; @@ -566,7 +566,7 @@ virthba_probe(struct virtpci_dev *virtpcidev, const struct pci_device_id *id) init_waitqueue_head(&virthbainfo->rsp_queue); spin_lock_init(&virthbainfo->privlock); memset(&virthbainfo->pending, 0, sizeof(virthbainfo->pending)); - virthbainfo->serverdown = false; + virthbainfo->serverdown = 0; virthbainfo->serverchangingstate = false; virthbainfo->intr = virtpcidev->intr; @@ -1511,7 +1511,7 @@ virthba_serverup(struct virtpci_dev *virtpcidev) LOGERR("uisthread_start rsp ****FAILED\n"); return 0; } - virthbainfo->serverdown = false; + virthbainfo->serverdown = 0; virthbainfo->serverchangingstate = false; return 1; @@ -1577,7 +1577,7 @@ virthba_serverdown_complete(struct work_struct *work) DBGINF("virtpcidev bus_no<<%d>>devNo<<%d>>", virtpcidev->bus_no, virtpcidev->device_no); - virthbainfo->serverdown = true; + virthbainfo->serverdown = 1; virthbainfo->serverchangingstate = false; /* Return the ServerDown response to Command */ visorchipset_device_pause_response(virtpcidev->bus_no, -- 2.1.0 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel