2006-01-22 20:07:55

by Randy Dunlap

[permalink] [raw]
Subject: [PATCH] edac: use C99 initializers (sparse warnings)

From: Randy Dunlap <[email protected]>

fix sparse warnings:
drivers/edac/e752x_edac.c:1042:7: warning: obsolete struct initializer, use C99 syntax

Signed-off-by: Randy Dunlap <[email protected]>
---
drivers/edac/e752x_edac.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

--- linux-2616-rc1g4.orig/drivers/edac/e752x_edac.c
+++ linux-2616-rc1g4/drivers/edac/e752x_edac.c
@@ -1039,10 +1039,10 @@ MODULE_DEVICE_TABLE(pci, e752x_pci_tbl);


static struct pci_driver e752x_driver = {
- name: BS_MOD_STR,
- probe: e752x_init_one,
- remove: __devexit_p(e752x_remove_one),
- id_table: e752x_pci_tbl,
+ .name = BS_MOD_STR,
+ .probe = e752x_init_one,
+ .remove = __devexit_p(e752x_remove_one),
+ .id_table = e752x_pci_tbl,
};




---