From: Albert H. <he...@us...> - 2006-03-24 22:15:40
|
Update of /cvsroot/gc-linux/linux/drivers/net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20503/drivers/net Modified Files: gcn-bba.c Log Message: Make some symbols static. Get interrupt status after the exi glue masking. Mark some functions __dev{init,exit}. Index: gcn-bba.c =================================================================== RCS file: /cvsroot/gc-linux/linux/drivers/net/gcn-bba.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- gcn-bba.c 7 Nov 2005 21:36:42 -0000 1.9 +++ gcn-bba.c 24 Mar 2006 22:15:34 -0000 1.10 @@ -45,7 +45,7 @@ #define DRV_AUTHOR "Albert Herranz, " \ "Todd Jeffreys" -char bba_driver_version[] = "1.4-isobel"; +static char bba_driver_version[] = "1.4-isobel"; #define bba_printk(level, format, arg...) \ @@ -935,7 +935,8 @@ /* * Calculates a response for a given challenge. */ -unsigned long bba_calc_response(unsigned long val, struct bba_private *priv) +static unsigned long bba_calc_response(unsigned long val, + struct bba_private *priv) { u8 revid_0, revid_eth_0, revid_eth_1; revid_0 = priv->revid; @@ -971,12 +972,12 @@ struct bba_private *priv = (struct bba_private *)dev->priv; register u8 status, mask; - /* get interrupt status from EXI glue */ - status = bba_cmd_in8(0x03); - /* XXX mask all EXI glue interrupts */ bba_cmd_out8(0x02, BBA_CMD_IR_MASKALL); + /* get interrupt status from EXI glue */ + status = bba_cmd_in8(0x03); + /* start with the usual case */ mask = (1<<7); @@ -1142,7 +1143,7 @@ /* * Removes a BroadBand Adapter device from the system. */ -static void bba_remove(struct exi_device *exi_device) +static void __devexit bba_remove(struct exi_device *exi_device) { struct net_device *dev = (struct net_device *) exi_get_drvdata(exi_device); @@ -1165,7 +1166,7 @@ * Probes for a BroadBand Adapter device. * Actually, the exi layer has already probed for us. */ -static int bba_probe(struct exi_device *exi_device) +static int __devinit bba_probe(struct exi_device *exi_device) { int ret = -ENODEV; |