Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b70da1a authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Paul Mackerras
Browse files

[POWERPC] Sky Cpu: use C99 style for struct init



This changes structure item init format to C99, and removes useless
structure items init.

Signed-off-by: default avatarCyrill 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 5f725fe9
Loading
Loading
Loading
Loading
+9 −12
Original line number Original line Diff line number Diff line
@@ -170,21 +170,18 @@ static struct platform_driver hdpu_cpustate_driver = {
 *	The various file operations we support.
 *	The various file operations we support.
 */
 */
static const struct file_operations cpustate_fops = {
static const struct file_operations cpustate_fops = {
      owner:	THIS_MODULE,
      .owner	= THIS_MODULE,
      open:	cpustate_open,
      .open	= cpustate_open,
      release:	cpustate_release,
      .release	= cpustate_release,
      read:	cpustate_read,
      .read	= cpustate_read,
      write:	cpustate_write,
      .write	= cpustate_write,
      fasync:	NULL,
      .llseek	= no_llseek,
      poll:	NULL,
      ioctl:	NULL,
      llseek:	no_llseek,
};
};


static struct miscdevice cpustate_dev = {
static struct miscdevice cpustate_dev = {
	MISC_DYNAMIC_MINOR,
	.minor	= MISC_DYNAMIC_MINOR,
	"sky_cpustate",
	.name	= "sky_cpustate",
	&cpustate_fops,
	.fops	= &cpustate_fops,
};
};


static int hdpu_cpustate_probe(struct platform_device *pdev)
static int hdpu_cpustate_probe(struct platform_device *pdev)