Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ide: fix ->init_chipset method to return 'int' value | Bartlomiej Zolnierkiewicz | 2009-03-24 | 1 | -1/+1 |
| | | | | | | | | | | | | * Return 0 instead of dev->irq in ->init_chipset implementations. * Fix ->init_chipset method to return 'int' value instead of 'unsigned int' one. This fixes ->init_chipset handling for host drivers (cs5530, hpt366 and pdc202xx_new) for which it is possible for this method to fail. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | ||||
* | drivers/ide/{cs5530.c,sc1200.c}: Move a dereference below a NULL test | Julia Lawall | 2008-12-22 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | In each case, 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> Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | ||||
* | ide: remove useless subdirs from drivers/ide/ | Bartlomiej Zolnierkiewicz | 2008-10-21 | 1 | -0/+294 |
Suggested-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> |