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)
struct bus_type pnp_bus_type = {
name: "pnp",
match: pnp_bus_match,
.name = "pnp",
.match = pnp_bus_match,
};
......
......@@ -1055,10 +1055,10 @@ static int isapnp_disable_resources(struct pnp_dev *dev)
}
struct pnp_protocol isapnp_protocol = {
name: "ISA Plug and Play",
get: isapnp_get_resources,
set: isapnp_set_resources,
disable:isapnp_disable_resources,
.name = "ISA Plug and Play",
.get = isapnp_get_resources,
.set = isapnp_set_resources,
.disable = isapnp_disable_resources,
};
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,
static struct file_operations isapnp_proc_bus_file_operations =
{
llseek: isapnp_proc_bus_lseek,
read: isapnp_proc_bus_read,
.llseek = isapnp_proc_bus_lseek,
.read = isapnp_proc_bus_read,
};
static int isapnp_proc_attach_device(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);
/* first we need to set everything to a disabled value */
struct pnp_port port = {
max: 0,
min: 0,
align: 0,
size: 0,
flags: 0,
pad: 0,
.max = 0,
.min = 0,
.align = 0,
.size = 0,
.flags = 0,
.pad = 0,
};
struct pnp_mem mem = {
max: 0,
min: 0,
align: 0,
size: 0,
flags: 0,
pad: 0,
.max = 0,
.min = 0,
.align = 0,
.size = 0,
.flags = 0,
.pad = 0,
};
struct pnp_dma dma = {
map: 0,
flags: 0,
.map = 0,
.flags = 0,
};
struct pnp_irq irq = {
map: 0,
flags: 0,
pad: 0,
.map = 0,
.flags = 0,
.pad = 0,
};
int i;
struct pnp_dev_node_info node_info;
......@@ -1358,10 +1358,10 @@ static int pnpbios_disable_resources(struct pnp_dev *dev)
/* PnP Layer support */
static struct pnp_protocol pnpbios_protocol = {
name: "Plug and Play BIOS",
get: pnpbios_get_resources,
set: pnpbios_set_resources,
disable:pnpbios_disable_resources,
.name = "Plug and Play BIOS",
.get = pnpbios_get_resources,
.set = pnpbios_set_resources,
.disable = pnpbios_disable_resources,
};
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