From 70f6895d2096d797b0a04e952a773d8e231424ce Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 12 Sep 2010 12:43:29 +0200 Subject: ap400: some simple sparse fixes * Use C99-style initializations. The default value of a field is 0/NULL. * Statify some functions. --- drivers/dahdi/ap400/ap400_drv.c | 16 +++++++--------- 1 file 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) -- cgit v1.2.3