aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-05-17 13:12:24 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-05-17 13:12:24 -0400
commitdca3983059a4481e4ae97bbf0ac4b4c21429e1a5 (patch)
treeee15aed0673b5474bdadc93e3054f361bf2e839b /include
parent29e52cf793ded6bece50de50e738596f94f07d9f (diff)
ide: pass number of ports to ide_host_{alloc,add}() (v2)
Pass number of ports to ide_host_{alloc,add}() and then update all users accordingly. v2: - drop no longer needed NULL initializers in buddha.c, cmd640.c and gayle.c (noticed by Sergei) There should be no functional changes caused by this patch. Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ide.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 9652edbd26af..a3cd568553d3 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1456,11 +1456,12 @@ void ide_undecoded_slave(ide_drive_t *);
1456void ide_port_apply_params(ide_hwif_t *); 1456void ide_port_apply_params(ide_hwif_t *);
1457int ide_sysfs_register_port(ide_hwif_t *); 1457int ide_sysfs_register_port(ide_hwif_t *);
1458 1458
1459struct ide_host *ide_host_alloc(const struct ide_port_info *, hw_regs_t **); 1459struct ide_host *ide_host_alloc(const struct ide_port_info *, hw_regs_t **,
1460 unsigned int);
1460void ide_host_free(struct ide_host *); 1461void ide_host_free(struct ide_host *);
1461int ide_host_register(struct ide_host *, const struct ide_port_info *, 1462int ide_host_register(struct ide_host *, const struct ide_port_info *,
1462 hw_regs_t **); 1463 hw_regs_t **);
1463int ide_host_add(const struct ide_port_info *, hw_regs_t **, 1464int ide_host_add(const struct ide_port_info *, hw_regs_t **, unsigned int,
1464 struct ide_host **); 1465 struct ide_host **);
1465void ide_host_remove(struct ide_host *); 1466void ide_host_remove(struct ide_host *);
1466int ide_legacy_device_add(const struct ide_port_info *, unsigned long); 1467int ide_legacy_device_add(const struct ide_port_info *, unsigned long);