Commit 96ee9c93 authored by Art Haas's avatar Art Haas Committed by David S. Miller

[PATCH] C99 initializers for drivers/pci

parent 45fd7086
...@@ -145,7 +145,7 @@ pci_unregister_driver(struct pci_driver *drv) ...@@ -145,7 +145,7 @@ pci_unregister_driver(struct pci_driver *drv)
} }
static struct pci_driver pci_compat_driver = { static struct pci_driver pci_compat_driver = {
name: "compat" .name = "compat"
}; };
/** /**
...@@ -200,9 +200,9 @@ static int pci_bus_match(struct device * dev, struct device_driver * drv) ...@@ -200,9 +200,9 @@ static int pci_bus_match(struct device * dev, struct device_driver * drv)
} }
struct bus_type pci_bus_type = { struct bus_type pci_bus_type = {
name: "pci", .name = "pci",
match: pci_bus_match, .match = pci_bus_match,
hotplug: pci_hotplug, .hotplug = pci_hotplug,
}; };
static int __init pci_driver_init(void) static int __init pci_driver_init(void)
......
...@@ -285,16 +285,16 @@ static int proc_bus_pci_release(struct inode *inode, struct file *file) ...@@ -285,16 +285,16 @@ static int proc_bus_pci_release(struct inode *inode, struct file *file)
#endif /* HAVE_PCI_MMAP */ #endif /* HAVE_PCI_MMAP */
static struct file_operations proc_bus_pci_operations = { static struct file_operations proc_bus_pci_operations = {
llseek: proc_bus_pci_lseek, .llseek = proc_bus_pci_lseek,
read: proc_bus_pci_read, .read = proc_bus_pci_read,
write: proc_bus_pci_write, .write = proc_bus_pci_write,
ioctl: proc_bus_pci_ioctl, .ioctl = proc_bus_pci_ioctl,
#ifdef HAVE_PCI_MMAP #ifdef HAVE_PCI_MMAP
open: proc_bus_pci_open, .open = proc_bus_pci_open,
release: proc_bus_pci_release, .release = proc_bus_pci_release,
mmap: proc_bus_pci_mmap, .mmap = proc_bus_pci_mmap,
#ifdef HAVE_ARCH_PCI_GET_UNMAPPED_AREA #ifdef HAVE_ARCH_PCI_GET_UNMAPPED_AREA
get_unmapped_area: get_pci_unmapped_area, .get_unmapped_area = get_pci_unmapped_area,
#endif /* HAVE_ARCH_PCI_GET_UNMAPPED_AREA */ #endif /* HAVE_ARCH_PCI_GET_UNMAPPED_AREA */
#endif /* HAVE_PCI_MMAP */ #endif /* HAVE_PCI_MMAP */
}; };
...@@ -365,10 +365,10 @@ static int show_device(struct seq_file *m, void *v) ...@@ -365,10 +365,10 @@ static int show_device(struct seq_file *m, void *v)
} }
static struct seq_operations proc_bus_pci_devices_op = { static struct seq_operations proc_bus_pci_devices_op = {
start: pci_seq_start, .start = pci_seq_start,
next: pci_seq_next, .next = pci_seq_next,
stop: pci_seq_stop, .stop = pci_seq_stop,
show: show_device .show = show_device
}; };
struct proc_dir_entry *proc_bus_pci_dir; struct proc_dir_entry *proc_bus_pci_dir;
...@@ -567,10 +567,10 @@ static int show_dev_config(struct seq_file *m, void *v) ...@@ -567,10 +567,10 @@ static int show_dev_config(struct seq_file *m, void *v)
} }
static struct seq_operations proc_pci_op = { static struct seq_operations proc_pci_op = {
start: pci_seq_start, .start = pci_seq_start,
next: pci_seq_next, .next = pci_seq_next,
stop: pci_seq_stop, .stop = pci_seq_stop,
show: show_dev_config .show = show_dev_config
}; };
static int proc_bus_pci_dev_open(struct inode *inode, struct file *file) static int proc_bus_pci_dev_open(struct inode *inode, struct file *file)
...@@ -578,20 +578,20 @@ static int proc_bus_pci_dev_open(struct inode *inode, struct file *file) ...@@ -578,20 +578,20 @@ static int proc_bus_pci_dev_open(struct inode *inode, struct file *file)
return seq_open(file, &proc_bus_pci_devices_op); return seq_open(file, &proc_bus_pci_devices_op);
} }
static struct file_operations proc_bus_pci_dev_operations = { static struct file_operations proc_bus_pci_dev_operations = {
open: proc_bus_pci_dev_open, .open = proc_bus_pci_dev_open,
read: seq_read, .read = seq_read,
llseek: seq_lseek, .llseek = seq_lseek,
release: seq_release, .release = seq_release,
}; };
static int proc_pci_open(struct inode *inode, struct file *file) static int proc_pci_open(struct inode *inode, struct file *file)
{ {
return seq_open(file, &proc_pci_op); return seq_open(file, &proc_pci_op);
} }
static struct file_operations proc_pci_operations = { static struct file_operations proc_pci_operations = {
open: proc_pci_open, .open = proc_pci_open,
read: seq_read, .read = seq_read,
llseek: seq_lseek, .llseek = seq_lseek,
release: seq_release, .release = seq_release,
}; };
static int __init pci_proc_init(void) static int __init pci_proc_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment