mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
ide: remove ide_host_alloc_all()
* Remove no longer used ide_host_alloc_all(). * Add MAX_HOST_PORTS define and use it instead of MAX_HWIFS as the maximum number of host ports possible. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
cf4049103b
commit
a36223b0dc
2 changed files with 12 additions and 24 deletions
|
@ -832,8 +832,10 @@ typedef struct hwif_s {
|
|||
#endif
|
||||
} ____cacheline_internodealigned_in_smp ide_hwif_t;
|
||||
|
||||
#define MAX_HOST_PORTS 4
|
||||
|
||||
struct ide_host {
|
||||
ide_hwif_t *ports[MAX_HWIFS];
|
||||
ide_hwif_t *ports[MAX_HOST_PORTS];
|
||||
unsigned int n_ports;
|
||||
struct device *dev[2];
|
||||
unsigned int (*init_chipset)(struct pci_dev *);
|
||||
|
@ -1479,7 +1481,6 @@ void ide_undecoded_slave(ide_drive_t *);
|
|||
|
||||
void ide_port_apply_params(ide_hwif_t *);
|
||||
|
||||
struct ide_host *ide_host_alloc_all(const struct ide_port_info *, hw_regs_t **);
|
||||
struct ide_host *ide_host_alloc(const struct ide_port_info *, hw_regs_t **);
|
||||
void ide_host_free(struct ide_host *);
|
||||
int ide_host_register(struct ide_host *, const struct ide_port_info *,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue