]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] Sky Cpu: use C99 style for struct init
authorCyrill Gorcunov <gorcunov@gmail.com>
Tue, 2 Oct 2007 20:30:08 +0000 (13:30 -0700)
committerPaul Mackerras <paulus@samba.org>
Wed, 3 Oct 2007 02:02:44 +0000 (12:02 +1000)
This changes structure item init format to C99, and removes useless
structure items init.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Kumar Gala <galak@gate.crashing.org>
Cc: Brian Waite <waite@skycomputers.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/misc/hdpuftrs/hdpu_cpustate.c

index b16742c7c69d851e1a41fdaf1ce1aa171f6592be..32f65a3e07ceb49052bfbf5957fd09b3765d4357 100644 (file)
@@ -170,21 +170,18 @@ static struct platform_driver hdpu_cpustate_driver = {
  *     The various file operations we support.
  */
 static const struct file_operations cpustate_fops = {
-      owner:   THIS_MODULE,
-      open:    cpustate_open,
-      release: cpustate_release,
-      read:    cpustate_read,
-      write:   cpustate_write,
-      fasync:  NULL,
-      poll:    NULL,
-      ioctl:   NULL,
-      llseek:  no_llseek,
+      .owner   = THIS_MODULE,
+      .open    = cpustate_open,
+      .release = cpustate_release,
+      .read    = cpustate_read,
+      .write   = cpustate_write,
+      .llseek  = no_llseek,
 };
 
 static struct miscdevice cpustate_dev = {
-       MISC_DYNAMIC_MINOR,
-       "sky_cpustate",
-       &cpustate_fops,
+       .minor  = MISC_DYNAMIC_MINOR,
+       .name   = "sky_cpustate",
+       .fops   = &cpustate_fops,
 };
 
 static int hdpu_cpustate_probe(struct platform_device *pdev)