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

[PATCH] C99 initializers for drivers/pnp

parent 4cc76cec
...@@ -143,8 +143,8 @@ static int pnp_bus_match(struct device *dev, struct device_driver *drv) ...@@ -143,8 +143,8 @@ static int pnp_bus_match(struct device *dev, struct device_driver *drv)
struct bus_type pnp_bus_type = { struct bus_type pnp_bus_type = {
name: "pnp", .name = "pnp",
match: pnp_bus_match, .match = pnp_bus_match,
}; };
......
...@@ -1055,10 +1055,10 @@ static int isapnp_disable_resources(struct pnp_dev *dev) ...@@ -1055,10 +1055,10 @@ static int isapnp_disable_resources(struct pnp_dev *dev)
} }
struct pnp_protocol isapnp_protocol = { struct pnp_protocol isapnp_protocol = {
name: "ISA Plug and Play", .name = "ISA Plug and Play",
get: isapnp_get_resources, .get = isapnp_get_resources,
set: isapnp_set_resources, .set = isapnp_set_resources,
disable:isapnp_disable_resources, .disable = isapnp_disable_resources,
}; };
static inline int isapnp_init_device_tree(void) static inline int isapnp_init_device_tree(void)
......
...@@ -88,8 +88,8 @@ static ssize_t isapnp_proc_bus_read(struct file *file, char *buf, size_t nbytes, ...@@ -88,8 +88,8 @@ static ssize_t isapnp_proc_bus_read(struct file *file, char *buf, size_t nbytes,
static struct file_operations isapnp_proc_bus_file_operations = static struct file_operations isapnp_proc_bus_file_operations =
{ {
llseek: isapnp_proc_bus_lseek, .llseek = isapnp_proc_bus_lseek,
read: isapnp_proc_bus_read, .read = isapnp_proc_bus_read,
}; };
static int isapnp_proc_attach_device(struct pnp_dev *dev) static int isapnp_proc_attach_device(struct pnp_dev *dev)
......
...@@ -1293,29 +1293,29 @@ static int pnpbios_disable_resources(struct pnp_dev *dev) ...@@ -1293,29 +1293,29 @@ static int pnpbios_disable_resources(struct pnp_dev *dev)
struct pnp_cfg * config = kmalloc(sizeof(struct pnp_cfg), GFP_KERNEL); struct pnp_cfg * config = kmalloc(sizeof(struct pnp_cfg), GFP_KERNEL);
/* first we need to set everything to a disabled value */ /* first we need to set everything to a disabled value */
struct pnp_port port = { struct pnp_port port = {
max: 0, .max = 0,
min: 0, .min = 0,
align: 0, .align = 0,
size: 0, .size = 0,
flags: 0, .flags = 0,
pad: 0, .pad = 0,
}; };
struct pnp_mem mem = { struct pnp_mem mem = {
max: 0, .max = 0,
min: 0, .min = 0,
align: 0, .align = 0,
size: 0, .size = 0,
flags: 0, .flags = 0,
pad: 0, .pad = 0,
}; };
struct pnp_dma dma = { struct pnp_dma dma = {
map: 0, .map = 0,
flags: 0, .flags = 0,
}; };
struct pnp_irq irq = { struct pnp_irq irq = {
map: 0, .map = 0,
flags: 0, .flags = 0,
pad: 0, .pad = 0,
}; };
int i; int i;
struct pnp_dev_node_info node_info; struct pnp_dev_node_info node_info;
...@@ -1358,10 +1358,10 @@ static int pnpbios_disable_resources(struct pnp_dev *dev) ...@@ -1358,10 +1358,10 @@ static int pnpbios_disable_resources(struct pnp_dev *dev)
/* PnP Layer support */ /* PnP Layer support */
static struct pnp_protocol pnpbios_protocol = { static struct pnp_protocol pnpbios_protocol = {
name: "Plug and Play BIOS", .name = "Plug and Play BIOS",
get: pnpbios_get_resources, .get = pnpbios_get_resources,
set: pnpbios_set_resources, .set = pnpbios_set_resources,
disable:pnpbios_disable_resources, .disable = pnpbios_disable_resources,
}; };
static int inline insert_device(struct pnp_dev *dev) static int inline insert_device(struct pnp_dev *dev)
......
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