summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_def.h
diff options
context:
space:
mode:
authorHarish Zunjarrao <harish.zunjarrao@qlogic.com>2010-05-05 00:01:24 +0200
committerJames Bottomley <James.Bottomley@suse.de>2010-05-17 00:21:42 +0200
commit6a03b4cd78f3f2695a2d0e6343d555b3de0e67c1 (patch)
treec86750452978aaadca184bbe39d1c969a3b776ab /drivers/scsi/qla2xxx/qla_def.h
parent[SCSI] qla2xxx: Clear error status after uncorrectable non-fatal errors. (diff)
downloadlinux-6a03b4cd78f3f2695a2d0e6343d555b3de0e67c1.tar.xz
linux-6a03b4cd78f3f2695a2d0e6343d555b3de0e67c1.zip
[SCSI] qla2xxx: Add char device to increase driver use count
The driver should not be unloaded if any application is using it. To disallow driver unload, driver use count must be incremented. Application uses this char device as handle and increases driver use count to avoid possible driver unload. Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_def.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index edb7a704ed77..d4a53e5549b9 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -35,7 +35,8 @@
#include "qla_bsg.h"
#include "qla_nx.h"
-#define QLA2XXX_DRIVER_NAME "qla2xxx"
+#define QLA2XXX_DRIVER_NAME "qla2xxx"
+#define QLA2XXX_APIDEV "ql2xapidev"
/*
* We have MAILBOX_REGISTER_COUNT sized arrays in a few places,