summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2010-09-12 12:43:29 +0200
committerTzafrir Cohen <tzafrir@cohens.org.il>2010-09-12 15:26:51 +0200
commit70f6895d2096d797b0a04e952a773d8e231424ce (patch)
tree0e95c5de56492ac6f1ec43f9a050271385beb16f
parent83f7dfd6f949f38870147e545d3940438a356c4c (diff)
ap400: some simple sparse fixes
* Use C99-style initializations. The default value of a field is 0/NULL. * Statify some functions.
-rw-r--r--drivers/dahdi/ap400/ap400_drv.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/dahdi/ap400/ap400_drv.c b/drivers/dahdi/ap400/ap400_drv.c
index aaf3f48..5153af0 100644
--- a/drivers/dahdi/ap400/ap400_drv.c
+++ b/drivers/dahdi/ap400/ap400_drv.c
@@ -1912,7 +1912,7 @@ static int __devinit ap4_launch(struct ap4 *wc)
}
-int ap4xx_liu_reset(struct ap4 *wc)
+static int ap4xx_liu_reset(struct ap4 *wc)
{
unsigned int jiffies_hold = jiffies;
*(wc->membase+AP_LEDS_REG) |= AP_LIU_RESET_BIT;
@@ -1922,7 +1922,7 @@ int ap4xx_liu_reset(struct ap4 *wc)
}
-int ap4xx_bus_test(struct ap4 *wc)
+static int ap4xx_bus_test(struct ap4 *wc)
{
int tst_result = 0;
unsigned int val;
@@ -2314,16 +2314,14 @@ static struct pci_device_id ap4_pci_tbl[] __devinitdata =
static struct pci_driver ap4_driver = {
- name: "Unified ap4xx driver",
- probe: ap4_init_one,
+ .name = "Unified ap4xx driver",
+ .probe = ap4_init_one,
#ifdef LINUX26
- remove: __devexit_p(ap4_remove_one),
+ .remove = __devexit_p(ap4_remove_one),
#else
- remove: ap4_remove_one,
+ .remove = ap4_remove_one,
#endif
- suspend: NULL,
- resume: NULL,
- id_table: ap4_pci_tbl,
+ .id_table = ap4_pci_tbl,
};
static int __init ap4_init(void)