]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] M68k update (part 23)
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 23 Jul 2002 13:22:39 +0000 (06:22 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 23 Jul 2002 13:22:39 +0000 (06:22 -0700)
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.

(from Rusty Russell <rusty@rustcorp.com.au>, with some mods by me)

arch/m68k/amiga/config.c
arch/m68k/atari/debug.c
arch/m68k/atari/hades-pci.c
arch/m68k/atari/joystick.c
arch/m68k/atari/stram.c
arch/m68k/bvme6000/rtc.c
arch/m68k/kernel/setup.c
arch/m68k/mac/debug.c
arch/m68k/mvme16x/rtc.c
arch/m68k/q40/config.c

index ab3d3e1f0d0356d4b43437a6393e1df358228cac..04885fdd35743f1ece134006081a593a936ff6e3 100644 (file)
@@ -110,9 +110,9 @@ static void amiga_heartbeat(int on);
 #endif
 
 static struct console amiga_console_driver = {
-       name:           "debug",
-       flags:          CON_PRINTBUFFER,
-       index:          -1,
+       .name =         "debug",
+       .flags =        CON_PRINTBUFFER,
+       .index =        -1,
 };
 
 #ifdef CONFIG_MAGIC_SYSRQ
@@ -137,10 +137,10 @@ extern void (*kd_mksound)(unsigned int, unsigned int);
 static struct {
     struct resource _ciab, _ciaa, _custom, _kickstart;
 } mb_resources = {
-    _ciab:     { "CIA B", 0x00bfd000, 0x00bfdfff },
-    _ciaa:     { "CIA A", 0x00bfe000, 0x00bfefff },
-    _custom:   { "Custom I/O", 0x00dff000, 0x00dfffff },
-    _kickstart:        { "Kickstart ROM", 0x00f80000, 0x00ffffff }
+    ._ciab =           { "CIA B", 0x00bfd000, 0x00bfdfff },
+    ._ciaa =           { "CIA A", 0x00bfe000, 0x00bfefff },
+    ._custom =         { "Custom I/O", 0x00dff000, 0x00dfffff },
+    ._kickstart =      { "Kickstart ROM", 0x00f80000, 0x00ffffff }
 };
 
 static struct resource rtc_resource = {
index 75c9c447164622b23c05e08b109248da502533e5..1569bed81e8488fdd06a9cbeb34e7b6aaac5d53e 100644 (file)
@@ -31,9 +31,9 @@ int atari_SCC_init_done = 0;
 int atari_SCC_reset_done = 0;
 
 static struct console atari_console_driver = {
-       name:           "debug",
-       flags:          CON_PRINTBUFFER,
-       index:          -1,
+       .name =         "debug",
+       .flags =        CON_PRINTBUFFER,
+       .index =        -1,
 };
 
 
index 6d8ec7333a166e6ad164ca6f9ac7def633eaa273..9100813da1363e45778f154336f14aa367b3c19a 100644 (file)
@@ -334,12 +334,12 @@ static void __init hades_conf_device(unsigned char bus, unsigned char device_fn)
 }
 
 static struct pci_ops hades_pci_ops = {
-       read_byte:      hades_read_config_byte
-       read_word:      hades_read_config_word
-       read_dword:     hades_read_config_dword
-       write_byte:     hades_write_config_byte
-       write_word:     hades_write_config_word
-       write_dword:    hades_write_config_dword
+       .read_byte =    hades_read_config_byte,
+       .read_word =    hades_read_config_word,
+       .read_dword =   hades_read_config_dword,
+       .write_byte =   hades_write_config_byte,
+       .write_word =   hades_write_config_word,
+       .write_dword =  hades_write_config_dword
 };
 
 /*
index a3b4591dd7c52e6d3b2faf217bab0ee3c6bc2da0..9c743ba9f3491421a903643433aa1aa88f1c41a0 100644 (file)
@@ -120,11 +120,11 @@ static unsigned int joystick_poll(struct file *file, poll_table *wait)
 }
 
 struct file_operations atari_joystick_fops = {
-       read:           read_joystick,
-       write:          write_joystick,
-       poll:           joystick_poll,
-       open:           open_joystick,
-       release:        release_joystick,
+       .read =         read_joystick,
+       .write =        write_joystick,
+       .poll =         joystick_poll,
+       .open =         open_joystick,
+       .release =      release_joystick,
 };
 
 int __init atari_joystick_init(void)
index c58f1e2da5e3bb6c3bd05689807023b384e2d99c..224333502cb362d3bf61c977c8068c6775fef892 100644 (file)
@@ -1044,8 +1044,8 @@ static int stram_release( struct inode *inode, struct file *filp )
 
 
 static struct block_device_operations stram_fops = {
-       open:           stram_open,
-       release:        stram_release,
+       .open =         stram_open,
+       .release =      stram_release,
 };
 
 int __init stram_device_init(void)
index 47d77f2d12733bf81c01ed7fa1cdab60e29ecf11..071771d0182b340cf0618df18d4ad0377455d54d 100644 (file)
@@ -161,9 +161,9 @@ static int rtc_release(struct inode *inode, struct file *file)
  */
 
 static struct file_operations rtc_fops = {
-       ioctl:          rtc_ioctl,
-       open:           rtc_open,
-       release:        rtc_release,
+       .ioctl =        rtc_ioctl,
+       .open =         rtc_open,
+       .release =      rtc_release,
 };
 
 static struct miscdevice rtc_dev=
index 86ca4c954d6f7c04ef4e889ac35a269453de9e80..893d176dc924eecf49dacc8f9dc2e73aec78af7f 100644 (file)
@@ -506,10 +506,10 @@ static void c_stop(struct seq_file *m, void *v)
 {
 }
 struct seq_operations cpuinfo_op = {
-       start:  c_start,
-       next:   c_next,
-       stop:   c_stop,
-       show:   show_cpuinfo,
+       .start =        c_start,
+       .next =         c_next,
+       .stop =         c_stop,
+       .show =         show_cpuinfo,
 };
 
 int get_hardware_list(char *buffer)
index c23e912b7c8546beb2fd89b037596fb0a8e078f9..c29b02207853a3c1c55755dafd9897539c81cf12 100644 (file)
@@ -159,9 +159,9 @@ int mac_SCC_reset_done = 0;
 static int scc_port = -1;
 
 static struct console mac_console_driver = {
-       name:           "debug",
-       flags:          CON_PRINTBUFFER,
-       index:          -1,
+       .name =         "debug",
+       .flags =        CON_PRINTBUFFER,
+       .index =        -1,
 };
 
 /*
index c80b402e7cc965294600e1aeb9b2096d124c4267..6f88e9d2bbd764d5bc45bfcabf89393e9e0ba16c 100644 (file)
@@ -150,9 +150,9 @@ static int rtc_release(struct inode *inode, struct file *file)
  */
 
 static struct file_operations rtc_fops = {
-       ioctl:          rtc_ioctl,
-       open:           rtc_open,
-       release:        rtc_release,
+       .ioctl =        rtc_ioctl,
+       .open =         rtc_open,
+       .release =      rtc_release,
 };
 
 static struct miscdevice rtc_dev=
index c35f214bbeb0e3585e7bd8d20e60fa9a6b4d3749..1e6dbd4d6c83deab1a23fdc6535e39ff68828730 100644 (file)
@@ -72,9 +72,9 @@ static void q40_mem_console_write(struct console *co, const char *b,
 extern int ql_ticks;
 
 static struct console q40_console_driver = {
-       name:           "debug",
-       flags:          CON_PRINTBUFFER,
-       index:          -1,
+       .name =         "debug",
+       .flags =        CON_PRINTBUFFER,
+       .index =        -1,
 };