aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2007-10-02 16:30:08 -0400
committerPaul Mackerras <paulus@samba.org>2007-10-02 22:02:44 -0400
commit8b70da1a094fb781d49a811fd2368907adc92b8d (patch)
treebc034f9c8e7ed2652c04e29c2ba55560908b95b8 /drivers
parent5f725fe92cc2e75892b237e863d5f695fb634bb2 (diff)
[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: 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/hdpuftrs/hdpu_cpustate.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/drivers/misc/hdpuftrs/hdpu_cpustate.c b/drivers/misc/hdpuftrs/hdpu_cpustate.c
index b16742c7c69d..32f65a3e07ce 100644
--- a/drivers/misc/hdpuftrs/hdpu_cpustate.c
+++ b/drivers/misc/hdpuftrs/hdpu_cpustate.c
@@ -170,21 +170,18 @@ static struct platform_driver hdpu_cpustate_driver = {
170 * The various file operations we support. 170 * The various file operations we support.
171 */ 171 */
172static const struct file_operations cpustate_fops = { 172static const struct file_operations cpustate_fops = {
173 owner: THIS_MODULE, 173 .owner = THIS_MODULE,
174 open: cpustate_open, 174 .open = cpustate_open,
175 release: cpustate_release, 175 .release = cpustate_release,
176 read: cpustate_read, 176 .read = cpustate_read,
177 write: cpustate_write, 177 .write = cpustate_write,
178 fasync: NULL, 178 .llseek = no_llseek,
179 poll: NULL,
180 ioctl: NULL,
181 llseek: no_llseek,
182}; 179};
183 180
184static struct miscdevice cpustate_dev = { 181static struct miscdevice cpustate_dev = {
185 MISC_DYNAMIC_MINOR, 182 .minor = MISC_DYNAMIC_MINOR,
186 "sky_cpustate", 183 .name = "sky_cpustate",
187 &cpustate_fops, 184 .fops = &cpustate_fops,
188}; 185};
189 186
190static int hdpu_cpustate_probe(struct platform_device *pdev) 187static int hdpu_cpustate_probe(struct platform_device *pdev)