aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-05-01 20:51:54 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-05-01 20:51:54 -0400
commit20b4fb485227404329e41ad15588afad3df23050 (patch)
treef3e099f0ab3da8a93b447203e294d2bb22f6dc05 /drivers/scsi/lpfc
parentb9394d8a657cd3c064fa432aa0905c1b58b38fe9 (diff)
parentac3e3c5b1164397656df81b9e9ab4991184d3236 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull VFS updates from Al Viro, Misc cleanups all over the place, mainly wrt /proc interfaces (switch create_proc_entry to proc_create(), get rid of the deprecated create_proc_read_entry() in favor of using proc_create_data() and seq_file etc). 7kloc removed. * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (204 commits) don't bother with deferred freeing of fdtables proc: Move non-public stuff from linux/proc_fs.h to fs/proc/internal.h proc: Make the PROC_I() and PDE() macros internal to procfs proc: Supply a function to remove a proc entry by PDE take cgroup_open() and cpuset_open() to fs/proc/base.c ppc: Clean up scanlog ppc: Clean up rtas_flash driver somewhat hostap: proc: Use remove_proc_subtree() drm: proc: Use remove_proc_subtree() drm: proc: Use minor->index to label things, not PDE->name drm: Constify drm_proc_list[] zoran: Don't print proc_dir_entry data in debug reiserfs: Don't access the proc_dir_entry in r_open(), r_start() r_show() proc: Supply an accessor for getting the data from a PDE's parent airo: Use remove_proc_subtree() rtl8192u: Don't need to save device proc dir PDE rtl8187se: Use a dir under /proc/net/r8180/ proc: Add proc_mkdir_data() proc: Move some bits from linux/proc_fs.h to linux/{of.h,signal.h,tty.h} proc: Move PDE_NET() to fs/proc/proc_net.c ...
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c33
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 **/
10405static int
10406lpfc_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 **/
10420static int
10421lpfc_mgmt_release(struct inode *inode, struct file *filep)
10422{
10423 module_put(THIS_MODULE);
10424 return 0;
10425}
10426
10427static struct pci_device_id lpfc_id_table[] = { 10397static 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
10543static const struct file_operations lpfc_mgmt_fop = { 10513static 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
10548static struct miscdevice lpfc_mgmt_dev = { 10517static struct miscdevice lpfc_mgmt_dev = {