Skip to content

Commit

Permalink
staging/vt6655: fix sparse warning "obsolete struct initializer"
Browse files Browse the repository at this point in the history
This patch fixes the sparse warnings
"obsolete struct initializer, use C99 syntax" in vt6655/device_main.c
by converting the struct to C99 syntax

KernelVersion: linux-next-20110110

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Jan 21, 2011
1 parent eb83939 commit 34381c2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions drivers/staging/vt6655/device_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ static int device_notify_reboot(struct notifier_block *, unsigned long event, vo
static int viawget_suspend(struct pci_dev *pcid, pm_message_t state);
static int viawget_resume(struct pci_dev *pcid);
struct notifier_block device_notifier = {
notifier_call: device_notify_reboot,
next: NULL,
priority: 0
.notifier_call = device_notify_reboot,
.next = NULL,
.priority = 0,
};
#endif

Expand Down Expand Up @@ -3606,13 +3606,13 @@ static int ethtool_ioctl(struct net_device *dev, void *useraddr)
MODULE_DEVICE_TABLE(pci, vt6655_pci_id_table);

static struct pci_driver device_driver = {
name: DEVICE_NAME,
id_table: vt6655_pci_id_table,
probe: vt6655_probe,
remove: vt6655_remove,
.name = DEVICE_NAME,
.id_table = vt6655_pci_id_table,
.probe = vt6655_probe,
.remove = vt6655_remove,
#ifdef CONFIG_PM
suspend: viawget_suspend,
resume: viawget_resume,
.suspend = viawget_suspend,
.resume = viawget_resume,
#endif
};

Expand Down

0 comments on commit 34381c2

Please sign in to comment.