Commit 01c26cd4 authored by Art Haas's avatar Art Haas Committed by David S. Miller

[PATCH] C99 initializers for drivers/pcmcia

parent a61dafcd
...@@ -867,13 +867,13 @@ static int ds_ioctl(struct inode * inode, struct file * file, ...@@ -867,13 +867,13 @@ static int ds_ioctl(struct inode * inode, struct file * file,
/*====================================================================*/ /*====================================================================*/
static struct file_operations ds_fops = { static struct file_operations ds_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
open: ds_open, .open = ds_open,
release: ds_release, .release = ds_release,
ioctl: ds_ioctl, .ioctl = ds_ioctl,
read: ds_read, .read = ds_read,
write: ds_write, .write = ds_write,
poll: ds_poll, .poll = ds_poll,
}; };
EXPORT_SYMBOL(register_pccard_driver); EXPORT_SYMBOL(register_pccard_driver);
......
...@@ -240,13 +240,13 @@ static void hs_end_irq(unsigned int irq) ...@@ -240,13 +240,13 @@ static void hs_end_irq(unsigned int irq)
static struct hw_interrupt_type hd64465_ss_irq_type = { static struct hw_interrupt_type hd64465_ss_irq_type = {
typename: "PCMCIA-IRQ", .typename = "PCMCIA-IRQ",
startup: hs_startup_irq, .startup = hs_startup_irq,
shutdown: hs_shutdown_irq, .shutdown = hs_shutdown_irq,
enable: hs_enable_irq, .enable = hs_enable_irq,
disable: hs_disable_irq, .disable = hs_disable_irq,
ack: hs_mask_and_ack_irq, .ack = hs_mask_and_ack_irq,
end: hs_end_irq .end = hs_end_irq
}; };
/* /*
......
...@@ -32,41 +32,37 @@ MODULE_LICENSE("GPL"); ...@@ -32,41 +32,37 @@ MODULE_LICENSE("GPL");
/* PCI core routines */ /* PCI core routines */
static struct pci_device_id i82092aa_pci_ids[] = { static struct pci_device_id i82092aa_pci_ids[] = {
{ {
vendor:PCI_VENDOR_ID_INTEL, .vendor = PCI_VENDOR_ID_INTEL,
device:PCI_DEVICE_ID_INTEL_82092AA_0, .device = PCI_DEVICE_ID_INTEL_82092AA_0,
subvendor:PCI_ANY_ID, .subvendor = PCI_ANY_ID,
subdevice:PCI_ANY_ID, .subdevice = PCI_ANY_ID,
class: 0, class_mask:0,
}, },
{} {}
}; };
MODULE_DEVICE_TABLE(pci, i82092aa_pci_ids); MODULE_DEVICE_TABLE(pci, i82092aa_pci_ids);
static struct pci_driver i82092aa_pci_drv = { static struct pci_driver i82092aa_pci_drv = {
name: "i82092aa", .name = "i82092aa",
id_table: i82092aa_pci_ids, .id_table = i82092aa_pci_ids,
probe: i82092aa_pci_probe, .probe = i82092aa_pci_probe,
remove: __devexit_p(i82092aa_pci_remove), .remove = __devexit_p(i82092aa_pci_remove),
suspend: NULL,
resume: NULL
}; };
/* the pccard structure and its functions */ /* the pccard structure and its functions */
static struct pccard_operations i82092aa_operations = { static struct pccard_operations i82092aa_operations = {
init: i82092aa_init, .init = i82092aa_init,
suspend: i82092aa_suspend, .suspend = i82092aa_suspend,
register_callback: i82092aa_register_callback, .register_callback = i82092aa_register_callback,
inquire_socket: i82092aa_inquire_socket, .inquire_socket = i82092aa_inquire_socket,
get_status: i82092aa_get_status, .get_status = i82092aa_get_status,
get_socket: i82092aa_get_socket, .get_socket = i82092aa_get_socket,
set_socket: i82092aa_set_socket, .set_socket = i82092aa_set_socket,
get_io_map: i82092aa_get_io_map, .get_io_map = i82092aa_get_io_map,
set_io_map: i82092aa_set_io_map, .set_io_map = i82092aa_set_io_map,
get_mem_map: i82092aa_get_mem_map, .get_mem_map = i82092aa_get_mem_map,
set_mem_map: i82092aa_set_mem_map, .set_mem_map = i82092aa_set_mem_map,
proc_setup: i82092aa_proc_setup, .proc_setup = i82092aa_proc_setup,
}; };
/* The card can do upto 4 sockets, allocate a structure for each of them */ /* The card can do upto 4 sockets, allocate a structure for each of them */
......
...@@ -235,24 +235,24 @@ static int cardbus_resume (struct pci_dev *dev) ...@@ -235,24 +235,24 @@ static int cardbus_resume (struct pci_dev *dev)
static struct pci_device_id cardbus_table [] __devinitdata = { { static struct pci_device_id cardbus_table [] __devinitdata = { {
class: PCI_CLASS_BRIDGE_CARDBUS << 8, .class = PCI_CLASS_BRIDGE_CARDBUS << 8,
class_mask: ~0, .class_mask = ~0,
vendor: PCI_ANY_ID, .vendor = PCI_ANY_ID,
device: PCI_ANY_ID, .device = PCI_ANY_ID,
subvendor: PCI_ANY_ID, .subvendor = PCI_ANY_ID,
subdevice: PCI_ANY_ID, .subdevice = PCI_ANY_ID,
}, { /* all zeroes */ } }, { /* all zeroes */ }
}; };
MODULE_DEVICE_TABLE(pci, cardbus_table); MODULE_DEVICE_TABLE(pci, cardbus_table);
static struct pci_driver pci_cardbus_driver = { static struct pci_driver pci_cardbus_driver = {
name: "cardbus", .name = "cardbus",
id_table: cardbus_table, .id_table = cardbus_table,
probe: cardbus_probe, .probe = cardbus_probe,
remove: __devexit_p(cardbus_remove), .remove = __devexit_p(cardbus_remove),
suspend: cardbus_suspend, .suspend = cardbus_suspend,
resume: cardbus_resume, .resume = cardbus_resume,
}; };
static int __init pci_socket_init(void) static int __init pci_socket_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