aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 13:55:59 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 13:55:59 -0400
commit8a69580e1ea9516caada5eed202afd39546e9809 (patch)
treefb300fb7d67e09470a2654811baaa7832fec2fae /include/linux/ide.h
parent18de10170df31d34b342612f1c896a16a52f0a5c (diff)
ide: add ide_host_free() helper (take 2)
* Add ide_host_free() helper and convert ide_host_remove() to use it. * Fix handling of ide_host_register() failure in ide_host_add(), icside.c, ide-generic.c, falconide.c and sgiioc4.c. While at it: * Fix handling of ide_host_alloc_all() failure in ide-generic.c. * Fix handling of ide_host_alloc() failure in falconide.c (also return the correct error value if no device is found). v2: * falconide build fix. (From Stephen Rothwell) Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 764afd94b917..46d5bfe2fefb 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1236,6 +1236,7 @@ void ide_port_apply_params(ide_hwif_t *);
1236 1236
1237struct ide_host *ide_host_alloc_all(const struct ide_port_info *, hw_regs_t **); 1237struct ide_host *ide_host_alloc_all(const struct ide_port_info *, hw_regs_t **);
1238struct ide_host *ide_host_alloc(const struct ide_port_info *, hw_regs_t **); 1238struct ide_host *ide_host_alloc(const struct ide_port_info *, hw_regs_t **);
1239void ide_host_free(struct ide_host *);
1239int ide_host_register(struct ide_host *, const struct ide_port_info *, 1240int ide_host_register(struct ide_host *, const struct ide_port_info *,
1240 hw_regs_t **); 1241 hw_regs_t **);
1241int ide_host_add(const struct ide_port_info *, hw_regs_t **, 1242int ide_host_add(const struct ide_port_info *, hw_regs_t **,