From 4caefee0ad0f72e15197bb899ba1803ca9f2edc4 Mon Sep 17 00:00:00 2001 From: Art Haas Date: Sun, 17 Nov 2002 18:11:00 -0800 Subject: [PATCH] C99 initializers for drivers/parisc --- drivers/parisc/dino.c | 20 ++++++++++---------- drivers/parisc/eisa.c | 6 +++--- drivers/parisc/led.c | 2 +- drivers/parisc/power.c | 4 ++-- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/parisc/dino.c b/drivers/parisc/dino.c index 382991bf5977..f290605dec49 100644 --- a/drivers/parisc/dino.c +++ b/drivers/parisc/dino.c @@ -283,12 +283,12 @@ DINO_PORT_OUT(w, 16, 2) DINO_PORT_OUT(l, 32, 0) struct pci_port_ops dino_port_ops = { - inb: dino_in8, - inw: dino_in16, - inl: dino_in32, - outb: dino_out8, - outw: dino_out16, - outl: dino_out32 + .inb = dino_in8, + .inw = dino_in16, + .inl = dino_in32, + .outb = dino_out8, + .outw = dino_out16, + .outl = dino_out32 }; static void @@ -368,10 +368,10 @@ dino_enable_irq(void *irq_dev, int irq) static struct irq_region_ops dino_irq_ops = { - disable_irq: dino_mask_irq, /* ??? */ - enable_irq: dino_enable_irq, - mask_irq: dino_mask_irq, - unmask_irq: dino_unmask_irq + .disable_irq = dino_mask_irq, /* ??? */ + .enable_irq = dino_enable_irq, + .mask_irq = dino_mask_irq, + .unmask_irq = dino_unmask_irq }; diff --git a/drivers/parisc/eisa.c b/drivers/parisc/eisa.c index 20bd80206aab..31b1a2069437 100644 --- a/drivers/parisc/eisa.c +++ b/drivers/parisc/eisa.c @@ -205,9 +205,9 @@ static struct irqaction action[IRQ_PER_REGION]; /* EISA needs to be fixed at IRQ region #0 (EISA_IRQ_REGION) */ static struct irq_region eisa_irq_region = { - ops: { eisa_disable_irq, eisa_enable_irq, eisa_mask_irq, eisa_unmask_irq }, - data: { name: "EISA", irqbase: 0 }, - action: action, + .ops = { eisa_disable_irq, eisa_enable_irq, eisa_mask_irq, eisa_unmask_irq }, + .data = { .name = "EISA", .irqbase = 0 }, + .action = action, }; static void eisa_irq(int _, void *intr_dev, struct pt_regs *regs) diff --git a/drivers/parisc/led.c b/drivers/parisc/led.c index 3e2e0afd6e3a..ea4132f10b75 100644 --- a/drivers/parisc/led.c +++ b/drivers/parisc/led.c @@ -531,7 +531,7 @@ DECLARE_TASKLET_DISABLED(led_tasklet, led_tasklet_func, 0); static int led_halt(struct notifier_block *, unsigned long, void *); static struct notifier_block led_notifier = { - notifier_call: led_halt, + .notifier_call = led_halt, }; static int led_halt(struct notifier_block *nb, unsigned long event, void *buf) diff --git a/drivers/parisc/power.c b/drivers/parisc/power.c index 4cd2691ff0f4..9fbcfb21dcac 100644 --- a/drivers/parisc/power.c +++ b/drivers/parisc/power.c @@ -305,8 +305,8 @@ static int parisc_panic_event(struct notifier_block *this, } static struct notifier_block parisc_panic_block = { - notifier_call: parisc_panic_event, - priority: INT_MAX, + .notifier_call = parisc_panic_event, + .priority = INT_MAX, }; -- cgit v1.2.3