diff options
author | Andrew Morton <akpm@osdl.org> | 2007-03-03 11:48:54 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-03-03 11:48:54 -0500 |
commit | 9e5755bce00bb563739aeb0f09932a1907521167 (patch) | |
tree | 4a16eb1f094f3e5df3eed09870dd0cffb9cf1143 /drivers/ide/ide.c | |
parent | ed89616786d47093525a5dc039b1f502f5ada954 (diff) |
ide: fix pmac breakage
Fix breakage added in the IDE devel tree.
Add header, then fix
drivers/ide/ppc/pmac.c: In function `pmac_ide_setup_dma':
drivers/ide/ppc/pmac.c:2044: warning: assignment from incompatible pointer type
drivers/ide/ppc/pmac.c: In function `pmac_ide_dma_host_on':
drivers/ide/ppc/pmac.c:1989: warning: control reaches end of non-void function
include/linux/pci.h: In function `pmac_ide_init':
drivers/ide/ppc/pmac.c:1563: warning: ignoring return value of `pci_register_driver', declared with attribute warn_unused_result
Then add some apparently-long-missing error handling.
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r-- | drivers/ide/ide.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index b3c0818c5c6c..25487691c9f1 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -1840,8 +1840,8 @@ static void __init probe_for_hwifs (void) | |||
1840 | #endif /* CONFIG_BLK_DEV_CMD640 */ | 1840 | #endif /* CONFIG_BLK_DEV_CMD640 */ |
1841 | #ifdef CONFIG_BLK_DEV_IDE_PMAC | 1841 | #ifdef CONFIG_BLK_DEV_IDE_PMAC |
1842 | { | 1842 | { |
1843 | extern void pmac_ide_probe(void); | 1843 | extern int pmac_ide_probe(void); |
1844 | pmac_ide_probe(); | 1844 | (void)pmac_ide_probe(); |
1845 | } | 1845 | } |
1846 | #endif /* CONFIG_BLK_DEV_IDE_PMAC */ | 1846 | #endif /* CONFIG_BLK_DEV_IDE_PMAC */ |
1847 | #ifdef CONFIG_BLK_DEV_GAYLE | 1847 | #ifdef CONFIG_BLK_DEV_GAYLE |