diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 5da297290262..90b8b0515e23 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -10394,36 +10394,6 @@ lpfc_io_resume(struct pci_dev *pdev) | |||
10394 | return; | 10394 | return; |
10395 | } | 10395 | } |
10396 | 10396 | ||
10397 | /** | ||
10398 | * lpfc_mgmt_open - method called when 'lpfcmgmt' is opened from userspace | ||
10399 | * @inode: pointer to the inode representing the lpfcmgmt device | ||
10400 | * @filep: pointer to the file representing the open lpfcmgmt device | ||
10401 | * | ||
10402 | * This routine puts a reference count on the lpfc module whenever the | ||
10403 | * character device is opened | ||
10404 | **/ | ||
10405 | static int | ||
10406 | lpfc_mgmt_open(struct inode *inode, struct file *filep) | ||
10407 | { | ||
10408 | try_module_get(THIS_MODULE); | ||
10409 | return 0; | ||
10410 | } | ||
10411 | |||
10412 | /** | ||
10413 | * lpfc_mgmt_release - method called when 'lpfcmgmt' is closed in userspace | ||
10414 | * @inode: pointer to the inode representing the lpfcmgmt device | ||
10415 | * @filep: pointer to the file representing the open lpfcmgmt device | ||
10416 | * | ||
10417 | * This routine removes a reference count from the lpfc module when the | ||
10418 | * character device is closed | ||
10419 | **/ | ||
10420 | static int | ||
10421 | lpfc_mgmt_release(struct inode *inode, struct file *filep) | ||
10422 | { | ||
10423 | module_put(THIS_MODULE); | ||
10424 | return 0; | ||
10425 | } | ||
10426 | |||
10427 | static struct pci_device_id lpfc_id_table[] = { | 10397 | static struct pci_device_id lpfc_id_table[] = { |
10428 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_VIPER, | 10398 | {PCI_VENDOR_ID_EMULEX, PCI_DEVICE_ID_VIPER, |
10429 | PCI_ANY_ID, PCI_ANY_ID, }, | 10399 | PCI_ANY_ID, PCI_ANY_ID, }, |
@@ -10541,8 +10511,7 @@ static struct pci_driver lpfc_driver = { | |||
10541 | }; | 10511 | }; |
10542 | 10512 | ||
10543 | static const struct file_operations lpfc_mgmt_fop = { | 10513 | static const struct file_operations lpfc_mgmt_fop = { |
10544 | .open = lpfc_mgmt_open, | 10514 | .owner = THIS_MODULE, |
10545 | .release = lpfc_mgmt_release, | ||
10546 | }; | 10515 | }; |
10547 | 10516 | ||
10548 | static struct miscdevice lpfc_mgmt_dev = { | 10517 | static struct miscdevice lpfc_mgmt_dev = { |