summaryrefslogtreecommitdiff
path: root/drivers/staging/agnx
AgeCommit message (Collapse)Author
2009-02-16Staging: agnx: i reaches -1, tested 0Roel Kluin
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-02-16Staging: agnx: Move a dereference below a NULL testJulia Lawall
If the NULL test is necessary, then the dereference should be moved below the NULL test. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @@ type T; expression E; identifier i,fld; statement S; @@ - T i = E->fld; + T i; ... when != E when != i if (E == NULL) S + i = E->fld; // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Cc: YanBo <dreamfly281@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-01-28staging: agnx: drivers/staging/agnx/agnx.h needs <linux/io.h>Geert Uytterhoeven
On m68k: drivers/staging/agnx/agnx.h: In function 'agnx_read32': drivers/staging/agnx/agnx.h:10: error: implicit declaration of function 'ioread32' drivers/staging/agnx/agnx.h: In function 'agnx_write32': drivers/staging/agnx/agnx.h:15: error: implicit declaration of function 'iowrite32' drivers/staging/agnx/sta.c: In function 'get_sta_power': drivers/staging/agnx/sta.c:94: error: implicit declaration of function 'memcpy_fromio' drivers/staging/agnx/sta.c: In function 'set_sta_power': drivers/staging/agnx/sta.c:103: error: implicit declaration of function 'memcpy_toio' Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-01-06Staging: agnx: fix build warningsGreg Kroah-Hartman
Fix some minor build warnins in the agnx driver Cc: Li YanBo <dreamfly281@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-01-06Staging: agnx: fix build errors due to rate control API changesGreg Kroah-Hartman
In commit e6a9854b05c1a6af1308fe2b8c68f35abf28a3ee, the rate control API was rewritten, so make the needed changes to the agnx driver so that it will build and work properly. Cc: Li YanBo <dreamfly281@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-01-06Staging: agnx: fix build errors due to ssid removalGreg Kroah-Hartman
The wireless core has removed the ssid variables, so also remove them from the agnx driver so that it builds properly. Cc: Li YanBo <dreamfly281@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-01-06Staging: add agnx wireless driverLi YanBo
This driver is for the Airgo AGNX00 wireless chip. From: Li YanBo <dreamfly281@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>