patch-2.3.48 linux/drivers/pci/proc.c

Next file: linux/drivers/pcmcia/i82365.c
Previous file: linux/drivers/pci/pci.ids
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/drivers/pci/proc.c linux/drivers/pci/proc.c
@@ -197,10 +197,6 @@
 	write:	proc_bus_pci_write,
 };
 
-static struct inode_operations proc_bus_pci_inode_operations = {
-	&proc_bus_pci_operations, /* default base directory file-ops */
-};
-
 #if BITS_PER_LONG == 32
 #define LONG_FORMAT "\t%08lx"
 #else
@@ -265,7 +261,7 @@
 	e = dev->procent = create_proc_entry(name, S_IFREG | S_IRUGO | S_IWUSR, de);
 	if (!e)
 		return -ENOMEM;
-	e->ops = &proc_bus_pci_inode_operations;
+	e->proc_fops = &proc_bus_pci_operations;
 	e->data = dev;
 	e->size = PCI_CFG_SPACE_SIZE;
 	return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)