Commit ab0680db authored by Russell King's avatar Russell King

[TRIVIAL] acorn & arm designated initializer rework

From Rusty.
The old form of designated initializers are obsolete: we need to
replace them with the ISO C forms before 2.6.  Gcc has always supported
both forms anyway.

(rmk - cleaned up spacing to be more reasonable)
parent 2f50d507
...@@ -133,10 +133,10 @@ static void isa_disable_dma(dmach_t channel, dma_t *dma) ...@@ -133,10 +133,10 @@ static void isa_disable_dma(dmach_t channel, dma_t *dma)
} }
static struct dma_ops isa_dma_ops = { static struct dma_ops isa_dma_ops = {
type: "ISA", .type = "ISA",
enable: isa_enable_dma, .enable = isa_enable_dma,
disable: isa_disable_dma, .disable = isa_disable_dma,
residue: isa_get_dma_residue, .residue = isa_get_dma_residue,
}; };
static struct resource dma_resources[] = { static struct resource dma_resources[] = {
......
...@@ -407,7 +407,7 @@ static int ecard_reboot(struct notifier_block *me, unsigned long val, void *v) ...@@ -407,7 +407,7 @@ static int ecard_reboot(struct notifier_block *me, unsigned long val, void *v)
} }
static struct notifier_block ecard_reboot_notifier = { static struct notifier_block ecard_reboot_notifier = {
notifier_call: ecard_reboot, .notifier_call = ecard_reboot,
}; };
...@@ -571,9 +571,9 @@ static void ecard_irq_mask(unsigned int irqnr) ...@@ -571,9 +571,9 @@ static void ecard_irq_mask(unsigned int irqnr)
} }
static struct irqchip ecard_chip = { static struct irqchip ecard_chip = {
ack: ecard_irq_mask, .ack = ecard_irq_mask,
mask: ecard_irq_mask, .mask = ecard_irq_mask,
unmask: ecard_irq_unmask, .unmask = ecard_irq_unmask,
}; };
void ecard_enablefiq(unsigned int fiqnr) void ecard_enablefiq(unsigned int fiqnr)
......
...@@ -87,8 +87,8 @@ static int fiq_def_op(void *ref, int relinquish) ...@@ -87,8 +87,8 @@ static int fiq_def_op(void *ref, int relinquish)
} }
static struct fiq_handler default_owner = { static struct fiq_handler default_owner = {
name: "default", .name = "default",
fiq_op: fiq_def_op, .fiq_op = fiq_def_op,
}; };
static struct fiq_handler *current_fiq = &default_owner; static struct fiq_handler *current_fiq = &default_owner;
......
...@@ -64,15 +64,15 @@ void do_bad_IRQ(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs) ...@@ -64,15 +64,15 @@ void do_bad_IRQ(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs)
} }
static struct irqchip bad_chip = { static struct irqchip bad_chip = {
ack: dummy_mask_unmask_irq, .ack = dummy_mask_unmask_irq,
mask: dummy_mask_unmask_irq, .mask = dummy_mask_unmask_irq,
unmask: dummy_mask_unmask_irq, .unmask = dummy_mask_unmask_irq,
}; };
static struct irqdesc bad_irq_desc = { static struct irqdesc bad_irq_desc = {
chip: &bad_chip, .chip = &bad_chip,
handle: do_bad_IRQ, .handle = do_bad_IRQ,
depth: 1, .depth = 1,
}; };
/** /**
......
...@@ -803,8 +803,8 @@ static void c_stop(struct seq_file *m, void *v) ...@@ -803,8 +803,8 @@ static void c_stop(struct seq_file *m, void *v)
} }
struct seq_operations cpuinfo_op = { struct seq_operations cpuinfo_op = {
start: c_start, .start = c_start,
next: c_next, .next = c_next,
stop: c_stop, .stop = c_stop,
show: c_show .show = c_show
}; };
...@@ -205,7 +205,7 @@ void do_settimeofday(struct timeval *tv) ...@@ -205,7 +205,7 @@ void do_settimeofday(struct timeval *tv)
} }
static struct irqaction timer_irq = { static struct irqaction timer_irq = {
name: "timer", .name = "timer",
}; };
/* /*
......
...@@ -49,9 +49,9 @@ anakin_interrupt(int irq, void *dev_id, struct pt_regs *regs) ...@@ -49,9 +49,9 @@ anakin_interrupt(int irq, void *dev_id, struct pt_regs *regs)
} }
static struct irqaction anakin_irq = { static struct irqaction anakin_irq = {
name: "Anakin IRQ", .name = "Anakin IRQ",
handler: anakin_interrupt, .handler = anakin_interrupt,
flags: SA_INTERRUPT .flags = SA_INTERRUPT
}; };
void __init void __init
......
...@@ -110,23 +110,23 @@ static void arc_disable_dma(dmach_t channel, dma_t *dma) ...@@ -110,23 +110,23 @@ static void arc_disable_dma(dmach_t channel, dma_t *dma)
} }
static struct dma_ops arc_floppy_data_dma_ops = { static struct dma_ops arc_floppy_data_dma_ops = {
type: "FIQDMA", .type = "FIQDMA",
enable: arc_floppy_data_enable_dma, .enable = arc_floppy_data_enable_dma,
disable: arc_disable_dma, .disable = arc_disable_dma,
residue: arc_floppy_data_get_dma_residue, .residue = arc_floppy_data_get_dma_residue,
}; };
static struct dma_ops arc_floppy_cmdend_dma_ops = { static struct dma_ops arc_floppy_cmdend_dma_ops = {
type: "FIQCMD", .type = "FIQCMD",
enable: arc_floppy_cmdend_enable_dma, .enable = arc_floppy_cmdend_enable_dma,
disable: arc_disable_dma, .disable = arc_disable_dma,
residue: arc_floppy_cmdend_get_dma_residue, .residue = arc_floppy_cmdend_get_dma_residue,
}; };
#endif #endif
#ifdef CONFIG_ARCH_A5K #ifdef CONFIG_ARCH_A5K
static struct fiq_handler fh = { static struct fiq_handler fh = {
name: "floppydata" .name = "floppydata"
}; };
static int a5k_floppy_get_dma_residue(dmach_t channel, dma_t *dma) static int a5k_floppy_get_dma_residue(dmach_t channel, dma_t *dma)
...@@ -175,10 +175,10 @@ static void a5k_floppy_disable_dma(dmach_t channel, dma_t *dma) ...@@ -175,10 +175,10 @@ static void a5k_floppy_disable_dma(dmach_t channel, dma_t *dma)
} }
static struct dma_ops a5k_floppy_dma_ops = { static struct dma_ops a5k_floppy_dma_ops = {
type: "FIQDMA", .type = "FIQDMA",
enable: a5k_floppy_enable_dma, .enable = a5k_floppy_enable_dma,
disable: a5k_floppy_disable_dma, .disable = a5k_floppy_disable_dma,
residue: a5k_floppy_get_dma_residue, .residue = a5k_floppy_get_dma_residue,
}; };
#endif #endif
...@@ -190,9 +190,9 @@ static void sound_enable_disable_dma(dmach_t channel, dma_t *dma) ...@@ -190,9 +190,9 @@ static void sound_enable_disable_dma(dmach_t channel, dma_t *dma)
} }
static struct dma_ops sound_dma_ops = { static struct dma_ops sound_dma_ops = {
type: "VIRTUAL", .type = "VIRTUAL",
enable: sound_enable_disable_dma, .enable = sound_enable_disable_dma,
disable: sound_enable_disable_dma, .disable = sound_enable_disable_dma,
}; };
void __init arch_dma_init(dma_t *dma) void __init arch_dma_init(dma_t *dma)
......
...@@ -63,9 +63,9 @@ static void int1_unmask(unsigned int irq) ...@@ -63,9 +63,9 @@ static void int1_unmask(unsigned int irq)
} }
static struct irqchip int1_chip = { static struct irqchip int1_chip = {
ack: int1_ack, .ack = int1_ack,
mask: int1_mask, .mask = int1_mask,
unmask: int1_unmask, .unmask = int1_unmask,
}; };
static void int2_mask(unsigned int irq) static void int2_mask(unsigned int irq)
...@@ -100,9 +100,9 @@ static void int2_unmask(unsigned int irq) ...@@ -100,9 +100,9 @@ static void int2_unmask(unsigned int irq)
} }
static struct irqchip int2_chip = { static struct irqchip int2_chip = {
ack: int2_ack, .ack = int2_ack,
mask: int2_mask, .mask = int2_mask,
unmask: int2_unmask, .unmask = int2_unmask,
}; };
void __init clps711x_init_irq(void) void __init clps711x_init_irq(void)
......
...@@ -42,9 +42,9 @@ static void ebsa110_unmask_irq(unsigned int irq) ...@@ -42,9 +42,9 @@ static void ebsa110_unmask_irq(unsigned int irq)
} }
static struct irqchip ebsa110_irq_chip = { static struct irqchip ebsa110_irq_chip = {
ack: ebsa110_mask_irq, .ack = ebsa110_mask_irq,
mask: ebsa110_mask_irq, .mask = ebsa110_mask_irq,
unmask: ebsa110_unmask_irq, .unmask = ebsa110_unmask_irq,
}; };
static void __init ebsa110_init_irq(void) static void __init ebsa110_init_irq(void)
......
...@@ -39,15 +39,15 @@ static void epxa_unmask_irq(unsigned int irq) ...@@ -39,15 +39,15 @@ static void epxa_unmask_irq(unsigned int irq)
static struct irqchip epxa_irq_chip = { static struct irqchip epxa_irq_chip = {
ack: epxa_mask_irq, .ack = epxa_mask_irq,
mask: epxa_mask_irq, .mask = epxa_mask_irq,
unmask: epxa_unmask_irq, .unmask = epxa_unmask_irq,
}; };
static struct resource irq_resource = { static struct resource irq_resource = {
name: "irq_handler", .name = "irq_handler",
start: IO_ADDRESS(EXC_INT_CTRL00_BASE), .start = IO_ADDRESS(EXC_INT_CTRL00_BASE),
end: IO_ADDRESS(INT_PRIORITY_FC(EXC_INT_CTRL00_BASE))+4, .end = IO_ADDRESS(INT_PRIORITY_FC(EXC_INT_CTRL00_BASE))+4,
}; };
void __init epxa10db_init_irq(void) void __init epxa10db_init_irq(void)
......
...@@ -36,13 +36,13 @@ static int __init cats_map_irq(struct pci_dev *dev, u8 slot, u8 pin) ...@@ -36,13 +36,13 @@ static int __init cats_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
* cards being used (ie, pci-pci bridge based cards)? * cards being used (ie, pci-pci bridge based cards)?
*/ */
static struct hw_pci cats_pci __initdata = { static struct hw_pci cats_pci __initdata = {
swizzle: NULL, .swizzle = NULL,
map_irq: cats_map_irq, .map_irq = cats_map_irq,
nr_controllers: 1, .nr_controllers = 1,
setup: dc21285_setup, .setup = dc21285_setup,
scan: dc21285_scan_bus, .scan = dc21285_scan_bus,
preinit: dc21285_preinit, .preinit = dc21285_preinit,
postinit: dc21285_postinit, .postinit = dc21285_postinit,
}; };
static int cats_pci_init(void) static int cats_pci_init(void)
......
...@@ -35,10 +35,10 @@ static void fb_dma_disable(dmach_t channel, dma_t *dma) ...@@ -35,10 +35,10 @@ static void fb_dma_disable(dmach_t channel, dma_t *dma)
} }
static struct dma_ops fb_dma_ops = { static struct dma_ops fb_dma_ops = {
type: "fb", .type = "fb",
request: fb_dma_request, .request = fb_dma_request,
enable: fb_dma_enable, .enable = fb_dma_enable,
disable: fb_dma_disable, .disable = fb_dma_disable,
}; };
#endif #endif
......
...@@ -29,13 +29,13 @@ static int __init ebsa285_map_irq(struct pci_dev *dev, u8 slot, u8 pin) ...@@ -29,13 +29,13 @@ static int __init ebsa285_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
} }
static struct hw_pci ebsa285_pci __initdata = { static struct hw_pci ebsa285_pci __initdata = {
swizzle: pci_std_swizzle, .swizzle = pci_std_swizzle,
map_irq: ebsa285_map_irq, .map_irq = ebsa285_map_irq,
nr_controllers: 1, .nr_controllers = 1,
setup: dc21285_setup, .setup = dc21285_setup,
scan: dc21285_scan_bus, .scan = dc21285_scan_bus,
preinit: dc21285_preinit, .preinit = dc21285_preinit,
postinit: dc21285_postinit, .postinit = dc21285_postinit,
}; };
static int __init ebsa285_init_pci(void) static int __init ebsa285_init_pci(void)
......
...@@ -67,9 +67,9 @@ static void fb_unmask_irq(unsigned int irq) ...@@ -67,9 +67,9 @@ static void fb_unmask_irq(unsigned int irq)
} }
static struct irqchip fb_chip = { static struct irqchip fb_chip = {
ack: fb_mask_irq, .ack = fb_mask_irq,
mask: fb_mask_irq, .mask = fb_mask_irq,
unmask: fb_unmask_irq, .unmask = fb_unmask_irq,
}; };
static void __init __fb_init_irq(void) static void __init __fb_init_irq(void)
......
...@@ -50,9 +50,9 @@ static void isa_unmask_pic_lo_irq(unsigned int irq) ...@@ -50,9 +50,9 @@ static void isa_unmask_pic_lo_irq(unsigned int irq)
} }
static struct irqchip isa_lo_chip = { static struct irqchip isa_lo_chip = {
ack: isa_ack_pic_lo_irq, .ack = isa_ack_pic_lo_irq,
mask: isa_mask_pic_lo_irq, .mask = isa_mask_pic_lo_irq,
unmask: isa_unmask_pic_lo_irq, .unmask = isa_unmask_pic_lo_irq,
}; };
static void isa_mask_pic_hi_irq(unsigned int irq) static void isa_mask_pic_hi_irq(unsigned int irq)
...@@ -79,9 +79,9 @@ static void isa_unmask_pic_hi_irq(unsigned int irq) ...@@ -79,9 +79,9 @@ static void isa_unmask_pic_hi_irq(unsigned int irq)
} }
static struct irqchip isa_hi_chip = { static struct irqchip isa_hi_chip = {
ack: isa_ack_pic_hi_irq, .ack = isa_ack_pic_hi_irq,
mask: isa_mask_pic_hi_irq, .mask = isa_mask_pic_hi_irq,
unmask: isa_unmask_pic_hi_irq, .unmask = isa_unmask_pic_hi_irq,
}; };
static void no_action(int irq, void *dev_id, struct pt_regs *regs) static void no_action(int irq, void *dev_id, struct pt_regs *regs)
......
...@@ -43,13 +43,13 @@ static int __init netwinder_map_irq(struct pci_dev *dev, u8 slot, u8 pin) ...@@ -43,13 +43,13 @@ static int __init netwinder_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
} }
static struct hw_pci netwinder_pci __initdata = { static struct hw_pci netwinder_pci __initdata = {
swizzle: pci_std_swizzle, .swizzle = pci_std_swizzle,
map_irq: netwinder_map_irq, .map_irq = netwinder_map_irq,
nr_controllers: 1, .nr_controllers = 1,
setup: dc21285_setup, .setup = dc21285_setup,
scan: dc21285_scan_bus, .scan = dc21285_scan_bus,
preinit: dc21285_preinit, .preinit = dc21285_preinit,
postinit: dc21285_postinit, .postinit = dc21285_postinit,
}; };
static int __init netwinder_pci_init(void) static int __init netwinder_pci_init(void)
......
...@@ -38,12 +38,12 @@ static int __init personal_server_map_irq(struct pci_dev *dev, u8 slot, u8 pin) ...@@ -38,12 +38,12 @@ static int __init personal_server_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
} }
static struct hw_pci personal_server_pci __initdata = { static struct hw_pci personal_server_pci __initdata = {
map_irq: personal_server_map_irq, .map_irq = personal_server_map_irq,
nr_controllers: 1, .nr_controllers = 1,
setup: dc21285_setup, .setup = dc21285_setup,
scan: dc21285_scan_bus, .scan = dc21285_scan_bus,
preinit: dc21285_preinit, .preinit = dc21285_preinit,
postinit: dc21285_postinit, .postinit = dc21285_postinit,
}; };
static int __init personal_pci_init(void) static int __init personal_pci_init(void)
......
...@@ -45,9 +45,9 @@ static u8 __init ftv_swizzle(struct pci_dev *dev, u8 *pin) ...@@ -45,9 +45,9 @@ static u8 __init ftv_swizzle(struct pci_dev *dev, u8 *pin)
/* ftv host-specific stuff */ /* ftv host-specific stuff */
static struct hw_pci ftv_pci __initdata = { static struct hw_pci ftv_pci __initdata = {
init: plx90x0_init, .init = plx90x0_init,
swizzle: ftv_swizzle, .swizzle = ftv_swizzle,
map_irq: ftv_map_irq, .map_irq = ftv_map_irq,
}; };
static int __init ftv_pci_init(void) static int __init ftv_pci_init(void)
......
...@@ -36,17 +36,17 @@ extern void integrator_init_irq(void); ...@@ -36,17 +36,17 @@ extern void integrator_init_irq(void);
#ifdef CONFIG_KMI_KEYB #ifdef CONFIG_KMI_KEYB
static struct kmi_info integrator_keyboard __initdata = { static struct kmi_info integrator_keyboard __initdata = {
base: IO_ADDRESS(KMI0_BASE), .base = IO_ADDRESS(KMI0_BASE),
irq: IRQ_KMIINT0, .irq = IRQ_KMIINT0,
divisor: 24 / 8 - 1, .divisor = 24 / 8 - 1,
type: KMI_KEYBOARD, .type = KMI_KEYBOARD,
}; };
static struct kmi_info integrator_mouse __initdata = { static struct kmi_info integrator_mouse __initdata = {
base: IO_ADDRESS(KMI1_BASE), .base = IO_ADDRESS(KMI1_BASE),
irq: IRQ_KMIINT1, .irq = IRQ_KMIINT1,
divisor: 24 / 8 - 1, .divisor = 24 / 8 - 1,
type: KMI_MOUSE, .type = KMI_MOUSE,
}; };
#endif #endif
......
...@@ -48,9 +48,9 @@ static void sc_unmask_irq(unsigned int irq) ...@@ -48,9 +48,9 @@ static void sc_unmask_irq(unsigned int irq)
} }
static struct irqchip sc_chip = { static struct irqchip sc_chip = {
ack: sc_mask_irq, .ack = sc_mask_irq,
mask: sc_mask_irq, .mask = sc_mask_irq,
unmask: sc_unmask_irq, .unmask = sc_unmask_irq,
}; };
void __init integrator_init_irq(void) void __init integrator_init_irq(void)
......
...@@ -114,13 +114,13 @@ static int __init integrator_map_irq(struct pci_dev *dev, u8 slot, u8 pin) ...@@ -114,13 +114,13 @@ static int __init integrator_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
extern void pci_v3_init(void *); extern void pci_v3_init(void *);
static struct hw_pci integrator_pci __initdata = { static struct hw_pci integrator_pci __initdata = {
swizzle: integrator_swizzle, .swizzle = integrator_swizzle,
map_irq: integrator_map_irq, .map_irq = integrator_map_irq,
setup: pci_v3_setup, .setup = pci_v3_setup,
nr_controllers: 1, .nr_controllers = 1,
scan: pci_v3_scan_bus, .scan = pci_v3_scan_bus,
preinit: pci_v3_preinit, .preinit = pci_v3_preinit,
postinit: pci_v3_postinit, .postinit = pci_v3_postinit,
}; };
static int __init integrator_pci_init(void) static int __init integrator_pci_init(void)
......
...@@ -382,26 +382,26 @@ static int v3_write_config_dword(struct pci_dev *dev, int where, u32 val) ...@@ -382,26 +382,26 @@ static int v3_write_config_dword(struct pci_dev *dev, int where, u32 val)
} }
static struct pci_ops pci_v3_ops = { static struct pci_ops pci_v3_ops = {
read_byte: v3_read_config_byte, .read_byte = v3_read_config_byte,
read_word: v3_read_config_word, .read_word = v3_read_config_word,
read_dword: v3_read_config_dword, .read_dword = v3_read_config_dword,
write_byte: v3_write_config_byte, .write_byte = v3_write_config_byte,
write_word: v3_write_config_word, .write_word = v3_write_config_word,
write_dword: v3_write_config_dword, .write_dword = v3_write_config_dword,
}; };
static struct resource non_mem = { static struct resource non_mem = {
name: "PCI non-prefetchable", .name = "PCI non-prefetchable",
start: PHYS_PCI_MEM_BASE + PCI_BUS_NONMEM_START, .start = PHYS_PCI_MEM_BASE + PCI_BUS_NONMEM_START,
end: PHYS_PCI_MEM_BASE + PCI_BUS_NONMEM_START + PCI_BUS_NONMEM_SIZE - 1, .end = PHYS_PCI_MEM_BASE + PCI_BUS_NONMEM_START + PCI_BUS_NONMEM_SIZE - 1,
flags: IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}; };
static struct resource pre_mem = { static struct resource pre_mem = {
name: "PCI prefetchable", .name = "PCI prefetchable",
start: PHYS_PCI_MEM_BASE + PCI_BUS_PREMEM_START, .start = PHYS_PCI_MEM_BASE + PCI_BUS_PREMEM_START,
end: PHYS_PCI_MEM_BASE + PCI_BUS_PREMEM_START + PCI_BUS_PREMEM_SIZE - 1, .end = PHYS_PCI_MEM_BASE + PCI_BUS_PREMEM_START + PCI_BUS_PREMEM_SIZE - 1,
flags: IORESOURCE_MEM | IORESOURCE_PREFETCH, .flags = IORESOURCE_MEM | IORESOURCE_PREFETCH,
}; };
static int __init pci_v3_setup_resources(struct resource **resource) static int __init pci_v3_setup_resources(struct resource **resource)
......
...@@ -58,9 +58,9 @@ static void iop310_irq_unmask (unsigned int irq) ...@@ -58,9 +58,9 @@ static void iop310_irq_unmask (unsigned int irq)
} }
struct irqchip ext_chip = { struct irqchip ext_chip = {
ack: iop310_irq_mask, .ack = iop310_irq_mask,
mask: iop310_irq_mask, .mask = iop310_irq_mask,
unmask: iop310_irq_unmask, .unmask = iop310_irq_unmask,
}; };
void void
......
...@@ -41,9 +41,9 @@ static void iq80310_irq_unmask(unsigned int irq) ...@@ -41,9 +41,9 @@ static void iq80310_irq_unmask(unsigned int irq)
} }
static struct irqchip iq80310_irq_chip = { static struct irqchip iq80310_irq_chip = {
ack: iq80310_irq_mask, .ack = iq80310_irq_mask,
mask: iq80310_irq_mask, .mask = iq80310_irq_mask,
unmask: iq80310_irq_unmask, .unmask = iq80310_irq_unmask,
}; };
extern struct irqchip ext_chip; extern struct irqchip ext_chip;
......
...@@ -147,11 +147,11 @@ static void iq80310_preinit(void) ...@@ -147,11 +147,11 @@ static void iq80310_preinit(void)
} }
static struct hw_pci iq80310_pci __initdata = { static struct hw_pci iq80310_pci __initdata = {
swizzle: pci_std_swizzle, .swizzle = pci_std_swizzle,
nr_controllers: 2, .nr_controllers = 2,
setup: iq80310_setup, .setup = iq80310_setup,
scan: iop310_scan_bus, .scan = iop310_scan_bus,
preinit: iq80310_preinit, .preinit = iq80310_preinit,
}; };
static int __init iq80310_pci_init(void) static int __init iq80310_pci_init(void)
......
...@@ -119,8 +119,8 @@ static void iq80310_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) ...@@ -119,8 +119,8 @@ static void iq80310_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
extern unsigned long (*gettimeoffset)(void); extern unsigned long (*gettimeoffset)(void);
static struct irqaction timer_irq = { static struct irqaction timer_irq = {
name: "timer", .name = "timer",
handler: iq80310_timer_interrupt, .handler = iq80310_timer_interrupt,
}; };
......
...@@ -47,9 +47,9 @@ static void xs80200_irq_unmask (unsigned int irq) ...@@ -47,9 +47,9 @@ static void xs80200_irq_unmask (unsigned int irq)
} }
static struct irqchip xs80200_chip = { static struct irqchip xs80200_chip = {
ack: xs80200_irq_mask, .ack = xs80200_irq_mask,
mask: xs80200_irq_mask, .mask = xs80200_irq_mask,
unmask: xs80200_irq_unmask, .unmask = xs80200_irq_unmask,
}; };
void __init xs80200_init_irq(void) void __init xs80200_init_irq(void)
......
...@@ -40,9 +40,9 @@ static void pxa_unmask_irq(unsigned int irq) ...@@ -40,9 +40,9 @@ static void pxa_unmask_irq(unsigned int irq)
} }
static struct irqchip pxa_internal_chip = { static struct irqchip pxa_internal_chip = {
ack: pxa_mask_irq, .ack = pxa_mask_irq,
mask: pxa_mask_irq, .mask = pxa_mask_irq,
unmask: pxa_unmask_irq, .unmask = pxa_unmask_irq,
}; };
/* /*
...@@ -109,11 +109,11 @@ static void pxa_ack_low_gpio(unsigned int irq) ...@@ -109,11 +109,11 @@ static void pxa_ack_low_gpio(unsigned int irq)
} }
static struct irqchip pxa_low_gpio_chip = { static struct irqchip pxa_low_gpio_chip = {
ack: pxa_ack_low_gpio, .ack = pxa_ack_low_gpio,
mask: pxa_mask_irq, .mask = pxa_mask_irq,
unmask: pxa_unmask_irq, .unmask = pxa_unmask_irq,
rerun: pxa_manual_rerun, .rerun = pxa_manual_rerun,
type: pxa_gpio_irq_type, .type = pxa_gpio_irq_type,
}; };
/* /*
...@@ -201,11 +201,11 @@ static void pxa_unmask_muxed_gpio(unsigned int irq) ...@@ -201,11 +201,11 @@ static void pxa_unmask_muxed_gpio(unsigned int irq)
} }
static struct irqchip pxa_muxed_gpio_chip = { static struct irqchip pxa_muxed_gpio_chip = {
ack: pxa_ack_muxed_gpio, .ack = pxa_ack_muxed_gpio,
mask: pxa_mask_muxed_gpio, .mask = pxa_mask_muxed_gpio,
unmask: pxa_unmask_muxed_gpio, .unmask = pxa_unmask_muxed_gpio,
rerun: pxa_manual_rerun, .rerun = pxa_manual_rerun,
type: pxa_gpio_irq_type, .type = pxa_gpio_irq_type,
}; };
......
...@@ -54,9 +54,9 @@ static void lubbock_unmask_irq(unsigned int irq) ...@@ -54,9 +54,9 @@ static void lubbock_unmask_irq(unsigned int irq)
} }
static struct irqchip lubbock_irq_chip = { static struct irqchip lubbock_irq_chip = {
ack: lubbock_ack_irq, .ack = lubbock_ack_irq,
mask: lubbock_mask_irq, .mask = lubbock_mask_irq,
unmask: lubbock_unmask_irq, .unmask = lubbock_unmask_irq,
}; };
void lubbock_irq_handler(unsigned int irq, struct irqdesc *desc, void lubbock_irq_handler(unsigned int irq, struct irqdesc *desc,
......
...@@ -216,16 +216,16 @@ static int iomd_set_dma_speed(dmach_t channel, dma_t *dma, int cycle) ...@@ -216,16 +216,16 @@ static int iomd_set_dma_speed(dmach_t channel, dma_t *dma, int cycle)
} }
static struct dma_ops iomd_dma_ops = { static struct dma_ops iomd_dma_ops = {
type: "IOMD", .type = "IOMD",
request: iomd_request_dma, .request = iomd_request_dma,
free: iomd_free_dma, .free = iomd_free_dma,
enable: iomd_enable_dma, .enable = iomd_enable_dma,
disable: iomd_disable_dma, .disable = iomd_disable_dma,
setspeed: iomd_set_dma_speed, .setspeed = iomd_set_dma_speed,
}; };
static struct fiq_handler fh = { static struct fiq_handler fh = {
name: "floppydma" .name = "floppydma"
}; };
static void floppy_enable_dma(dmach_t channel, dma_t *dma) static void floppy_enable_dma(dmach_t channel, dma_t *dma)
...@@ -275,10 +275,10 @@ static int floppy_get_residue(dmach_t channel, dma_t *dma) ...@@ -275,10 +275,10 @@ static int floppy_get_residue(dmach_t channel, dma_t *dma)
} }
static struct dma_ops floppy_dma_ops = { static struct dma_ops floppy_dma_ops = {
type: "FIQDMA", .type = "FIQDMA",
enable: floppy_enable_dma, .enable = floppy_enable_dma,
disable: floppy_disable_dma, .disable = floppy_disable_dma,
residue: floppy_get_residue, .residue = floppy_get_residue,
}; };
/* /*
...@@ -289,9 +289,9 @@ static void sound_enable_disable_dma(dmach_t channel, dma_t *dma) ...@@ -289,9 +289,9 @@ static void sound_enable_disable_dma(dmach_t channel, dma_t *dma)
} }
static struct dma_ops sound_dma_ops = { static struct dma_ops sound_dma_ops = {
type: "VIRTUAL", .type = "VIRTUAL",
enable: sound_enable_disable_dma, .enable = sound_enable_disable_dma,
disable: sound_enable_disable_dma, .disable = sound_enable_disable_dma,
}; };
void __init arch_dma_init(dma_t *dma) void __init arch_dma_init(dma_t *dma)
......
...@@ -34,9 +34,9 @@ static void iomd_unmask_irq_a(unsigned int irq) ...@@ -34,9 +34,9 @@ static void iomd_unmask_irq_a(unsigned int irq)
} }
static struct irqchip iomd_a_chip = { static struct irqchip iomd_a_chip = {
ack: iomd_ack_irq_a, .ack = iomd_ack_irq_a,
mask: iomd_mask_irq_a, .mask = iomd_mask_irq_a,
unmask: iomd_unmask_irq_a, .unmask = iomd_unmask_irq_a,
}; };
static void iomd_mask_irq_b(unsigned int irq) static void iomd_mask_irq_b(unsigned int irq)
...@@ -58,9 +58,9 @@ static void iomd_unmask_irq_b(unsigned int irq) ...@@ -58,9 +58,9 @@ static void iomd_unmask_irq_b(unsigned int irq)
} }
static struct irqchip iomd_b_chip = { static struct irqchip iomd_b_chip = {
ack: iomd_mask_irq_b, .ack = iomd_mask_irq_b,
mask: iomd_mask_irq_b, .mask = iomd_mask_irq_b,
unmask: iomd_unmask_irq_b, .unmask = iomd_unmask_irq_b,
}; };
static void iomd_mask_irq_dma(unsigned int irq) static void iomd_mask_irq_dma(unsigned int irq)
...@@ -82,9 +82,9 @@ static void iomd_unmask_irq_dma(unsigned int irq) ...@@ -82,9 +82,9 @@ static void iomd_unmask_irq_dma(unsigned int irq)
} }
static struct irqchip iomd_dma_chip = { static struct irqchip iomd_dma_chip = {
ack: iomd_mask_irq_dma, .ack = iomd_mask_irq_dma,
mask: iomd_mask_irq_dma, .mask = iomd_mask_irq_dma,
unmask: iomd_unmask_irq_dma, .unmask = iomd_unmask_irq_dma,
}; };
static void iomd_mask_irq_fiq(unsigned int irq) static void iomd_mask_irq_fiq(unsigned int irq)
...@@ -106,9 +106,9 @@ static void iomd_unmask_irq_fiq(unsigned int irq) ...@@ -106,9 +106,9 @@ static void iomd_unmask_irq_fiq(unsigned int irq)
} }
static struct irqchip iomd_fiq_chip = { static struct irqchip iomd_fiq_chip = {
ack: iomd_mask_irq_fiq, .ack = iomd_mask_irq_fiq,
mask: iomd_mask_irq_fiq, .mask = iomd_mask_irq_fiq,
unmask: iomd_unmask_irq_fiq, .unmask = iomd_unmask_irq_fiq,
}; };
void __init rpc_init_irq(void) void __init rpc_init_irq(void)
......
...@@ -100,7 +100,7 @@ static int adsbitsy_uart_open(struct uart_port *port, struct uart_info *info) ...@@ -100,7 +100,7 @@ static int adsbitsy_uart_open(struct uart_port *port, struct uart_info *info)
} }
static struct sa1100_port_fns adsbitsy_port_fns __initdata = { static struct sa1100_port_fns adsbitsy_port_fns __initdata = {
open: adsbitsy_uart_open, .open = adsbitsy_uart_open,
}; };
static void __init adsbitsy_map_io(void) static void __init adsbitsy_map_io(void)
......
...@@ -254,9 +254,9 @@ static u_int assabet_get_mctrl(struct uart_port *port) ...@@ -254,9 +254,9 @@ static u_int assabet_get_mctrl(struct uart_port *port)
} }
static struct sa1100_port_fns assabet_port_fns __initdata = { static struct sa1100_port_fns assabet_port_fns __initdata = {
set_mctrl: assabet_set_mctrl, .set_mctrl = assabet_set_mctrl,
get_mctrl: assabet_get_mctrl, .get_mctrl = assabet_get_mctrl,
pm: assabet_uart_pm, .pm = assabet_uart_pm,
}; };
static struct map_desc assabet_io_desc[] __initdata = { static struct map_desc assabet_io_desc[] __initdata = {
......
...@@ -216,7 +216,7 @@ static int sa1100_dram_notifier(struct notifier_block *nb, ...@@ -216,7 +216,7 @@ static int sa1100_dram_notifier(struct notifier_block *nb,
static struct notifier_block sa1100_dram_block = { static struct notifier_block sa1100_dram_block = {
notifier_call: sa1100_dram_notifier, .notifier_call = sa1100_dram_notifier,
}; };
......
...@@ -51,53 +51,53 @@ struct sdram_info { ...@@ -51,53 +51,53 @@ struct sdram_info {
}; };
static struct sdram_params tc59sm716_cl2_params __initdata = { static struct sdram_params tc59sm716_cl2_params __initdata = {
rows: 12, .rows = 12,
tck: 10, .tck = 10,
trcd: 20, .trcd = 20,
trp: 20, .trp = 20,
twr: 10, .twr = 10,
refresh: 64000, .refresh = 64000,
cas_latency: 2, .cas_latency = 2,
}; };
static struct sdram_params tc59sm716_cl3_params __initdata = { static struct sdram_params tc59sm716_cl3_params __initdata = {
rows: 12, .rows = 12,
tck: 8, .tck = 8,
trcd: 20, .trcd = 20,
trp: 20, .trp = 20,
twr: 8, .twr = 8,
refresh: 64000, .refresh = 64000,
cas_latency: 3, .cas_latency = 3,
}; };
static struct sdram_params samsung_k4s641632d_tc75 __initdata = { static struct sdram_params samsung_k4s641632d_tc75 __initdata = {
rows: 14, .rows = 14,
tck: 9, .tck = 9,
trcd: 27, .trcd = 27,
trp: 20, .trp = 20,
twr: 9, .twr = 9,
refresh: 64000, .refresh = 64000,
cas_latency: 3, .cas_latency = 3,
}; };
static struct sdram_params samsung_km416s4030ct __initdata = { static struct sdram_params samsung_km416s4030ct __initdata = {
rows: 13, .rows = 13,
tck: 8, .tck = 8,
trcd: 24, /* 3 CLKs */ .trcd = 24, /* 3 CLKs */
trp: 24, /* 3 CLKs */ .trp = 24, /* 3 CLKs */
twr: 16, /* Trdl: 2 CLKs */ .twr = 16, /* Trdl: 2 CLKs */
refresh: 64000, .refresh = 64000,
cas_latency: 3, .cas_latency = 3,
}; };
static struct sdram_params wbond_w982516ah75l_cl3_params __initdata = { static struct sdram_params wbond_w982516ah75l_cl3_params __initdata = {
rows: 16, .rows = 16,
tck: 8, .tck = 8,
trcd: 20, .trcd = 20,
trp: 20, .trp = 20,
twr: 8, .twr = 8,
refresh: 64000, .refresh = 64000,
cas_latency: 3, .cas_latency = 3,
}; };
static struct sdram_params sdram_params; static struct sdram_params sdram_params;
......
...@@ -67,9 +67,9 @@ static void gc_unmask_irq1(unsigned int irq) ...@@ -67,9 +67,9 @@ static void gc_unmask_irq1(unsigned int irq)
} }
static struct irqchip gc_irq1_chip = { static struct irqchip gc_irq1_chip = {
ack: gc_mask_irq1, .ack = gc_mask_irq1,
mask: gc_mask_irq1, .mask = gc_mask_irq1,
unmask: gc_unmask_irq1, .unmask = gc_unmask_irq1,
}; };
static void gc_mask_irq2(unsigned int irq) static void gc_mask_irq2(unsigned int irq)
...@@ -85,9 +85,9 @@ static void gc_unmask_irq2(unsigned int irq) ...@@ -85,9 +85,9 @@ static void gc_unmask_irq2(unsigned int irq)
} }
static struct irqchip gc_irq2_chip = { static struct irqchip gc_irq2_chip = {
ack: gc_mask_irq2, .ack = gc_mask_irq2,
mask: gc_mask_irq2, .mask = gc_mask_irq2,
unmask: gc_unmask_irq2, .unmask = gc_unmask_irq2,
}; };
static void __init graphicsclient_init_irq(void) static void __init graphicsclient_init_irq(void)
...@@ -178,9 +178,9 @@ graphicsclient_uart_pm(struct uart_port *port, u_int state, u_int oldstate) ...@@ -178,9 +178,9 @@ graphicsclient_uart_pm(struct uart_port *port, u_int state, u_int oldstate)
} }
static struct sa1100_port_fns graphicsclient_port_fns __initdata = { static struct sa1100_port_fns graphicsclient_port_fns __initdata = {
get_mctrl: graphicsclient_get_mctrl, .get_mctrl = graphicsclient_get_mctrl,
set_mctrl: graphicsclient_set_mctrl, .set_mctrl = graphicsclient_set_mctrl,
pm: graphicsclient_uart_pm, .pm = graphicsclient_uart_pm,
}; };
static void __init graphicsclient_map_io(void) static void __init graphicsclient_map_io(void)
......
...@@ -100,9 +100,9 @@ static void gm_unmask_irq1(unsigned int irq) ...@@ -100,9 +100,9 @@ static void gm_unmask_irq1(unsigned int irq)
} }
static struct irqchip gm_irq1_chip = { static struct irqchip gm_irq1_chip = {
ack: gm_mask_irq1, .ack = gm_mask_irq1,
mask: gm_mask_irq1, .mask = gm_mask_irq1,
unmask: gm_unmask_irq1, .unmask = gm_unmask_irq1,
}; };
static void gm_mask_irq2(unsigned int irq) static void gm_mask_irq2(unsigned int irq)
...@@ -118,9 +118,9 @@ static void gm_unmask_irq2(unsigned int irq) ...@@ -118,9 +118,9 @@ static void gm_unmask_irq2(unsigned int irq)
} }
static struct irqchip gm_irq2_chip = { static struct irqchip gm_irq2_chip = {
ack: gm_mask_irq2, .ack = gm_mask_irq2,
mask: gm_mask_irq2, .mask = gm_mask_irq2,
unmask: gm_unmask_irq2, .unmask = gm_unmask_irq2,
}; };
static void __init graphicsmaster_init_irq(void) static void __init graphicsmaster_init_irq(void)
...@@ -236,9 +236,9 @@ graphicsmaster_uart_pm(struct uart_port *port, u_int state, u_int oldstate) ...@@ -236,9 +236,9 @@ graphicsmaster_uart_pm(struct uart_port *port, u_int state, u_int oldstate)
} }
static struct sa1100_port_fns graphicsmaster_port_fns __initdata = { static struct sa1100_port_fns graphicsmaster_port_fns __initdata = {
get_mctrl: graphicsmaster_get_mctrl, .get_mctrl = graphicsmaster_get_mctrl,
set_mctrl: graphicsmaster_set_mctrl, .set_mctrl = graphicsmaster_set_mctrl,
pm: graphicsmaster_uart_pm, .pm = graphicsmaster_uart_pm,
}; };
static void __init graphicsmaster_map_io(void) static void __init graphicsmaster_map_io(void)
......
...@@ -428,10 +428,10 @@ static int h3600_uart_set_wake(struct uart_port *port, u_int enable) ...@@ -428,10 +428,10 @@ static int h3600_uart_set_wake(struct uart_port *port, u_int enable)
} }
static struct sa1100_port_fns h3600_port_fns __initdata = { static struct sa1100_port_fns h3600_port_fns __initdata = {
set_mctrl: h3600_uart_set_mctrl, .set_mctrl = h3600_uart_set_mctrl,
get_mctrl: h3600_uart_get_mctrl, .get_mctrl = h3600_uart_get_mctrl,
pm: h3600_uart_pm, .pm = h3600_uart_pm,
set_wake: h3600_uart_set_wake, .set_wake = h3600_uart_set_wake,
}; };
static struct map_desc h3600_io_desc[] __initdata = { static struct map_desc h3600_io_desc[] __initdata = {
......
...@@ -95,11 +95,11 @@ static void sa1100_low_gpio_unmask(unsigned int irq) ...@@ -95,11 +95,11 @@ static void sa1100_low_gpio_unmask(unsigned int irq)
} }
static struct irqchip sa1100_low_gpio_chip = { static struct irqchip sa1100_low_gpio_chip = {
ack: sa1100_low_gpio_ack, .ack = sa1100_low_gpio_ack,
mask: sa1100_low_gpio_mask, .mask = sa1100_low_gpio_mask,
unmask: sa1100_low_gpio_unmask, .unmask = sa1100_low_gpio_unmask,
rerun: sa1100_manual_rerun, .rerun = sa1100_manual_rerun,
type: sa1100_gpio_type, .type = sa1100_gpio_type,
}; };
/* /*
...@@ -169,11 +169,11 @@ static void sa1100_high_gpio_unmask(unsigned int irq) ...@@ -169,11 +169,11 @@ static void sa1100_high_gpio_unmask(unsigned int irq)
} }
static struct irqchip sa1100_high_gpio_chip = { static struct irqchip sa1100_high_gpio_chip = {
ack: sa1100_high_gpio_ack, .ack = sa1100_high_gpio_ack,
mask: sa1100_high_gpio_mask, .mask = sa1100_high_gpio_mask,
unmask: sa1100_high_gpio_unmask, .unmask = sa1100_high_gpio_unmask,
rerun: sa1100_manual_rerun, .rerun = sa1100_manual_rerun,
type: sa1100_gpio_type, .type = sa1100_gpio_type,
}; };
/* /*
...@@ -191,16 +191,16 @@ static void sa1100_unmask_irq(unsigned int irq) ...@@ -191,16 +191,16 @@ static void sa1100_unmask_irq(unsigned int irq)
} }
static struct irqchip sa1100_normal_chip = { static struct irqchip sa1100_normal_chip = {
ack: sa1100_mask_irq, .ack = sa1100_mask_irq,
mask: sa1100_mask_irq, .mask = sa1100_mask_irq,
unmask: sa1100_unmask_irq, .unmask = sa1100_unmask_irq,
/* rerun should never be called */ /* rerun should never be called */
}; };
static struct resource irq_resource = { static struct resource irq_resource = {
name: "irqs", .name = "irqs",
start: 0x90050000, .start = 0x90050000,
end: 0x9005ffff, .end = 0x9005ffff,
}; };
void __init sa1100_init_irq(void) void __init sa1100_init_irq(void)
......
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
#include "sa1111.h" #include "sa1111.h"
static struct device neponset_device = { static struct device neponset_device = {
name: "Neponset", .name = "Neponset",
bus_id: "nep_bus", .bus_id = "nep_bus",
}; };
/* /*
...@@ -159,8 +159,8 @@ static u_int neponset_get_mctrl(struct uart_port *port) ...@@ -159,8 +159,8 @@ static u_int neponset_get_mctrl(struct uart_port *port)
} }
static struct sa1100_port_fns neponset_port_fns __initdata = { static struct sa1100_port_fns neponset_port_fns __initdata = {
set_mctrl: neponset_set_mctrl, .set_mctrl = neponset_set_mctrl,
get_mctrl: neponset_get_mctrl, .get_mctrl = neponset_get_mctrl,
}; };
static int __init neponset_init(void) static int __init neponset_init(void)
......
...@@ -133,11 +133,11 @@ static int sa1111_type_lowirq(unsigned int irq, unsigned int flags) ...@@ -133,11 +133,11 @@ static int sa1111_type_lowirq(unsigned int irq, unsigned int flags)
} }
static struct irqchip sa1111_low_chip = { static struct irqchip sa1111_low_chip = {
ack: sa1111_ack_lowirq, .ack = sa1111_ack_lowirq,
mask: sa1111_mask_lowirq, .mask = sa1111_mask_lowirq,
unmask: sa1111_unmask_lowirq, .unmask = sa1111_unmask_lowirq,
rerun: sa1111_rerun_lowirq, .rerun = sa1111_rerun_lowirq,
type: sa1111_type_lowirq, .type = sa1111_type_lowirq,
}; };
static void sa1111_ack_highirq(unsigned int irq) static void sa1111_ack_highirq(unsigned int irq)
...@@ -198,11 +198,11 @@ static int sa1111_type_highirq(unsigned int irq, unsigned int flags) ...@@ -198,11 +198,11 @@ static int sa1111_type_highirq(unsigned int irq, unsigned int flags)
} }
static struct irqchip sa1111_high_chip = { static struct irqchip sa1111_high_chip = {
ack: sa1111_ack_highirq, .ack = sa1111_ack_highirq,
mask: sa1111_mask_highirq, .mask = sa1111_mask_highirq,
unmask: sa1111_unmask_highirq, .unmask = sa1111_unmask_highirq,
rerun: sa1111_rerun_highirq, .rerun = sa1111_rerun_highirq,
type: sa1111_type_highirq, .type = sa1111_type_highirq,
}; };
static void __init sa1111_init_irq(int irq_nr) static void __init sa1111_init_irq(int irq_nr)
...@@ -257,8 +257,8 @@ static int sa1111_resume(struct device *dev, u32 level) ...@@ -257,8 +257,8 @@ static int sa1111_resume(struct device *dev, u32 level)
} }
static struct device_driver sa1111_device_driver = { static struct device_driver sa1111_device_driver = {
suspend: sa1111_suspend, .suspend = sa1111_suspend,
resume: sa1111_resume, .resume = sa1111_resume,
}; };
/** /**
......
...@@ -57,7 +57,7 @@ static void simpad_uart_pm(struct uart_port *port, u_int state, u_int oldstate) ...@@ -57,7 +57,7 @@ static void simpad_uart_pm(struct uart_port *port, u_int state, u_int oldstate)
} }
static struct sa1100_port_fns simpad_port_fns __initdata = { static struct sa1100_port_fns simpad_port_fns __initdata = {
pm: simpad_uart_pm, .pm = simpad_uart_pm,
}; };
static void __init simpad_map_io(void) static void __init simpad_map_io(void)
......
...@@ -100,13 +100,13 @@ static struct map_desc system3_io_desc[] __initdata = { ...@@ -100,13 +100,13 @@ static struct map_desc system3_io_desc[] __initdata = {
}; };
static struct sa1100_port_fns system3_port_fns __initdata = { static struct sa1100_port_fns system3_port_fns __initdata = {
set_mctrl: system3_set_mctrl, .set_mctrl = system3_set_mctrl,
get_mctrl: system3_get_mctrl, .get_mctrl = system3_get_mctrl,
pm: system3_uart_pm, .pm = system3_uart_pm,
}; };
static struct notifier_block system3_clkchg_block = { static struct notifier_block system3_clkchg_block = {
notifier_call: sdram_notifier, .notifier_call = sdram_notifier,
}; };
/********************************************************************** /**********************************************************************
......
...@@ -69,9 +69,9 @@ static void bogus_int(int irq, void *dev_id, struct pt_regs *regs) ...@@ -69,9 +69,9 @@ static void bogus_int(int irq, void *dev_id, struct pt_regs *regs)
static struct irqaction cascade; static struct irqaction cascade;
static struct irqchip fb_chip = { static struct irqchip fb_chip = {
ack: shark_ack_8259A_irq, .ack = shark_ack_8259A_irq,
mask: shark_disable_8259A_irq, .mask = shark_disable_8259A_irq,
unmask: shark_enable_8259A_irq, .unmask = shark_enable_8259A_irq,
}; };
void __init shark_init_irq(void) void __init shark_init_irq(void)
......
...@@ -24,12 +24,12 @@ static int __init shark_map_irq(struct pci_dev *dev, u8 slot, u8 pin) ...@@ -24,12 +24,12 @@ static int __init shark_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
extern void __init via82c505_preinit(void *sysdata); extern void __init via82c505_preinit(void *sysdata);
static struct hw_pci shark_pci __initdata = { static struct hw_pci shark_pci __initdata = {
setup: via82c505_setup, .setup = via82c505_setup,
swizzle: pci_std_swizzle, .swizzle = pci_std_swizzle,
map_irq: shark_map_irq, .map_irq = shark_map_irq,
nr_controllers: 1, .nr_controllers = 1,
scan: via82c505_scan_bus, .scan = via82c505_scan_bus,
preinit: via82c505_preinit .preinit = via82c505_preinit
}; };
static int __init shark_pci_init(void) static int __init shark_pci_init(void)
......
...@@ -379,21 +379,21 @@ static void do_fd_request(request_queue_t *); ...@@ -379,21 +379,21 @@ static void do_fd_request(request_queue_t *);
/************************* End of Prototypes **************************/ /************************* End of Prototypes **************************/
static struct timer_list motor_off_timer = { static struct timer_list motor_off_timer = {
function: fd_motor_off_timer, .function = fd_motor_off_timer,
}; };
#ifdef TRACKBUFFER #ifdef TRACKBUFFER
static struct timer_list readtrack_timer = { static struct timer_list readtrack_timer = {
function: fd_readtrack_check, .function = fd_readtrack_check,
}; };
#endif #endif
static struct timer_list timeout_timer = { static struct timer_list timeout_timer = {
function: fd_times_out, .function = fd_times_out,
}; };
static struct timer_list fd_timer = { static struct timer_list fd_timer = {
function: check_change, .function = check_change,
}; };
/* DAG: Haven't got a clue what this is? */ /* DAG: Haven't got a clue what this is? */
...@@ -1548,11 +1548,11 @@ static int floppy_release(struct inode *inode, struct file *filp) ...@@ -1548,11 +1548,11 @@ static int floppy_release(struct inode *inode, struct file *filp)
static struct block_device_operations floppy_fops = static struct block_device_operations floppy_fops =
{ {
open: floppy_open, .open = floppy_open,
release: floppy_release, .release = floppy_release,
ioctl: fd_ioctl, .ioctl = fd_ioctl,
check_media_change: check_floppy_change, .check_media_change = check_floppy_change,
revalidate: floppy_revalidate, .revalidate = floppy_revalidate,
}; };
......
...@@ -1255,25 +1255,25 @@ void xd_set_geometry(struct block_device *bdev, unsigned char secsptrack, ...@@ -1255,25 +1255,25 @@ void xd_set_geometry(struct block_device *bdev, unsigned char secsptrack,
static struct gendisk mfm_gendisk[2] = { static struct gendisk mfm_gendisk[2] = {
{ {
major: MAJOR_NR, .major = MAJOR_NR,
first_minor: 0, .first_minor = 0,
major_name: "mfm", .major_name = "mfm",
minor_shift: 6, .minor_shift = 6,
part: mfm, .part = mfm,
}, },
{ {
major: MAJOR_NR, .major = MAJOR_NR,
first_minor: 64, .first_minor = 64,
major_name: "mfm", .major_name = "mfm",
minor_shift: 6, .minor_shift = 6,
part: mfm + 64, .part = mfm + 64,
}; };
static struct block_device_operations mfm_fops = static struct block_device_operations mfm_fops =
{ {
owner: THIS_MODULE, .owner = THIS_MODULE,
open: mfm_open, .open = mfm_open,
ioctl: mfm_ioctl, .ioctl = mfm_ioctl,
}; };
static void mfm_geninit (void) static void mfm_geninit (void)
......
...@@ -200,13 +200,13 @@ static int rtc_ioctl(struct inode *inode, struct file *file, ...@@ -200,13 +200,13 @@ static int rtc_ioctl(struct inode *inode, struct file *file,
} }
static struct file_operations rtc_fops = { static struct file_operations rtc_fops = {
ioctl: rtc_ioctl, .ioctl = rtc_ioctl,
}; };
static struct miscdevice rtc_dev = { static struct miscdevice rtc_dev = {
minor: RTC_MINOR, .minor = RTC_MINOR,
name: "rtc", .name = "rtc",
fops: &rtc_fops, .fops = &rtc_fops,
}; };
/* IOC / IOMD i2c driver */ /* IOC / IOMD i2c driver */
...@@ -264,13 +264,13 @@ static int ioc_getsda(void *data) ...@@ -264,13 +264,13 @@ static int ioc_getsda(void *data)
} }
static struct i2c_algo_bit_data ioc_data = { static struct i2c_algo_bit_data ioc_data = {
setsda: ioc_setsda, .setsda = ioc_setsda,
setscl: ioc_setscl, .setscl = ioc_setscl,
getsda: ioc_getsda, .getsda = ioc_getsda,
getscl: ioc_getscl, .getscl = ioc_getscl,
udelay: 80, .udelay = 80,
mdelay: 80, .mdelay = 80,
timeout: 100 .timeout = 100
}; };
static int ioc_client_reg(struct i2c_client *client) static int ioc_client_reg(struct i2c_client *client)
...@@ -303,11 +303,11 @@ static int ioc_client_unreg(struct i2c_client *client) ...@@ -303,11 +303,11 @@ static int ioc_client_unreg(struct i2c_client *client)
} }
static struct i2c_adapter ioc_ops = { static struct i2c_adapter ioc_ops = {
name: "IOC/IOMD", .name = "IOC/IOMD",
id: I2C_HW_B_IOC, .id = I2C_HW_B_IOC,
algo_data: &ioc_data, .algo_data = &ioc_data,
client_register: ioc_client_reg, .client_register = ioc_client_reg,
client_unregister: ioc_client_unreg .client_unregister = ioc_client_unreg
}; };
static int __init i2c_ioc_init(void) static int __init i2c_ioc_init(void)
......
...@@ -250,12 +250,12 @@ static unsigned int aux_poll(struct file *file, poll_table * wait) ...@@ -250,12 +250,12 @@ static unsigned int aux_poll(struct file *file, poll_table * wait)
} }
struct file_operations psaux_fops = { struct file_operations psaux_fops = {
read: read_aux, .read = read_aux,
write: write_aux, .write = write_aux,
poll: aux_poll, .poll = aux_poll,
open: open_aux, .open = open_aux,
release: release_aux, .release = release_aux,
fasync: fasync_aux, .fasync = fasync_aux,
}; };
/* /*
......
...@@ -23,13 +23,13 @@ static unsigned short ignore[] = { I2C_CLIENT_END }; ...@@ -23,13 +23,13 @@ static unsigned short ignore[] = { I2C_CLIENT_END };
static unsigned short normal_addr[] = { 0x50, I2C_CLIENT_END }; static unsigned short normal_addr[] = { 0x50, I2C_CLIENT_END };
static struct i2c_client_address_data addr_data = { static struct i2c_client_address_data addr_data = {
normal_i2c: normal_addr, .normal_i2c = normal_addr,
normal_i2c_range: ignore, .normal_i2c_range = ignore,
probe: ignore, .probe = ignore,
probe_range: ignore, .probe_range = ignore,
ignore: ignore, .ignore = ignore,
ignore_range: ignore, .ignore_range = ignore,
force: ignore, .force = ignore,
}; };
#define DAT(x) ((unsigned int)(x->data)) #define DAT(x) ((unsigned int)(x->data))
...@@ -224,12 +224,12 @@ pcf8583_command(struct i2c_client *client, unsigned int cmd, void *arg) ...@@ -224,12 +224,12 @@ pcf8583_command(struct i2c_client *client, unsigned int cmd, void *arg)
} }
static struct i2c_driver pcf8583_driver = { static struct i2c_driver pcf8583_driver = {
name: "PCF8583", .name = "PCF8583",
id: I2C_DRIVERID_PCF8583, .id = I2C_DRIVERID_PCF8583,
flags: I2C_DF_NOTIFY, .flags = I2C_DF_NOTIFY,
attach_adapter: pcf8583_probe, .attach_adapter = pcf8583_probe,
detach_client: pcf8583_detach, .detach_client = pcf8583_detach,
command: pcf8583_command .command = pcf8583_command
}; };
static __init int pcf8583_init(void) static __init int pcf8583_init(void)
......
...@@ -141,8 +141,8 @@ static void etherh_irq_disable(ecard_t *ec, int irqnr) ...@@ -141,8 +141,8 @@ static void etherh_irq_disable(ecard_t *ec, int irqnr)
} }
static expansioncard_ops_t etherh_ops = { static expansioncard_ops_t etherh_ops = {
irqenable: etherh_irq_enable, .irqenable = etherh_irq_enable,
irqdisable: etherh_irq_disable, .irqdisable = etherh_irq_disable,
}; };
......
...@@ -3120,22 +3120,22 @@ int acornscsi_proc_info(char *buffer, char **start, off_t offset, ...@@ -3120,22 +3120,22 @@ int acornscsi_proc_info(char *buffer, char **start, off_t offset,
} }
static Scsi_Host_Template acornscsi_template = { static Scsi_Host_Template acornscsi_template = {
module: THIS_MODULE, .module = THIS_MODULE,
proc_info: acornscsi_proc_info, .proc_info = acornscsi_proc_info,
name: "AcornSCSI", .name = "AcornSCSI",
detect: acornscsi_detect, .detect = acornscsi_detect,
release: acornscsi_release, .release = acornscsi_release,
info: acornscsi_info, .info = acornscsi_info,
queuecommand: acornscsi_queuecmd, .queuecommand = acornscsi_queuecmd,
abort: acornscsi_abort, .abort = acornscsi_abort,
reset: acornscsi_reset, .reset = acornscsi_reset,
bios_param: scsicam_bios_param, .bios_param = scsicam_bios_param,
can_queue: 16, .can_queue = 16,
this_id: 7, .this_id = 7,
sg_tablesize: SG_ALL, .sg_tablesize = SG_ALL,
cmd_per_lun: 2, .cmd_per_lun = 2,
unchecked_isa_dma: 0, .unchecked_isa_dma = 0,
use_clustering: DISABLE_CLUSTERING .use_clustering = DISABLE_CLUSTERING
}; };
static int __init acornscsi_init(void) static int __init acornscsi_init(void)
......
...@@ -389,21 +389,21 @@ static void cumanascsi_write(struct Scsi_Host *instance, int reg, int value) ...@@ -389,21 +389,21 @@ static void cumanascsi_write(struct Scsi_Host *instance, int reg, int value)
#include "../../scsi/NCR5380.c" #include "../../scsi/NCR5380.c"
static Scsi_Host_Template cumanascsi_template = { static Scsi_Host_Template cumanascsi_template = {
module: THIS_MODULE, .module = THIS_MODULE,
name: "Cumana 16-bit SCSI", .name = "Cumana 16-bit SCSI",
detect: cumanascsi_detect, .detect = cumanascsi_detect,
release: cumanascsi_release, .release = cumanascsi_release,
info: cumanascsi_info, .info = cumanascsi_info,
queuecommand: cumanascsi_queue_command, .queuecommand = cumanascsi_queue_command,
abort: cumanascsi_abort, .abort = cumanascsi_abort,
reset: cumanascsi_reset, .reset = cumanascsi_reset,
bios_param: scsicam_bios_param, .bios_param = scsicam_bios_param,
can_queue: 16, .can_queue = 16,
this_id: 7, .this_id = 7,
sg_tablesize: SG_ALL, .sg_tablesize = SG_ALL,
cmd_per_lun: 2, .cmd_per_lun = 2,
unchecked_isa_dma: 0, .unchecked_isa_dma = 0,
use_clustering: DISABLE_CLUSTERING .use_clustering = DISABLE_CLUSTERING
}; };
static int __init cumanascsi_init(void) static int __init cumanascsi_init(void)
......
...@@ -557,24 +557,24 @@ int cumanascsi_2_proc_info (char *buffer, char **start, off_t offset, ...@@ -557,24 +557,24 @@ int cumanascsi_2_proc_info (char *buffer, char **start, off_t offset,
} }
static Scsi_Host_Template cumanascsi2_template = { static Scsi_Host_Template cumanascsi2_template = {
module: THIS_MODULE, .module = THIS_MODULE,
proc_info: cumanascsi_2_proc_info, .proc_info = cumanascsi_2_proc_info,
name: "Cumana SCSI II", .name = "Cumana SCSI II",
detect: cumanascsi_2_detect, .detect = cumanascsi_2_detect,
release: cumanascsi_2_release, .release = cumanascsi_2_release,
info: cumanascsi_2_info, .info = cumanascsi_2_info,
bios_param: scsicam_bios_param, .bios_param = scsicam_bios_param,
can_queue: 1, .can_queue = 1,
this_id: 7, .this_id = 7,
sg_tablesize: SG_ALL, .sg_tablesize = SG_ALL,
cmd_per_lun: 1, .cmd_per_lun = 1,
use_clustering: DISABLE_CLUSTERING, .use_clustering = DISABLE_CLUSTERING,
command: fas216_command, .command = fas216_command,
queuecommand: fas216_queue_command, .queuecommand = fas216_queue_command,
eh_host_reset_handler: fas216_eh_host_reset, .eh_host_reset_handler = fas216_eh_host_reset,
eh_bus_reset_handler: fas216_eh_bus_reset, .eh_bus_reset_handler = fas216_eh_bus_reset,
eh_device_reset_handler: fas216_eh_device_reset, .eh_device_reset_handler = fas216_eh_device_reset,
eh_abort_handler: fas216_eh_abort, .eh_abort_handler = fas216_eh_abort,
}; };
static int __init cumanascsi2_init(void) static int __init cumanascsi2_init(void)
......
...@@ -262,19 +262,19 @@ int NCR5380_proc_info(char *buffer, char **start, off_t offset, ...@@ -262,19 +262,19 @@ int NCR5380_proc_info(char *buffer, char **start, off_t offset,
#include "../../scsi/NCR5380.c" #include "../../scsi/NCR5380.c"
static Scsi_Host_Template ecoscsi_template = { static Scsi_Host_Template ecoscsi_template = {
module: THIS_MODULE, .module = THIS_MODULE,
name: "Serial Port EcoSCSI NCR5380", .name = "Serial Port EcoSCSI NCR5380",
detect: ecoscsi_detect, .detect = ecoscsi_detect,
release: ecoscsi_release, .release = ecoscsi_release,
info: ecoscsi_info, .info = ecoscsi_info,
queuecommand: ecoscsi_queue_command, .queuecommand = ecoscsi_queue_command,
abort: ecoscsi_abort, .abort = ecoscsi_abort,
reset: ecoscsi_reset, .reset = ecoscsi_reset,
can_queue: 16, .can_queue = 16,
this_id: 7, .this_id = 7,
sg_tablesize: SG_ALL, .sg_tablesize = SG_ALL,
cmd_per_lun: 2, .cmd_per_lun = 2,
use_clustering: DISABLE_CLUSTERING .use_clustering = DISABLE_CLUSTERING
}; };
static int __init ecoscsi_init(void) static int __init ecoscsi_init(void)
......
...@@ -554,24 +554,24 @@ int eesoxscsi_proc_info(char *buffer, char **start, off_t offset, ...@@ -554,24 +554,24 @@ int eesoxscsi_proc_info(char *buffer, char **start, off_t offset,
} }
static Scsi_Host_Template eesox_template = { static Scsi_Host_Template eesox_template = {
module: THIS_MODULE, .module = THIS_MODULE,
proc_info: eesoxscsi_proc_info, .proc_info = eesoxscsi_proc_info,
name: "EESOX SCSI", .name = "EESOX SCSI",
detect: eesoxscsi_detect, .detect = eesoxscsi_detect,
release: eesoxscsi_release, .release = eesoxscsi_release,
info: eesoxscsi_info, .info = eesoxscsi_info,
bios_param: scsicam_bios_param, .bios_param = scsicam_bios_param,
can_queue: 1, .can_queue = 1,
this_id: 7, .this_id = 7,
sg_tablesize: SG_ALL, .sg_tablesize = SG_ALL,
cmd_per_lun: 1, .cmd_per_lun = 1,
use_clustering: DISABLE_CLUSTERING, .use_clustering = DISABLE_CLUSTERING,
command: fas216_command, .command = fas216_command,
queuecommand: fas216_queue_command, .queuecommand = fas216_queue_command,
eh_host_reset_handler: fas216_eh_host_reset, .eh_host_reset_handler = fas216_eh_host_reset,
eh_bus_reset_handler: fas216_eh_bus_reset, .eh_bus_reset_handler = fas216_eh_bus_reset,
eh_device_reset_handler: fas216_eh_device_reset, .eh_device_reset_handler = fas216_eh_device_reset,
eh_abort_handler: fas216_eh_abort, .eh_abort_handler = fas216_eh_abort,
}; };
static int __init eesox_init(void) static int __init eesox_init(void)
......
...@@ -252,20 +252,20 @@ printk("reading %p len %d\n", addr, len); ...@@ -252,20 +252,20 @@ printk("reading %p len %d\n", addr, len);
#include "../../scsi/NCR5380.c" #include "../../scsi/NCR5380.c"
static Scsi_Host_Template oakscsi_template = { static Scsi_Host_Template oakscsi_template = {
module: THIS_MODULE, .module = THIS_MODULE,
proc_info: oakscsi_proc_info, .proc_info = oakscsi_proc_info,
name: "Oak 16-bit SCSI", .name = "Oak 16-bit SCSI",
detect: oakscsi_detect, .detect = oakscsi_detect,
release: oakscsi_release, .release = oakscsi_release,
info: oakscsi_info, .info = oakscsi_info,
queuecommand: oakscsi_queue_command, .queuecommand = oakscsi_queue_command,
abort: oakscsi_abort, .abort = oakscsi_abort,
reset: oakscsi_reset, .reset = oakscsi_reset,
can_queue: 16, .can_queue = 16,
this_id: 7, .this_id = 7,
sg_tablesize: SG_ALL, .sg_tablesize = SG_ALL,
cmd_per_lun: 2, .cmd_per_lun = 2,
use_clustering: DISABLE_CLUSTERING .use_clustering = DISABLE_CLUSTERING
}; };
static int __init oakscsi_init(void) static int __init oakscsi_init(void)
......
...@@ -454,24 +454,24 @@ int powertecscsi_proc_info(char *buffer, char **start, off_t offset, ...@@ -454,24 +454,24 @@ int powertecscsi_proc_info(char *buffer, char **start, off_t offset,
} }
static Scsi_Host_Template powertecscsi_template = { static Scsi_Host_Template powertecscsi_template = {
module: THIS_MODULE, .module = THIS_MODULE,
proc_info: powertecscsi_proc_info, .proc_info = powertecscsi_proc_info,
name: "PowerTec SCSI", .name = "PowerTec SCSI",
detect: powertecscsi_detect, .detect = powertecscsi_detect,
release: powertecscsi_release, .release = powertecscsi_release,
info: powertecscsi_info, .info = powertecscsi_info,
bios_param: scsicam_bios_param, .bios_param = scsicam_bios_param,
can_queue: 1, .can_queue = 1,
this_id: 7, .this_id = 7,
sg_tablesize: SG_ALL, .sg_tablesize = SG_ALL,
cmd_per_lun: 1, .cmd_per_lun = 1,
use_clustering: ENABLE_CLUSTERING, .use_clustering = ENABLE_CLUSTERING,
command: fas216_command, .command = fas216_command,
queuecommand: fas216_queue_command, .queuecommand = fas216_queue_command,
eh_host_reset_handler: fas216_eh_host_reset, .eh_host_reset_handler = fas216_eh_host_reset,
eh_bus_reset_handler: fas216_eh_bus_reset, .eh_bus_reset_handler = fas216_eh_bus_reset,
eh_device_reset_handler: fas216_eh_device_reset, .eh_device_reset_handler = fas216_eh_device_reset,
eh_abort_handler: fas216_eh_abort, .eh_abort_handler = fas216_eh_abort,
}; };
static int __init powertecscsi_init(void) static int __init powertecscsi_init(void)
......
...@@ -101,9 +101,9 @@ static unsigned int rates[] = { ...@@ -101,9 +101,9 @@ static unsigned int rates[] = {
#define RATES sizeof(rates) / sizeof(rates[0]) #define RATES sizeof(rates) / sizeof(rates[0])
static snd_pcm_hw_constraint_list_t hw_constraints_rates = { static snd_pcm_hw_constraint_list_t hw_constraints_rates = {
count: RATES, .count = RATES,
list: rates, .list = rates,
mask: 0, .mask = 0,
}; };
/* }}} */ /* }}} */
...@@ -545,46 +545,46 @@ static int snd_card_sa11xx_uda1341_pcm_trigger(stream_id_t stream_id, ...@@ -545,46 +545,46 @@ static int snd_card_sa11xx_uda1341_pcm_trigger(stream_id_t stream_id,
static snd_pcm_hardware_t snd_sa11xx_uda1341_capture = static snd_pcm_hardware_t snd_sa11xx_uda1341_capture =
{ {
info: (SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID), SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID),
formats: SNDRV_PCM_FMTBIT_S16_LE, .formats = SNDRV_PCM_FMTBIT_S16_LE,
rates: (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ .rates = (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\
SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_32000 |\ SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_32000 |\
SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 |\ SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 |\
SNDRV_PCM_RATE_KNOT), SNDRV_PCM_RATE_KNOT),
rate_min: 8000, .rate_min = 8000,
rate_max: 48000, .rate_max = 48000,
channels_min: 2, .channels_min: = 2,
channels_max: 2, .channels_max: = 2,
buffer_bytes_max: 16380, .buffer_bytes_max: = 16380,
period_bytes_min: 64, .period_bytes_min: = 64,
period_bytes_max: 8190, /* <= MAX_DMA_SIZE from ams/arch-sa1100/dma.h */ .period_bytes_max: = 8190, /* <= MAX_DMA_SIZE from ams/arch-sa1100/dma.h */
periods_min: 2, .periods_min = 2,
periods_max: 255, .periods_max = 255,
fifo_size: 0, .fifo_size = 0,
}; };
static snd_pcm_hardware_t snd_sa11xx_uda1341_playback = static snd_pcm_hardware_t snd_sa11xx_uda1341_playback =
{ {
info: (SNDRV_PCM_INFO_INTERLEAVED | .info = (SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_BLOCK_TRANSFER |
SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID), SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID),
formats: SNDRV_PCM_FMTBIT_S16_LE, .formats = SNDRV_PCM_FMTBIT_S16_LE,
rates: (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ .rates = (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\
SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_32000 |\ SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_32000 |\
SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 |\ SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 |\
SNDRV_PCM_RATE_KNOT), SNDRV_PCM_RATE_KNOT),
rate_min: 8000, .rate_min = 8000,
rate_max: 48000, .rate_max = 48000,
channels_min: 2, .channels_min = 2,
channels_max: 2, .channels_max = 2,
buffer_bytes_max: 16380, .buffer_bytes_max = 16380,
period_bytes_min: 64, .period_bytes_min = 64,
period_bytes_max: 8190, /* <= MAX_DMA_SIZE from ams/arch-sa1100/dma.h */ .period_bytes_max = 8190, /* <= MAX_DMA_SIZE from ams/arch-sa1100/dma.h */
periods_min: 2, .periods_min = 2,
periods_max: 255, .periods_max = 255,
fifo_size: 0, .fifo_size = 0,
}; };
/* {{{ snd_card_sa11xx_uda1341_playback functions */ /* {{{ snd_card_sa11xx_uda1341_playback functions */
...@@ -752,25 +752,25 @@ static int snd_sa11xx_uda1341_hw_free(snd_pcm_substream_t * substream) ...@@ -752,25 +752,25 @@ static int snd_sa11xx_uda1341_hw_free(snd_pcm_substream_t * substream)
/* }}} */ /* }}} */
static snd_pcm_ops_t snd_card_sa11xx_uda1341_playback_ops = { static snd_pcm_ops_t snd_card_sa11xx_uda1341_playback_ops = {
open: snd_card_sa11xx_uda1341_playback_open, .open = snd_card_sa11xx_uda1341_playback_open,
close: snd_card_sa11xx_uda1341_playback_close, .close = snd_card_sa11xx_uda1341_playback_close,
ioctl: snd_card_sa11xx_uda1341_playback_ioctl, .ioctl = snd_card_sa11xx_uda1341_playback_ioctl,
hw_params: snd_sa11xx_uda1341_hw_params, .hw_params = snd_sa11xx_uda1341_hw_params,
hw_free: snd_sa11xx_uda1341_hw_free, .hw_free = snd_sa11xx_uda1341_hw_free,
prepare: snd_card_sa11xx_uda1341_playback_prepare, .prepare = snd_card_sa11xx_uda1341_playback_prepare,
trigger: snd_card_sa11xx_uda1341_playback_trigger, .trigger = snd_card_sa11xx_uda1341_playback_trigger,
pointer: snd_card_sa11xx_uda1341_playback_pointer, .pointer = snd_card_sa11xx_uda1341_playback_pointer,
}; };
static snd_pcm_ops_t snd_card_sa11xx_uda1341_capture_ops = { static snd_pcm_ops_t snd_card_sa11xx_uda1341_capture_ops = {
open: snd_card_sa11xx_uda1341_capture_open, .open = snd_card_sa11xx_uda1341_capture_open,
close: snd_card_sa11xx_uda1341_capture_close, .close = snd_card_sa11xx_uda1341_capture_close,
ioctl: snd_card_sa11xx_uda1341_capture_ioctl, .ioctl = snd_card_sa11xx_uda1341_capture_ioctl,
hw_params: snd_sa11xx_uda1341_hw_params, .hw_params = snd_sa11xx_uda1341_hw_params,
hw_free: snd_sa11xx_uda1341_hw_free, .hw_free = snd_sa11xx_uda1341_hw_free,
prepare: snd_card_sa11xx_uda1341_capture_prepare, .prepare = snd_card_sa11xx_uda1341_capture_prepare,
trigger: snd_card_sa11xx_uda1341_capture_trigger, .trigger = snd_card_sa11xx_uda1341_capture_trigger,
pointer: snd_card_sa11xx_uda1341_capture_pointer, .pointer = snd_card_sa11xx_uda1341_capture_pointer,
}; };
static int __init snd_card_sa11xx_uda1341_pcm(sa11xx_uda1341_t *sa11xx_uda1341, int device, int substreams) static int __init snd_card_sa11xx_uda1341_pcm(sa11xx_uda1341_t *sa11xx_uda1341, int device, int substreams)
......
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